Class EntityFieldValue
java.lang.Object
org.apache.ofbiz.entity.condition.EntityConditionValue
org.apache.ofbiz.entity.condition.EntityFieldValue
- All Implemented Interfaces:
Serializable
Field value expression.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ofbiz.entity.condition.EntityConditionValue
EntityConditionValue.ConstantNumberValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSqlValue
(StringBuilder sql, Map<String, String> tableAliases, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo) boolean
freeze()
Gets field name.getModelField
(ModelEntity modelEntity) int
hashCode()
void
init
(String fieldName, String entityAlias, List<String> entityAliasStack, ModelViewEntity modelViewEntity) Init.static EntityFieldValue
makeFieldValue
(String fieldName) static EntityFieldValue
makeFieldValue
(String fieldName, String entityAlias, List<String> entityAliasStack, ModelViewEntity modelViewEntity) void
reset()
Reset.void
setModelField
(ModelField field) void
validateSql
(ModelEntity modelEntity) Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionValue
addSqlValue, constantNumber, getValue, toString, toString
-
Constructor Details
-
EntityFieldValue
public EntityFieldValue()
-
-
Method Details
-
makeFieldValue
-
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) Init.- Parameters:
fieldName
- the field nameentityAlias
- the entity aliasentityAliasStack
- the entity alias stackmodelViewEntity
- the model view entity
-
reset
public void reset()Reset. -
getFieldName
Gets field name.- Returns:
- the field name
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEntityConditionValue
-
equals
- Overrides:
equals
in classEntityConditionValue
-
getModelField
- Specified by:
getModelField
in classEntityConditionValue
-
setModelField
- 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
- Specified by:
validateSql
in classEntityConditionValue
- Throws:
GenericModelException
-
getValue
- Specified by:
getValue
in classEntityConditionValue
-
freeze
- Specified by:
freeze
in classEntityConditionValue
-