Class EntityConditionBase
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntityCondition
,EntityConditionValue
,EntityOperator
public abstract class EntityConditionBase extends Object implements 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
-
-
Constructor Summary
Constructors Constructor Description EntityConditionBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addValue(StringBuilder buffer, ModelField field, Object value, List<EntityConditionParam> params)
static Boolean
castBoolean(boolean result)
boolean
equals(Object obj)
protected static boolean
equals(Object o1, Object o2)
protected String
getColName(Map<String,String> tableAliases, ModelEntity modelEntity, String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)
protected String
getColName(Map<String,String> tableAliases, ModelEntity modelEntity, ModelField modelField, String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)
protected String
getColName(ModelField modelField, String fieldName)
protected ModelField
getField(ModelEntity modelEntity, String fieldName)
int
hashCode()
protected static int
hashCode(Object o)
-
-
-
Method Detail
-
getField
protected ModelField getField(ModelEntity modelEntity, String fieldName)
-
getColName
protected String getColName(Map<String,String> tableAliases, ModelEntity modelEntity, String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)
-
getColName
protected String getColName(ModelField modelField, String fieldName)
-
getColName
protected String getColName(Map<String,String> tableAliases, ModelEntity modelEntity, ModelField modelField, String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)
-
addValue
protected void addValue(StringBuilder buffer, ModelField field, Object value, List<EntityConditionParam> params)
-
hashCode
protected static int hashCode(Object o)
-
castBoolean
public static Boolean castBoolean(boolean result)
-
-