Package org.ofbiz.core.entity
Class EntityExprList
java.lang.Object
org.ofbiz.core.entity.EntityCondition
org.ofbiz.core.entity.EntityExprList
- All Implemented Interfaces:
Serializable
Encapsulates simple expressions used for specifying queries
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityExprList(List<? extends EntityExpr> exprList, EntityOperator operator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCondition(ModelEntity modelEntity) Checks this condition against the given entity.getExpr(int index) Iterator<? extends EntityExpr>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
-
exprList
-
operator
-
-
Constructor Details
-
EntityExprList
protected EntityExprList() -
EntityExprList
-
-
Method Details
-
getOperator
-
getExpr
-
getExprListSize
public int getExprListSize() -
getExprIterator
-
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
-