Class EntityConditionFunction
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- org.apache.ofbiz.entity.condition.EntityCondition
-
- org.apache.ofbiz.entity.condition.EntityConditionFunction
-
- All Implemented Interfaces:
java.io.Serializable
,IsEmpty
- Direct Known Subclasses:
EntityConditionFunction.NOT
public abstract class EntityConditionFunction extends EntityCondition
Base class for entity condition functions.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityConditionFunction.NOT
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
codeString
protected EntityCondition
condition
static int
ID_NOT
protected java.lang.Integer
idInt
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityConditionFunction(int id, java.lang.String code, EntityCondition condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(EntityConditionVisitor visitor)
Applies a visitor to this condition.void
checkCondition(ModelEntity modelEntity)
boolean
equals(java.lang.Object obj)
java.lang.String
getCode()
int
getId()
int
hashCode()
void
init(int id, java.lang.String code, EntityCondition condition)
boolean
isEmpty()
java.lang.String
makeWhereString(ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, Datasource datasourceInfo)
void
reset()
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityCondition
entityMatches, eval, eval, freeze, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeCondition, makeConditionDate, makeConditionMap, makeConditionWhere, mapMatches, toString
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
addValue, castBoolean, equals, getColName, getColName, getColName, getField, hashCode
-
-
-
-
Field Detail
-
ID_NOT
public static final int ID_NOT
- See Also:
- Constant Field Values
-
idInt
protected java.lang.Integer idInt
-
codeString
protected java.lang.String codeString
-
condition
protected EntityCondition condition
-
-
Constructor Detail
-
EntityConditionFunction
protected EntityConditionFunction(int id, java.lang.String code, EntityCondition condition)
-
-
Method Detail
-
init
public void init(int id, java.lang.String code, EntityCondition condition)
-
reset
public void reset()
-
getCode
public java.lang.String getCode()
-
getId
public int getId()
-
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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classEntityConditionBase
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEntityConditionBase
-
isEmpty
public boolean isEmpty()
-
makeWhereString
public java.lang.String makeWhereString(ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, Datasource datasourceInfo)
- Specified by:
makeWhereString
in classEntityCondition
-
checkCondition
public void checkCondition(ModelEntity modelEntity) throws GenericModelException
- Specified by:
checkCondition
in classEntityCondition
- Throws:
GenericModelException
-
-