Class EntityJoinOperator
java.lang.Object
org.apache.ofbiz.entity.condition.EntityOperator<EntityCondition,EntityCondition>
org.apache.ofbiz.entity.condition.EntityJoinOperator
- All Implemented Interfaces:
Serializable
Join operator (AND/OR).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ofbiz.entity.condition.EntityOperator
EntityOperator.CollectionEntityComparisonOperator<E>, EntityOperator.ComparableEntityComparisonOperator<E>
-
Field Summary
Fields inherited from class org.apache.ofbiz.entity.condition.EntityOperator
AND, BETWEEN, EQUALS, GREATER_THAN, GREATER_THAN_EQUAL_TO, ID_AND, ID_BETWEEN, ID_EQUALS, ID_GREATER_THAN, ID_GREATER_THAN_EQUAL_TO, ID_IN, ID_LESS_THAN, ID_LESS_THAN_EQUAL_TO, ID_LIKE, ID_NOT, ID_NOT_EQUAL, ID_NOT_IN, ID_NOT_LIKE, ID_OR, IN, LESS_THAN, LESS_THAN_EQUAL_TO, LIKE, NOT, NOT_EQUAL, NOT_IN, NOT_LIKE, OR, WILDCARD
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityJoinOperator
(int id, String code, boolean shortCircuitValue) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSqlValue
(StringBuilder sql, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean compat, EntityCondition lhs, EntityCondition rhs, Datasource datasourceInfo) void
addSqlValue
(StringBuilder sql, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, List<? extends EntityCondition> conditionList, Datasource datasourceInfo) Add sql value.boolean
entityMatches
(GenericEntity entity, List<? extends EntityCondition> conditionList) Entity matches boolean.boolean
entityMatches
(GenericEntity entity, EntityCondition lhs, EntityCondition rhs) Entity matches boolean.eval
(Delegator delegator, Map<String, ? extends Object> map, List<? extends EntityCondition> conditionList) Eval boolean.eval
(Delegator delegator, Map<String, ? extends Object> map, EntityCondition lhs, EntityCondition rhs) Eval boolean.eval
(GenericEntity entity, EntityCondition lhs, EntityCondition rhs) Eval boolean.protected EntityCondition
Freeze entity condition.freeze
(List<? extends EntityCondition> conditionList) Freeze entity condition.freeze
(EntityCondition lhs, EntityCondition rhs) boolean
isEmpty
(List<? extends EntityCondition> conditionList) Is empty boolean.boolean
isEmpty
(EntityCondition lhs, EntityCondition rhs) boolean
mapMatches
(Delegator delegator, Map<String, ? extends Object> map, List<? extends EntityCondition> conditionList) Map matches boolean.boolean
mapMatches
(Delegator delegator, Map<String, ? extends Object> map, EntityCondition lhs, EntityCondition rhs) void
validateSql
(ModelEntity modelEntity, List<? extends EntityCondition> conditionList) Validate sql.void
validateSql
(ModelEntity modelEntity, EntityCondition lhs, EntityCondition rhs) Methods inherited from class org.apache.ofbiz.entity.condition.EntityOperator
addSqlValue, appendRHSBetweenList, appendRHSList, equals, getCode, getId, hashCode, lookup, lookupComparison, lookupJoin, register, toString
-
Constructor Details
-
EntityJoinOperator
-
-
Method Details
-
addSqlValue
public void addSqlValue(StringBuilder sql, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean compat, EntityCondition lhs, EntityCondition rhs, Datasource datasourceInfo) - Specified by:
addSqlValue
in classEntityOperator<EntityCondition,
EntityCondition>
-
addSqlValue
public void addSqlValue(StringBuilder sql, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, List<? extends EntityCondition> conditionList, Datasource datasourceInfo) Add sql value.- Parameters:
sql
- the sqlmodelEntity
- the model entityentityConditionParams
- the entity condition paramsconditionList
- the condition listdatasourceInfo
- the datasource info
-
freeze
Freeze entity condition.- Parameters:
item
- the item- Returns:
- the entity condition
-
freeze
- Specified by:
freeze
in classEntityOperator<EntityCondition,
EntityCondition>
-
freeze
Freeze entity condition.- Parameters:
conditionList
- the condition list- Returns:
- the entity condition
-
eval
Eval boolean.- Parameters:
entity
- the entitylhs
- the lhsrhs
- the rhs- Returns:
- the boolean
-
isEmpty
- Specified by:
isEmpty
in classEntityOperator<EntityCondition,
EntityCondition>
-
isEmpty
Is empty boolean.- Parameters:
conditionList
- the condition list- Returns:
- the boolean
-
entityMatches
Description copied from class:EntityOperator
Entity matches boolean.- Overrides:
entityMatches
in classEntityOperator<EntityCondition,
EntityCondition> - Parameters:
entity
- the entitylhs
- the lhsrhs
- the rhs- Returns:
- the boolean
-
entityMatches
Entity matches boolean.- Parameters:
entity
- the entityconditionList
- the condition list- Returns:
- the boolean
-
eval
public Boolean eval(Delegator delegator, Map<String, ? extends Object> map, EntityCondition lhs, EntityCondition rhs) Eval boolean.- Parameters:
delegator
- the delegatormap
- the maplhs
- the lhsrhs
- the rhs- Returns:
- the boolean
-
mapMatches
public boolean mapMatches(Delegator delegator, Map<String, ? extends Object> map, EntityCondition lhs, EntityCondition rhs) - Specified by:
mapMatches
in classEntityOperator<EntityCondition,
EntityCondition>
-
eval
public Boolean eval(Delegator delegator, Map<String, ? extends Object> map, List<? extends EntityCondition> conditionList) Eval boolean.- Parameters:
delegator
- the delegatormap
- the mapconditionList
- the condition list- Returns:
- the boolean
-
mapMatches
public boolean mapMatches(Delegator delegator, Map<String, ? extends Object> map, List<? extends EntityCondition> conditionList) Map matches boolean.- Parameters:
delegator
- the delegatormap
- the mapconditionList
- the condition list- Returns:
- the boolean
-
validateSql
public void validateSql(ModelEntity modelEntity, EntityCondition lhs, EntityCondition rhs) throws GenericModelException - Specified by:
validateSql
in classEntityOperator<EntityCondition,
EntityCondition> - Throws:
GenericModelException
-
validateSql
public void validateSql(ModelEntity modelEntity, List<? extends EntityCondition> conditionList) throws GenericModelException Validate sql.- Parameters:
modelEntity
- the model entityconditionList
- the condition list- Throws:
GenericModelException
- the generic model exception
-