Class EntityExpr
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- org.apache.ofbiz.entity.condition.EntityCondition
-
- org.apache.ofbiz.entity.condition.EntityExpr
-
- All Implemented Interfaces:
java.io.Serializable
,IsEmpty
public final class EntityExpr extends EntityCondition
Encapsulates simple expressions used for specifying queries- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
-
-
Constructor Summary
Constructors Constructor Description EntityExpr(L lhs, EntityComparisonOperator<LL,RR> operator, R rhs)
EntityExpr(EntityCondition lhs, EntityJoinOperator operator, EntityCondition rhs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(EntityConditionVisitor visitor)
Applies a visitor to this condition.protected void
addValue(java.lang.StringBuilder buffer, ModelField field, java.lang.Object value, java.util.List<EntityConditionParam> params)
void
checkCondition(ModelEntity modelEntity)
void
checkRhsType(ModelEntity modelEntity, Delegator delegator)
boolean
equals(java.lang.Object obj)
EntityCondition
freeze()
java.lang.Object
getLhs()
<L,R,T>
EntityOperator<L,R,T>getOperator()
java.lang.Object
getRhs()
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
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
castBoolean, equals, getColName, getColName, getColName, getField, hashCode
-
-
-
-
Constructor Detail
-
EntityExpr
public EntityExpr(L lhs, EntityComparisonOperator<LL,RR> operator, R rhs)
-
EntityExpr
public EntityExpr(EntityCondition lhs, EntityJoinOperator operator, EntityCondition rhs)
-
-
Method Detail
-
getLhs
public java.lang.Object getLhs()
-
getOperator
public <L,R,T> EntityOperator<L,R,T> getOperator()
-
getRhs
public java.lang.Object getRhs()
-
isEmpty
public boolean isEmpty()
-
makeWhereString
public java.lang.String makeWhereString(ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, Datasource datasourceInfo)
- Specified by:
makeWhereString
in classEntityCondition
-
mapMatches
public boolean mapMatches(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
- Specified by:
mapMatches
in classEntityCondition
-
checkCondition
public void checkCondition(ModelEntity modelEntity) throws GenericModelException
- Specified by:
checkCondition
in classEntityCondition
- Throws:
GenericModelException
-
addValue
protected void addValue(java.lang.StringBuilder buffer, ModelField field, java.lang.Object value, java.util.List<EntityConditionParam> params)
- Overrides:
addValue
in classEntityConditionBase
-
freeze
public EntityCondition freeze()
- Specified by:
freeze
in classEntityCondition
-
accept
public void accept(EntityConditionVisitor visitor)
Description copied from class:EntityCondition
Applies a visitor to this condition.- Specified by:
accept
in classEntityCondition
- Parameters:
visitor
- the visitor to be applied
-
checkRhsType
public void checkRhsType(ModelEntity modelEntity, Delegator delegator)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classEntityConditionBase
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEntityConditionBase
-
-