|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.AttributeSearchSpecification
wt.query.AttributeRangeSearch
wt.query.TimestampRangeSearch
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
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 |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public TimestampRangeSearch(String attribute, String expression)
attribute
- Attribute name.expression
- Search expression such as between.public TimestampRangeSearch(String attribute)
attribute
- Attribute name.Method Detail |
public void setValue(String start_value, String end_value) throws WTPropertyVetoException
setValue
in class AttributeRangeSearch
start_value
- Start value of between range value search.end_value
- End value of between range value search.
WTPropertyVetoException
public void setValue(Timestamp start_value, Timestamp end_value) throws WTPropertyVetoException
start_value
- Start value of between range value search.end_value
- End value of between range value search.
WTPropertyVetoException
public SearchCondition getSearchCondition(Class classname) throws WTException, QueryException
getSearchCondition
in class AttributeRangeSearch
classname
- Class to search against.
WTException
QueryException
public String toString()
AttributeSearchSpecification
toString
in class AttributeRangeSearch
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |