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:
java.io.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 java.lang.String
entityAlias
protected java.util.List<java.lang.String>
entityAliasStack
protected java.lang.String
fieldName
protected ModelViewEntity
modelViewEntity
static java.lang.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(java.lang.StringBuilder sql, java.util.Map<java.lang.String,java.lang.String> tableAliases, ModelEntity modelEntity, java.util.List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo)
boolean
equals(java.lang.Object obj)
EntityConditionValue
freeze()
java.lang.String
getFieldName()
ModelField
getModelField(ModelEntity modelEntity)
java.lang.Object
getValue(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
int
hashCode()
void
init(java.lang.String fieldName, java.lang.String entityAlias, java.util.List<java.lang.String> entityAliasStack, ModelViewEntity modelViewEntity)
static EntityFieldValue
makeFieldValue(java.lang.String fieldName)
static EntityFieldValue
makeFieldValue(java.lang.String fieldName, java.lang.String entityAlias, java.util.List<java.lang.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
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
fieldName
protected java.lang.String fieldName
-
entityAlias
protected java.lang.String entityAlias
-
entityAliasStack
protected java.util.List<java.lang.String> entityAliasStack
-
modelViewEntity
protected ModelViewEntity modelViewEntity
-
-
Method Detail
-
makeFieldValue
public static EntityFieldValue makeFieldValue(java.lang.String fieldName)
-
makeFieldValue
public static EntityFieldValue makeFieldValue(java.lang.String fieldName, java.lang.String entityAlias, java.util.List<java.lang.String> entityAliasStack, ModelViewEntity modelViewEntity)
-
init
public void init(java.lang.String fieldName, java.lang.String entityAlias, java.util.List<java.lang.String> entityAliasStack, ModelViewEntity modelViewEntity)
-
reset
public void reset()
-
getFieldName
public java.lang.String getFieldName()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEntityConditionBase
-
equals
public boolean equals(java.lang.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(java.lang.StringBuilder sql, java.util.Map<java.lang.String,java.lang.String> tableAliases, ModelEntity modelEntity, java.util.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 java.lang.Object getValue(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
- Specified by:
getValue
in classEntityConditionValue
-
freeze
public EntityConditionValue freeze()
- Specified by:
freeze
in classEntityConditionValue
-
-