wt.query
Class TimestampRangeSearch

java.lang.Object
  extended bywt.query.AttributeSearchSpecification
      extended bywt.query.AttributeRangeSearch
          extended bywt.query.TimestampRangeSearch
All Implemented Interfaces:
Serializable

public class TimestampRangeSearch
extends AttributeRangeSearch
implements Serializable

Search for timestamp value via a start-end range specification. Either start or end may be null, but start must be less than end.

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
TimestampRangeSearch(String attribute)
          Construct a search object for the specified attribute.
TimestampRangeSearch(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 dates.
 void setValue(Timestamp start_value, Timestamp end_value)
          Sets the desired start and end values for a search on a start-end range of dates.
 String toString()
          Return a string dump of the interesting information in this object.
 
Methods inherited from class wt.query.AttributeRangeSearch
toString
 
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

TimestampRangeSearch

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

Supported API: false

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

TimestampRangeSearch

public TimestampRangeSearch(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 dates. Attempts to convert strings to timestamps

Supported API: false

Overrides:
setValue in class AttributeRangeSearch
Parameters:
start_value - Start value of between range value search.
end_value - End value of between range value search.
Throws:
WTPropertyVetoException

setValue

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

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 AttributeRangeSearch
Parameters:
classname - Class to search against.
Returns:
SearchCondition
Throws:
WTException
QueryException

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 AttributeRangeSearch