Class EntityConditionListBase<T extends EntityCondition>
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- org.apache.ofbiz.entity.condition.EntityCondition
-
- org.apache.ofbiz.entity.condition.EntityConditionListBase<T>
-
- All Implemented Interfaces:
java.io.Serializable
,IsEmpty
- Direct Known Subclasses:
EntityConditionList
,EntityFieldMap
public abstract class EntityConditionListBase<T extends EntityCondition> extends EntityCondition
Encapsulates a list of EntityConditions to be used as a single EntityCondition combined as specified- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<T>
conditionList
static java.lang.String
module
protected EntityJoinOperator
operator
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityConditionListBase(java.util.List<T> conditionList, EntityJoinOperator operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCondition(ModelEntity modelEntity)
boolean
equals(java.lang.Object obj)
EntityCondition
freeze()
T
getCondition(int index)
protected java.util.Iterator<T>
getConditionIterator()
protected int
getConditionListSize()
EntityJoinOperator
getOperator()
int
hashCode()
boolean
isEmpty()
java.lang.String
makeWhereString(ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, Datasource datasourceInfo)
boolean
mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityCondition
accept, entityMatches, eval, eval, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeConditionDate, makeConditionMap, makeConditionWhere, toString
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
addValue, castBoolean, equals, getColName, getColName, getColName, getField, hashCode
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
conditionList
protected final java.util.List<T extends EntityCondition> conditionList
-
operator
protected final EntityJoinOperator operator
-
-
Constructor Detail
-
EntityConditionListBase
protected EntityConditionListBase(java.util.List<T> conditionList, EntityJoinOperator operator)
-
-
Method Detail
-
getOperator
public EntityJoinOperator getOperator()
-
getCondition
public T getCondition(int index)
-
getConditionListSize
protected int getConditionListSize()
-
getConditionIterator
protected java.util.Iterator<T> getConditionIterator()
-
isEmpty
public boolean isEmpty()
-
makeWhereString
public java.lang.String makeWhereString(ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, Datasource datasourceInfo)
- Specified by:
makeWhereString
in classEntityCondition
-
checkCondition
public void checkCondition(ModelEntity modelEntity) throws GenericModelException
- Specified by:
checkCondition
in classEntityCondition
- Throws:
GenericModelException
-
mapMatches
public boolean mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
- Specified by:
mapMatches
in classEntityCondition
-
freeze
public EntityCondition freeze()
- Specified by:
freeze
in classEntityCondition
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classEntityConditionBase
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEntityConditionBase
-
-