public class DfExpressionFactory
extends java.lang.Object
Constructor and Description |
---|
DfExpressionFactory() |
Modifier and Type | Method and Description |
---|---|
static IDfExpressionSet |
newExpressionSet(int logicalOperator)
Creates an expression set.
|
static IDfFullTextExpression |
newFullTextExpression(java.lang.String value)
Creates a full-text search expression.
|
static IDfRelativeDateExpression |
newRelativeDateExpression(java.lang.String attrName,
int searchOpCode,
boolean isRepeated,
int relativeTime,
int timeUnit)
Creates a relative date expression.
|
static IDfSimpleAttrExpression |
newSimpleAttrExpression(java.lang.String attrName,
int valueDataType,
int searchOp,
boolean isCaseSensitive,
boolean isRepeated,
java.lang.String value)
Creates a simple attribute value expression.
|
static IDfValueListAttrExpression |
newValueListAttrExpression(java.lang.String attrName,
int valueDataType,
int searchOp,
boolean isCaseSensitive,
boolean isRepeated)
Creates a search expression that requires the attribute value to be included in a list of values.
|
static IDfValueListAttrExpression |
newValueListAttrExpression(java.lang.String attrName,
int valueDataType,
int searchOp,
boolean isCaseSensitive,
boolean isRepeated,
IDfList valueList)
Creates a search expression that requires the attribute value to be included in a list of values.
|
static IDfValueRangeAttrExpression |
newValueRangeAttrExpression(java.lang.String attrName,
int valueDataType,
int searchOp,
boolean isCaseSensitive,
boolean isRepeated,
java.lang.String fromValue,
java.lang.String toValue)
Creates a search expression that requires the attribute value to be within a range.
|
public static IDfSimpleAttrExpression newSimpleAttrExpression(java.lang.String attrName, int valueDataType, int searchOp, boolean isCaseSensitive, boolean isRepeated, java.lang.String value)
attrName
- The attribute name.valueDataType
- The data type of the value (constants defined in IDfValue
, such as
DF_STRING
).searchOp
- The search operation code (constants defined in IDfAttrExpression
and
IDfSimpleAttrExpression
, such as SEARCH_OP_CONTAINS
).isCaseSensitive
- true
if the search operation is case sensitive; false
otherwise.isRepeated
- true
if the attribute is repeated; false
otherwise.value
- The expected value of the search operation; or null
if there is no value (for
example: for IS_NULL or IS_NOT_NULL operator).IDfValue.DF_STRING
,
IDfSimpleAttrExpression.SEARCH_OP_CONTAINS
public static IDfRelativeDateExpression newRelativeDateExpression(java.lang.String attrName, int searchOpCode, boolean isRepeated, int relativeTime, int timeUnit)
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.attrName
- The attribute name.searchOpCode
- The search operation code (constants defined in IDfAttrExpression
and
IDfSimpleAttrExpression
, such as SEARCH_OP_CONTAINS
).isRepeated
- true
if the attribute is repeated; false
otherwise.relativeTime
- The relative time to add to the actual date of the query execution.timeUnit
- The time unit (Calendar.MINUTE, Calendar.DAY_OF_MONTH, Calendar.MONTH,
Calendar.YEAR
).IDfSimpleAttrExpression.SEARCH_OP_GREATER_EQUAL
public static IDfValueRangeAttrExpression newValueRangeAttrExpression(java.lang.String attrName, int valueDataType, int searchOp, boolean isCaseSensitive, boolean isRepeated, java.lang.String fromValue, java.lang.String toValue)
attrName
- The attribute name.valueDataType
- The data type of the value (constants defined in IDfValue
, for example,
DF_STRING
).searchOp
- The search operation code (constants defined in IDfAttrExpression
and
IDfSimpleAttrExpression
, for example, SEARCH_OP_CONTAINS
).isCaseSensitive
- true
if the search operation is case sensitive; false
otherwise.isRepeated
- true
if the attribute is repeated; false
otherwise.fromValue
- The minimum value of the range (included).toValue
- The maximum value of the range (included).IDfValue.DF_STRING
,
IDfSimpleAttrExpression.SEARCH_OP_CONTAINS
public static IDfValueListAttrExpression newValueListAttrExpression(java.lang.String attrName, int valueDataType, int searchOp, boolean isCaseSensitive, boolean isRepeated)
IDfValueListAttrExpression
returned.attrName
- The attribute name.valueDataType
- The data type of the value (constants defined in IDfValue
, for example,
DF_STRING
).searchOp
- The search operation code (constants defined in IDfAttrExpression
and
IDfSimpleAttrExpression
, for example, SEARCH_OP_CONTAINS
).isCaseSensitive
- true
if the search operation is case sensitive; false
otherwise.isRepeated
- true
if the attribute is repeated; false
otherwise.IDfValue.DF_STRING
,
IDfSimpleAttrExpression.SEARCH_OP_CONTAINS
public static IDfValueListAttrExpression newValueListAttrExpression(java.lang.String attrName, int valueDataType, int searchOp, boolean isCaseSensitive, boolean isRepeated, IDfList valueList)
attrName
- The attribute name.valueDataType
- The data type of the value (constants defined in IDfValue
, for example,
DF_STRING
).searchOp
- The search operation code (constants defined in IDfAttrExpression
and
IDfSimpleAttrExpression
, for example, SEARCH_OP_CONTAINS
).isCaseSensitive
- true
if the search operation is case sensitive; false
otherwise.isRepeated
- true
if the attribute is repeated; false
otherwise.valueList
- The list of values (IDfList
of String
). The non-string values
are skipped.IDfValue.DF_STRING
,
IDfSimpleAttrExpression.SEARCH_OP_CONTAINS
public static IDfFullTextExpression newFullTextExpression(java.lang.String value)
value
- The string to look for in full text.public static IDfExpressionSet newExpressionSet(int logicalOperator)
logicalOperator
- The logical operator applied to the set (AND
or OR
).Copyright 1994-2023 OpenText Corporation. All rights reserved.