wt.query
Class AttributeRangeSearch

java.lang.Object
  extended bywt.query.AttributeSearchSpecification
      extended bywt.query.AttributeRangeSearch
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FloatRangeSearch, IntegerRangeSearch, LongRangeSearch, TimestampRangeSearch

public abstract class AttributeRangeSearch
extends AttributeSearchSpecification
implements Serializable

Extends the basic AttributeSearch class to support handling of a start-end range of attribute values.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.query.AttributeSearchSpecification
DB_SINGLE_WILDCARD, DB_WILDCARD
 
Constructor Summary
AttributeRangeSearch(String attribute)
          Construct a search object for the specified attribute.
AttributeRangeSearch(String attribute, String expression)
          Construct a search object for the specified attribute.
 
Method Summary
 SearchCondition getSearchCondition(Class classname)
          Return a SearchCondition for this search object.
 void setValue(String start_value, String end_value)
          Sets the desired start and end values for a search on a start-end range of values.
 String toString()
          Return a string dump of the interesting information in this object.
 String toString(String start, String end)
           
 
Methods inherited from class wt.query.AttributeSearchSpecification
appendToClassSearchSpec, areThereDBWildCards, areThereWildCards, convertWildcardValue, getAttributeName, getQueryName, getSearchExpression, getSearchExpression, getSearchType, getStringCase, getValue, isFalseSearch, processWildCards, setFalseSearch, setValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

AttributeRangeSearch

public AttributeRangeSearch(String attribute,
                            String expression)
Construct a search object for the specified attribute. Search expression default to between.

Supported API: false

Parameters:
attribute - Attribute name.
expression - Search expression such as between.

AttributeRangeSearch

public AttributeRangeSearch(String attribute)
Construct a search object for the specified attribute.

Supported API: false

Parameters:
attribute - Attribute name.
Method Detail

setValue

public void setValue(String start_value,
                     String end_value)
              throws WTPropertyVetoException
Sets the desired start and end values for a search on a start-end range of values.

Supported API: false

Parameters:
start_value - Start value of between range value search.
end_value - End value of between range value search.
Throws:
WTPropertyVetoException

getSearchCondition

public SearchCondition getSearchCondition(Class classname)
                                   throws WTException,
                                          QueryException
Return a SearchCondition for this search object. If a pre Search is required, this will be performed automatically. Intended to be a server side only api.

Supported API: false

Overrides:
getSearchCondition in class AttributeSearchSpecification
Parameters:
classname - Class to search against.
Returns:
SearchCondition
Throws:
WTException
QueryException

toString

public String toString(String start,
                       String end)

toString

public String toString()
Description copied from class: AttributeSearchSpecification
Return a string dump of the interesting information in this object.

Supported API: false

Overrides:
toString in class AttributeSearchSpecification
Returns:
String