public interface IDfExpression
IDfQueryBuilder
to construct a search query.IDfQueryBuilder.getRootExpressionSet()
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATE_FORMAT_DEFAULT
Default date format pattern (such as: mm/dd/yyyy hh:mi:ss).
|
static int |
EXPR_TYPE_FULLTEXT
Expression type: full-text expression.
|
static int |
EXPR_TYPE_MLT
Expression type: more-like-this expression.
|
static int |
EXPR_TYPE_RELATIVE_DATE
Expression type: relative date expression.
|
static int |
EXPR_TYPE_SET
Expression type: expression set.
|
static int |
EXPR_TYPE_SIMPLE_ATTR
Expression type: simple (single value) attribute expression.
|
static int |
EXPR_TYPE_UNDEFINED
Expression type: undefined.
|
static int |
EXPR_TYPE_VALUE_LIST_ATTR
Expression type: attribute expression with a list of values (that is, typically for IN operator).
|
static int |
EXPR_TYPE_VALUE_RANGE_ATTR
Expression type: attribute expression with a range of values.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(DfExpressionVisitor visitor)
Visits this expression.
|
java.lang.String |
getDateFormat()
Gets the date format associated with this expression.
|
int |
getExpressionType()
Gets the expression type.
|
void |
setDateFormat(java.lang.String dateFormat)
Sets the date format associated with this expression.
|
static final int EXPR_TYPE_UNDEFINED
static final int EXPR_TYPE_SET
static final int EXPR_TYPE_FULLTEXT
static final int EXPR_TYPE_SIMPLE_ATTR
static final int EXPR_TYPE_VALUE_RANGE_ATTR
static final int EXPR_TYPE_VALUE_LIST_ATTR
static final int EXPR_TYPE_RELATIVE_DATE
static final int EXPR_TYPE_MLT
static final java.lang.String DATE_FORMAT_DEFAULT
IDfTime
int getExpressionType()
IDfExpression
).EXPR_TYPE_SET
,
EXPR_TYPE_FULLTEXT
,
EXPR_TYPE_SIMPLE_ATTR
,
EXPR_TYPE_VALUE_RANGE_ATTR
,
EXPR_TYPE_VALUE_LIST_ATTR
,
EXPR_TYPE_MLT
java.lang.String getDateFormat()
DATE_FORMAT_DEFAULT
is returned.IDfTime
void setDateFormat(java.lang.String dateFormat)
Time zone consideration:
It is important to note that the date must be expressed using the DFC time zone. When the query is sent to a Documentum repository, the date is translated into a universal time zone format (GMT+00), assuming that the date provided is expressed in the DFC time zone.
You should not use a date format with only 'day' precision (such as: "mm/dd/yyyy"). If the DFC time zone is not a universal time zone, the date in the query could be one day before or after the expected date. For example, using the GMT+1 time zone, 01/26/1973 will be transformed into 01/25/1973 in a query sent to the repository ('01/26/1973 00:00:00' minus 1 hour)
dateFormat
- The specific date format to use for this expression. It must follow the date format pattern
supported by the Content Server and described in com.documentum.fc.common.IDfTime
.
The corresponding SimpleDateFormat format are also supported (such as: "MM/dd/yyyy hh:mm:ss" is equivalent to "mm/dd/yyyy hh:mi:ss").
IDfTime
void acceptVisitor(DfExpressionVisitor visitor) throws DfException
visitor
- The visitor to call on each sub-Expression
of the expression.DfSearchException
- The exception thrown by the visitor.DfException
Copyright 1994-2023 OpenText Corporation. All rights reserved.