Class EntityConditionValue
java.lang.Object
org.apache.ofbiz.entity.condition.EntityConditionValue
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntityConditionSubSelect
,EntityConditionValue.ConstantNumberValue
,EntityFieldValue
,EntityFunction
Base class for condition expression values.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addSqlValue
(StringBuilder sql, Map<String, String> tableAliases, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceinfo) void
addSqlValue
(StringBuilder sql, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceinfo) Add sql value.static EntityConditionValue
constantNumber
(Number value) boolean
abstract EntityConditionValue
freeze()
abstract ModelField
getModelField
(ModelEntity modelEntity) abstract Object
getValue
(GenericEntity entity) Gets value.int
hashCode()
abstract void
setModelField
(ModelField modelEntity) toString()
void
To string.abstract void
validateSql
(ModelEntity modelEntity)
-
Constructor Details
-
EntityConditionValue
public EntityConditionValue()
-
-
Method Details
-
constantNumber
-
getModelField
-
setModelField
-
addSqlValue
public void addSqlValue(StringBuilder sql, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceinfo) Add sql value.- Parameters:
sql
- the sqlmodelEntity
- the model entityentityConditionParams
- the entity condition paramsincludeTableNamePrefix
- the include table name prefixdatasourceinfo
- the datasourceinfo
-
addSqlValue
public abstract void addSqlValue(StringBuilder sql, Map<String, String> tableAliases, ModelEntity modelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceinfo) -
validateSql
- Throws:
GenericModelException
-
getValue
Gets value.- Parameters:
entity
- the entity- Returns:
- the value
-
getValue
-
freeze
-
toString
To string.- Parameters:
sb
- the sb
-
toString
-
equals
-
hashCode
public int hashCode()
-