org.ofbiz.entity.condition
Class EntityConditionBase
java.lang.Object
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:
- EntityConditionList: a list of EntityConditions, combined with the operator specified
- EntityExpr: for simple expressions or expressions that combine EntityConditions
- EntityFieldMap: a map of fields where the field (key) equals the value, combined with the operator specified
These can be used in various combinations using the EntityConditionList and EntityExpr objects.
- See Also:
- Serialized Form
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 |
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
EntityConditionBase
public EntityConditionBase()
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)