public final class ConditionFactory extends Object
Constructor and Description |
---|
ConditionFactory() |
Modifier and Type | Method and Description |
---|---|
Condition |
createBetweenCondition(String attName, Object lower, Object upper)
default open between condition
|
Condition |
createBetweenCondition(String attName, Object lower, Object upper, boolean lowerEqual, boolean upperEqual)
default open between condition
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Date value)
Create the condition with Date values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Date value, boolean caseSensitive, boolean immediateOnly)
Create the condition with Date values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Float value)
Create the condition with Float values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Float value, boolean caseSensitive, boolean immediateOnly)
Create the condition with Float values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Integer value)
Conditions for Integer Values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Integer value, boolean caseSensitive, boolean immediateOnly)
Create the condition with Integer values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, List<String> values)
create a case sensitive String type condition with a list of values as input
|
static Condition |
createCondition(String attName, OpTypeEnum opType, List<String> values, boolean containsAll) |
static Condition |
createCondition(String attName, OpTypeEnum opType, List<String> values, boolean caseSensitive, boolean immediateOnly)
create a String type condition with a list of values as input
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Long value)
Create the condition with Long values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, Long value, boolean caseSensitive, boolean immediateOnly)
Create the condition with Long values
|
static Condition |
createCondition(String attName, OpTypeEnum opType, String value)
create a case sensitive String condition.
|
static Condition |
createCondition(String attName, OpTypeEnum opType, String value, boolean caseSensitive, boolean immediateOnly)
create a String type condition with a list of values as input
|
protected static Condition |
createConditionExpression(String attName, OpTypeEnum opType, List<String> values, boolean caseSensitive, boolean immediateOnly)
Create the condition with ConditionExpression
|
protected static Condition |
createConditionExpression(String attName, OpTypeEnum opType, List<String> values, QueryProperties props)
Create the condition with ConditionExpression
|
protected static Condition |
createConditionExpression(String attName, OpTypeEnum opType, String value, boolean caseSensitive, boolean immediateOnly)
Create the condition with ConditionExpression
|
protected static Condition createConditionExpression(String attName, OpTypeEnum opType, String value, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)protected static Condition createConditionExpression(String attName, OpTypeEnum opType, List<String> values, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalues
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)protected static Condition createConditionExpression(String attName, OpTypeEnum opType, List<String> values, QueryProperties props)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionprops
- querry propertiesvalues
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, String value)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, List<String> values, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalues
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)public static Condition createCondition(String attName, OpTypeEnum opType, List<String> values)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalues
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, String value, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)public static Condition createCondition(String attName, OpTypeEnum opType, Integer value)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, Integer value, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)public static Condition createCondition(String attName, OpTypeEnum opType, Date value)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, Date value, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)public static Condition createCondition(String attName, OpTypeEnum opType, Float value)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, Float value, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)public static Condition createCondition(String attName, OpTypeEnum opType, Long value)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditionpublic static Condition createCondition(String attName, OpTypeEnum opType, Long value, boolean caseSensitive, boolean immediateOnly)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalue
- the value for the conditioncaseSensitive
- true
indicates the condition is case sensitive, false
indicates the search is case insensitive. When set to false
, the value must be in lower case. Note: This parameter is ignored if database is not case sensitive.immediateOnly
- whether the retrieved value is immediateOnly or inherited (for flex asset)public static Condition createCondition(String attName, OpTypeEnum opType, List<String> values, boolean containsAll)
attName
- the attribute name that this condition is restricted onopType
- the operation type of this conditionvalues
- the value for the conditioncontainsAll
- booleanpublic Condition createBetweenCondition(String attName, Object lower, Object upper) throws AssetAccessException
attName
- the attribute namelower
- the lower boundupper
- the upper boundAssetAccessException
- throws AssetAccessExceptionpublic Condition createBetweenCondition(String attName, Object lower, Object upper, boolean lowerEqual, boolean upperEqual) throws AssetAccessException
attName
- the attribute namelower
- the lower boundupper
- the upper boundlowerEqual
- whether the lower bound is open or closed?upperEqual
- whether the upper bound is open or closedAssetAccessException
- throws AssetAccessException