|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fatwire.assetapi.query.ConditionFactory
public final class ConditionFactory
A utility for creating Conditions
| Constructor Summary | |
|---|---|
ConditionFactory()
|
|
| Method Summary | |
|---|---|
Condition |
createBetweenCondition(java.lang.String attName,
java.lang.Object lower,
java.lang.Object upper)
default open between condition |
Condition |
createBetweenCondition(java.lang.String attName,
java.lang.Object lower,
java.lang.Object upper,
boolean lowerEqual,
boolean upperEqual)
default open between condition |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.Date value)
Create the condtion with Date values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.Date value,
boolean caseSensiive,
boolean immediateOnly)
Create the condtion with Date values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Float value)
Create the condtion with Float values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Float value,
boolean caseSensiive,
boolean immediateOnly)
Create the condtion with Float values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Integer value)
Conditions for Integer Values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Integer value,
boolean caseSensiive,
boolean immediateOnly)
Create the condtion with Integer values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values)
create a String type condition with a list of values as input |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
boolean containsAll)
Create an condtion with a list of values and operation type |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
boolean caseSensiive,
boolean immediateOnly)
create a String type condition with a list of values as input |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Long value)
Create the condtion with Long values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Long value,
boolean caseSensiive,
boolean immediateOnly)
Create the condtion with Long values |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.String value)
create a String condition |
static Condition |
createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.String value,
boolean caseSensiive,
boolean immediateOnly)
create a String type condition with a list of values as input |
protected static Condition |
createConditionExpression(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
boolean caseSensiive,
boolean immediateOnly)
Create the condtion with ConditionExpression Create the condtion with ConditionExpression |
protected static Condition |
createConditionExpression(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
QueryProperties props)
Create the condtion with ConditionExpression |
protected static Condition |
createConditionExpression(java.lang.String attName,
OpTypeEnum opType,
java.lang.String value,
boolean caseSensiive,
boolean immediateOnly)
Create the condtion with ConditionExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionFactory()
| Method Detail |
|---|
protected static Condition createConditionExpression(java.lang.String attName,
OpTypeEnum opType,
java.lang.String value,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
protected static Condition createConditionExpression(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalues - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
protected static Condition createConditionExpression(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
QueryProperties props)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalues - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.String value)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalues - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalues - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.String value,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Integer value)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Integer value,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.Date value)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.Date value,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Float value)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Float value,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Long value)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the condition
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.lang.Long value,
boolean caseSensiive,
boolean immediateOnly)
attName - the attribute name that this condition is restricted onopType - the operation type of this conditionvalue - the value for the conditioncaseSensiive - whether the query for this condition is case sensitive or notimmediateOnly - whether the retrieved value is immediateOnly or inherited (for flex asset)
public static Condition createCondition(java.lang.String attName,
OpTypeEnum opType,
java.util.List<java.lang.String> values,
boolean containsAll)
attName - the attribute nameopType - the query condtion typevalues - the list of valuescontainsAll - whether to contain all the attributes
public Condition createBetweenCondition(java.lang.String attName,
java.lang.Object lower,
java.lang.Object upper)
throws AssetAccessException
attName - the attribute namelower - the lower boundupper - the upper bound
AssetAccessException
public Condition createBetweenCondition(java.lang.String attName,
java.lang.Object lower,
java.lang.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 closed
AssetAccessException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||