public interface IDfRelativeDateExpression extends IDfSimpleAttrExpression
getValue()
returns a dynamic date that
is relative to the actual date when the query is executed.SEARCH_OP_BEGINS_WITH, SEARCH_OP_CONTAINS, SEARCH_OP_DOES_NOT_CONTAIN, SEARCH_OP_ENDS_WITH, SEARCH_OP_EQUAL, SEARCH_OP_GREATER_EQUAL, SEARCH_OP_GREATER_THAN, SEARCH_OP_IS_NOT_NULL, SEARCH_OP_IS_NULL, SEARCH_OP_LESS_EQUAL, SEARCH_OP_LESS_THAN, SEARCH_OP_NOT_EQUAL
SEARCH_OP_UNDEFINED
DATE_FORMAT_DEFAULT, EXPR_TYPE_FULLTEXT, EXPR_TYPE_MLT, EXPR_TYPE_RELATIVE_DATE, EXPR_TYPE_SET, EXPR_TYPE_SIMPLE_ATTR, EXPR_TYPE_UNDEFINED, EXPR_TYPE_VALUE_LIST_ATTR, EXPR_TYPE_VALUE_RANGE_ATTR
Modifier and Type | Method and Description |
---|---|
int |
getRelativeTime()
Gets the number of time units for the relative date expression.
|
int |
getTimeUnit()
Gets the time unit for the relative date expression.
|
getFuzzySearchSimilarity, getThesaurusLibrary, getValue, isExactMatchEnabled, isFuzzySearchEnabled, isThesaurusSearchEnabled, setExactMatchEnabled, setFuzzySearchEnabled, setFuzzySearchSimilarity, setThesaurusLibrary, setThesaurusSearchEnabled
getAttrName, getSearchOperation, getSearchOperationCode, getValueDataType, isCaseSensitive, isRepeated
acceptVisitor, getDateFormat, getExpressionType, setDateFormat
int getRelativeTime()
search operator=GREATER_THAN
, relative
time=-3
, time unit=MONTH
, then the expression defines a constraint on a date that must be
greater than the current date minus 3 months. In this example, this method would return the value -3.int getTimeUnit()
searchOpCode=GREATER_THAN
,
relativeTime=-3
, timeUnit=MONTH
, then the expression defines a constraint on a date
that must be greater than the current date minus 3 months. In this example, this method would return the value
MONTH.Copyright 1994-2023 OpenText Corporation. All rights reserved.