wt.query
Class TimestampSearch

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

public class TimestampSearch
extends AttributeSearchSpecification
implements Serializable

Search for timestamp value via equal, greater than, or less than specification.

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
TimestampSearch(String attribute)
          Construct a search object for the specified attribute.
TimestampSearch(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 value)
          Set the desired value for the attribute.
 void setValue(String value, Locale locale)
          Set the desired value for the attribute.
 void setValue(Timestamp value)
          Set the desired value for the attribute.
 
Methods inherited from class wt.query.AttributeSearchSpecification
appendToClassSearchSpec, areThereDBWildCards, areThereWildCards, convertWildcardValue, getAttributeName, getQueryName, getSearchExpression, getSearchExpression, getSearchType, getStringCase, getValue, isFalseSearch, processWildCards, setFalseSearch, setValue, toString
 
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

TimestampSearch

public TimestampSearch(String attribute,
                       String expression)
Construct a search object for the specified attribute.

Supported API: false

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

TimestampSearch

public TimestampSearch(String attribute)
Construct a search object for the specified attribute. Search default to equal.

Supported API: false

Parameters:
attribute - Attribute name.
Method Detail

setValue

public void setValue(String value)
              throws WTPropertyVetoException
Set the desired value for the attribute. The value is validated based on the rules for attribute type. Attempts to convert strings to timestamps

Supported API: false

Overrides:
setValue in class AttributeSearchSpecification
Parameters:
value - Value to search for.
Throws:
WTPropertyVetoException

setValue

public void setValue(Timestamp value)
              throws WTPropertyVetoException
Set the desired value for the attribute. The value is validated based on the rules for attribute type.

Supported API: false

Parameters:
value - Value to search for.
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

setValue

public void setValue(String value,
                     Locale locale)
              throws WTPropertyVetoException
Set the desired value for the attribute. The value is validated based on the rules for attribute type. Attempts to convert strings to timestamps

Supported API: false

Parameters:
value - Value to search for.
locale - Locale for timestamp conversion.
Throws:
WTPropertyVetoException