Package org.ofbiz.core.entity
Class EntityConditionList
java.lang.Object
org.ofbiz.core.entity.EntityCondition
org.ofbiz.core.entity.EntityConditionList
- All Implemented Interfaces:
Serializable
Encapsulates a list of EntityConditions to be used as a single EntityCondition combined as specified
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<? extends EntityCondition>protected EntityOperator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityConditionList(List<? extends EntityCondition> conditionList, EntityOperator operator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCondition(ModelEntity modelEntity) Checks this condition against the given entity.getCondition(int index) Iterator<? extends EntityCondition>intintgetParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) Returns the number of SQL parameters that would be generated for this condition.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) Creates a string for use in a WHERE clause, based on this condition.toString()
-
Field Details
-
conditionList
-
operator
-
-
Constructor Details
-
EntityConditionList
protected EntityConditionList() -
EntityConditionList
-
-
Method Details
-
getOperator
-
getCondition
-
getConditionListSize
public int getConditionListSize() -
getConditionIterator
-
makeWhereString
public String makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) Description copied from class:EntityConditionCreates a string for use in a WHERE clause, based on this condition.- Specified by:
makeWhereStringin classEntityCondition- Parameters:
modelEntity- the entity being queried for (required)entityConditionParams- a non-null list to which this method will add any required bind values- Returns:
- a non-null string
-
checkCondition
Description copied from class:EntityConditionChecks this condition against the given entity.- Specified by:
checkConditionin classEntityCondition- Parameters:
modelEntity- the entity being queried for (required)- Throws:
GenericModelException- if the condition is not met
-
getParameterCount
Description copied from class:EntityConditionReturns the number of SQL parameters that would be generated for this condition.- Overrides:
getParameterCountin classEntityCondition- Parameters:
modelEntity- the entity being queried for (required)- Returns:
- the number of SQL parameters.
-
toString
-