org.ofbiz.entity.condition
Class EntityConditionFunction

java.lang.Object
  extended by org.ofbiz.entity.condition.EntityConditionBase
      extended by org.ofbiz.entity.condition.EntityCondition
          extended by org.ofbiz.entity.condition.EntityConditionFunction
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EntityConditionFunction.NOT

public abstract class EntityConditionFunction
extends EntityCondition

Encapsulates operations between entities and entity fields. This is a immutable class.

See Also:
Serialized Form

Nested Class Summary
static class EntityConditionFunction.NOT
           
 
Field Summary
protected  java.lang.String codeString
           
protected  EntityCondition condition
           
static int ID_NOT
           
protected  java.lang.Integer idInt
           
 
Fields inherited from class org.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
 
Constructor Summary
protected EntityConditionFunction(int id, java.lang.String code, EntityCondition condition)
           
 
Method Summary
 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)
           
 java.lang.String makeWhereString(ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, DatasourceInfo datasourceInfo)
           
 void reset()
           
 void visit(EntityConditionVisitor visitor)
           
 
Methods inherited from class org.ofbiz.entity.condition.EntityCondition
accept, encryptConditionFields, 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.ofbiz.entity.condition.EntityConditionBase
addValue, castBoolean, equals, getColName, getColName, getColName, getField, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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()

visit

public void visit(EntityConditionVisitor visitor)
Overrides:
visit in class EntityCondition

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class EntityConditionBase

hashCode

public int hashCode()
Overrides:
hashCode in class EntityConditionBase

makeWhereString

public java.lang.String makeWhereString(ModelEntity modelEntity,
                                        java.util.List<EntityConditionParam> entityConditionParams,
                                        DatasourceInfo datasourceInfo)
Specified by:
makeWhereString in class EntityCondition

checkCondition

public void checkCondition(ModelEntity modelEntity)
                    throws GenericModelException
Specified by:
checkCondition in class EntityCondition
Throws:
GenericModelException