Class EntityJoinOperator
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- org.apache.ofbiz.entity.condition.EntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
-
- org.apache.ofbiz.entity.condition.EntityJoinOperator
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityJoinOperator extends EntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
Join operator (AND/OR).- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ofbiz.entity.condition.EntityOperator
EntityOperator.CollectionEntityComparisonOperator<E>, EntityOperator.ComparableEntityComparisonOperator<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
shortCircuitValue
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityOperator
AND, BETWEEN, codeString, 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, idInt, IN, LESS_THAN, LESS_THAN_EQUAL_TO, LIKE, NOT, NOT_EQUAL, NOT_IN, NOT_LIKE, OR, WILDCARD
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityJoinOperator(int id, java.lang.String code, boolean shortCircuitValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSqlValue(java.lang.StringBuilder sql, ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, boolean compat, EntityCondition lhs, EntityCondition rhs, Datasource datasourceInfo)
void
addSqlValue(java.lang.StringBuilder sql, ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, java.util.List<? extends EntityCondition> conditionList, Datasource datasourceInfo)
boolean
entityMatches(GenericEntity entity, java.util.List<? extends EntityCondition> conditionList)
boolean
entityMatches(GenericEntity entity, EntityCondition lhs, EntityCondition rhs)
java.lang.Boolean
eval(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, java.util.List<? extends EntityCondition> conditionList)
java.lang.Boolean
eval(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, EntityCondition lhs, EntityCondition rhs)
java.lang.Boolean
eval(GenericEntity entity, EntityCondition lhs, EntityCondition rhs)
protected EntityCondition
freeze(java.lang.Object item)
EntityCondition
freeze(java.util.List<? extends EntityCondition> conditionList)
EntityCondition
freeze(EntityCondition lhs, EntityCondition rhs)
boolean
isEmpty(java.util.List<? extends EntityCondition> conditionList)
boolean
isEmpty(EntityCondition lhs, EntityCondition rhs)
boolean
mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, java.util.List<? extends EntityCondition> conditionList)
boolean
mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, EntityCondition lhs, EntityCondition rhs)
void
validateSql(ModelEntity modelEntity, java.util.List<? extends EntityCondition> conditionList)
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
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
addValue, castBoolean, equals, getColName, getColName, getColName, getField, hashCode
-
-
-
-
Method Detail
-
addSqlValue
public void addSqlValue(java.lang.StringBuilder sql, ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, boolean compat, EntityCondition lhs, EntityCondition rhs, Datasource datasourceInfo)
- Specified by:
addSqlValue
in classEntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
-
addSqlValue
public void addSqlValue(java.lang.StringBuilder sql, ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, java.util.List<? extends EntityCondition> conditionList, Datasource datasourceInfo)
-
freeze
protected EntityCondition freeze(java.lang.Object item)
-
freeze
public EntityCondition freeze(EntityCondition lhs, EntityCondition rhs)
- Specified by:
freeze
in classEntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
-
freeze
public EntityCondition freeze(java.util.List<? extends EntityCondition> conditionList)
-
eval
public java.lang.Boolean eval(GenericEntity entity, EntityCondition lhs, EntityCondition rhs)
-
isEmpty
public boolean isEmpty(EntityCondition lhs, EntityCondition rhs)
- Specified by:
isEmpty
in classEntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
-
isEmpty
public boolean isEmpty(java.util.List<? extends EntityCondition> conditionList)
-
entityMatches
public boolean entityMatches(GenericEntity entity, EntityCondition lhs, EntityCondition rhs)
- Overrides:
entityMatches
in classEntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
-
entityMatches
public boolean entityMatches(GenericEntity entity, java.util.List<? extends EntityCondition> conditionList)
-
eval
public java.lang.Boolean eval(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, EntityCondition lhs, EntityCondition rhs)
-
mapMatches
public boolean mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, EntityCondition lhs, EntityCondition rhs)
- Specified by:
mapMatches
in classEntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
-
eval
public java.lang.Boolean eval(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, java.util.List<? extends EntityCondition> conditionList)
-
mapMatches
public boolean mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map, java.util.List<? extends EntityCondition> conditionList)
-
validateSql
public void validateSql(ModelEntity modelEntity, EntityCondition lhs, EntityCondition rhs) throws GenericModelException
- Specified by:
validateSql
in classEntityOperator<EntityCondition,EntityCondition,java.lang.Boolean>
- Throws:
GenericModelException
-
validateSql
public void validateSql(ModelEntity modelEntity, java.util.List<? extends EntityCondition> conditionList) throws GenericModelException
- Throws:
GenericModelException
-
-