| 
|||||||||
| 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 condition with Date values  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.util.Date value,
                boolean caseSensitive,
                boolean immediateOnly)
Create the condition with Date values  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.lang.Float value)
Create the condition with Float values  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.lang.Float value,
                boolean caseSensitive,
                boolean immediateOnly)
Create the condition 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 caseSensitive,
                boolean immediateOnly)
Create the condition with Integer values  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.util.List<java.lang.String> values)
create a case sensitive 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 condition 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 caseSensitive,
                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 condition with Long values  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.lang.Long value,
                boolean caseSensitive,
                boolean immediateOnly)
Create the condition with Long values  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.lang.String value)
create a case sensitive String condition.  | 
static Condition | 
createCondition(java.lang.String attName,
                OpTypeEnum opType,
                java.lang.String value,
                boolean caseSensitive,
                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 caseSensitive,
                          boolean immediateOnly)
Create the condition with ConditionExpression  | 
protected static Condition | 
createConditionExpression(java.lang.String attName,
                          OpTypeEnum opType,
                          java.util.List<java.lang.String> values,
                          QueryProperties props)
Create the condition with ConditionExpression  | 
protected static Condition | 
createConditionExpression(java.lang.String attName,
                          OpTypeEnum opType,
                          java.lang.String value,
                          boolean caseSensitive,
                          boolean immediateOnly)
Create the condition 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 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(java.lang.String attName,
                                                     OpTypeEnum opType,
                                                     java.util.List<java.lang.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(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 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(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 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(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 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(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 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(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 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(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 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(java.lang.String attName,
                                        OpTypeEnum opType,
                                        java.util.List<java.lang.String> values,
                                        boolean containsAll)
attName - the attribute nameopType - the query condition 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 | ||||||||