Class EntityConditionSubSelect
java.lang.Object
org.apache.ofbiz.entity.condition.EntityConditionValue
org.apache.ofbiz.entity.condition.EntityConditionSubSelect
- All Implemented Interfaces:
Serializable
Sub-query action.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ofbiz.entity.condition.EntityConditionValue
EntityConditionValue.ConstantNumberValue
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityConditionSubSelect
(String entityName, String keyFieldName, EntityCondition whereCond, boolean requireAll, Delegator delegator) EntityConditionSubSelect
(ModelEntity localModelEntity, String keyFieldName, EntityCondition whereCond, boolean requireAll) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSqlValue
(StringBuilder sql, Map<String, String> tableAliases, ModelEntity parentModelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo) freeze()
Gets key field name.Gets model entity.getModelField
(ModelEntity modelEntity) Comparable<?>
void
setModelField
(ModelField modelEntity) void
validateSql
(ModelEntity modelEntity) Methods inherited from class org.apache.ofbiz.entity.condition.EntityConditionValue
addSqlValue, constantNumber, equals, getValue, hashCode, toString, toString
-
Constructor Details
-
EntityConditionSubSelect
protected EntityConditionSubSelect() -
EntityConditionSubSelect
public EntityConditionSubSelect(String entityName, String keyFieldName, EntityCondition whereCond, boolean requireAll, Delegator delegator) -
EntityConditionSubSelect
public EntityConditionSubSelect(ModelEntity localModelEntity, String keyFieldName, EntityCondition whereCond, boolean requireAll)
-
-
Method Details
-
addSqlValue
public void addSqlValue(StringBuilder sql, Map<String, String> tableAliases, ModelEntity parentModelEntity, List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo) - Specified by:
addSqlValue
in classEntityConditionValue
-
freeze
- Specified by:
freeze
in classEntityConditionValue
-
getKeyFieldName
Gets key field name.- Returns:
- the key field name
-
getModelEntity
Gets model entity.- Returns:
- the model entity
-
getModelField
- Specified by:
getModelField
in classEntityConditionValue
-
setModelField
- Specified by:
setModelField
in classEntityConditionValue
-
getValue
- Specified by:
getValue
in classEntityConditionValue
-
validateSql
- Specified by:
validateSql
in classEntityConditionValue
- Throws:
GenericModelException
-