org.ofbiz.entity.condition
Class EntityConditionBase

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

public abstract class EntityConditionBase
extends java.lang.Object
implements java.io.Serializable

Represents the conditions to be used to constrain a query
An EntityCondition can represent various type of constraints, including:

These can be used in various combinations using the EntityConditionList and EntityExpr objects.

See Also:
Serialized Form

Field Summary
static java.util.Map _emptyMap
           
static java.util.Map<java.lang.String,java.lang.String> emptyAliases
           
static java.util.List emptyList
           
 
Constructor Summary
EntityConditionBase()
           
 
Method Summary
protected  void addValue(java.lang.StringBuilder buffer, ModelField field, java.lang.Object value, java.util.List<EntityConditionParam> params)
           
static java.lang.Boolean castBoolean(boolean result)
           
 boolean equals(java.lang.Object obj)
           
protected static boolean equals(java.lang.Object o1, java.lang.Object o2)
           
protected  java.lang.String getColName(java.util.Map<java.lang.String,java.lang.String> tableAliases, ModelEntity modelEntity, ModelField modelField, java.lang.String fieldName, boolean includeTableNamePrefix, DatasourceInfo datasourceInfo)
           
protected  java.lang.String getColName(java.util.Map<java.lang.String,java.lang.String> tableAliases, ModelEntity modelEntity, java.lang.String fieldName, boolean includeTableNamePrefix, DatasourceInfo datasourceInfo)
           
protected  java.lang.String getColName(ModelField modelField, java.lang.String fieldName)
           
protected  ModelField getField(ModelEntity modelEntity, java.lang.String fieldName)
           
 int hashCode()
           
protected static int hashCode(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyList

public static final java.util.List emptyList

_emptyMap

public static final java.util.Map _emptyMap

emptyAliases

public static final java.util.Map<java.lang.String,java.lang.String> emptyAliases
Constructor Detail

EntityConditionBase

public EntityConditionBase()
Method Detail

getField

protected ModelField getField(ModelEntity modelEntity,
                              java.lang.String fieldName)

getColName

protected java.lang.String getColName(java.util.Map<java.lang.String,java.lang.String> tableAliases,
                                      ModelEntity modelEntity,
                                      java.lang.String fieldName,
                                      boolean includeTableNamePrefix,
                                      DatasourceInfo datasourceInfo)

getColName

protected java.lang.String getColName(ModelField modelField,
                                      java.lang.String fieldName)

getColName

protected java.lang.String getColName(java.util.Map<java.lang.String,java.lang.String> tableAliases,
                                      ModelEntity modelEntity,
                                      ModelField modelField,
                                      java.lang.String fieldName,
                                      boolean includeTableNamePrefix,
                                      DatasourceInfo datasourceInfo)

addValue

protected void addValue(java.lang.StringBuilder buffer,
                        ModelField field,
                        java.lang.Object value,
                        java.util.List<EntityConditionParam> params)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

protected static boolean equals(java.lang.Object o1,
                                java.lang.Object o2)

hashCode

protected static int hashCode(java.lang.Object o)

castBoolean

public static java.lang.Boolean castBoolean(boolean result)