Class EntityConditionBase
- java.lang.Object
-
- org.apache.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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<?,?>
_emptyMap
static java.util.Map<java.lang.String,java.lang.String>
emptyAliases
static java.util.List<?>
emptyList
-
Constructor Summary
Constructors Constructor Description EntityConditionBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, java.lang.String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)
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, Datasource 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)
-
-
-
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, Datasource 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, Datasource 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.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)
-
-