Class EntityFieldValue
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- org.apache.ofbiz.entity.condition.EntityConditionValue
-
- org.apache.ofbiz.entity.condition.EntityFieldValue
-
- All Implemented Interfaces:
Serializable
public class EntityFieldValue extends EntityConditionValue
Field value expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ofbiz.entity.condition.EntityConditionValue
EntityConditionValue.ConstantNumberValue
-
-
Field Summary
Fields Modifier and Type Field Description protected String
entityAlias
protected List<String>
entityAliasStack
protected String
fieldName
protected ModelViewEntity
modelViewEntity
static String
module
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
-
-
Constructor Summary
Constructors Constructor Description EntityFieldValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSqlValue(StringBuilder sql, Map<String,String> tableAliases, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo)
boolean
equals(Object obj)
EntityConditionValue
freeze()
String
getFieldName()
ModelField
getModelField(ModelEntity modelEntity)
Object
getValue(Delegator delegator, Map<String,? extends Object> map)
int
hashCode()
void
init(String fieldName, String entityAlias, List<String> entityAliasStack, ModelViewEntity modelViewEntity)
static EntityFieldValue
makeFieldValue(String fieldName)
static EntityFieldValue
makeFieldValue(String fieldName, String entityAlias, List<String> entityAliasStack, ModelViewEntity modelViewEntity)
void
reset()
void
setModelField(ModelField field)
void
validateSql(ModelEntity modelEntity)
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionValue
addSqlValue, CONSTANT_NUMBER, getValue, toString, toString
-
Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
addValue, castBoolean, equals, getColName, getColName, getColName, getField, hashCode
-
-
-
-
Method Detail
-
makeFieldValue
public static EntityFieldValue makeFieldValue(String fieldName)
-
makeFieldValue
public static EntityFieldValue makeFieldValue(String fieldName, String entityAlias, List<String> entityAliasStack, ModelViewEntity modelViewEntity)
-
init
public void init(String fieldName, String entityAlias, List<String> entityAliasStack, ModelViewEntity modelViewEntity)
-
reset
public void reset()
-
getFieldName
public String getFieldName()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEntityConditionBase
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classEntityConditionBase
-
getModelField
public ModelField getModelField(ModelEntity modelEntity)
- Specified by:
getModelField
in classEntityConditionValue
-
setModelField
public void setModelField(ModelField field)
- Specified by:
setModelField
in classEntityConditionValue
-
addSqlValue
public void addSqlValue(StringBuilder sql, Map<String,String> tableAliases, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo)
- Specified by:
addSqlValue
in classEntityConditionValue
-
validateSql
public void validateSql(ModelEntity modelEntity) throws GenericModelException
- Specified by:
validateSql
in classEntityConditionValue
- Throws:
GenericModelException
-
getValue
public Object getValue(Delegator delegator, Map<String,? extends Object> map)
- Specified by:
getValue
in classEntityConditionValue
-
freeze
public EntityConditionValue freeze()
- Specified by:
freeze
in classEntityConditionValue
-
-