|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.AttributeSearchSpecification
wt.query.TimestampSearch
Search for timestamp value via equal, greater than, or less than specification.
Supported API: false
Extendable: false
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 |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public TimestampSearch(String attribute, String expression)
attribute
- Attribute name.expression
- Search expression such as equals.public TimestampSearch(String attribute)
attribute
- Attribute name.Method Detail |
public void setValue(String value) throws WTPropertyVetoException
setValue
in class AttributeSearchSpecification
value
- Value to search for.
WTPropertyVetoException
public void setValue(Timestamp value) throws WTPropertyVetoException
value
- Value to search for.
WTPropertyVetoException
public SearchCondition getSearchCondition(Class classname) throws WTException, QueryException
getSearchCondition
in class AttributeSearchSpecification
classname
- Class to search against.
WTException
QueryException
public void setValue(String value, Locale locale) throws WTPropertyVetoException
value
- Value to search for.locale
- Locale for timestamp conversion.
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |