Class EntityConditionSubSelect
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityConditionBase
-
- org.apache.ofbiz.entity.condition.EntityConditionValue
-
- org.apache.ofbiz.entity.condition.EntityConditionSubSelect
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityConditionSubSelect extends EntityConditionValue
Sub-query action.- 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
keyFieldName
protected ModelEntity
localModelEntity
static java.lang.String
module
protected java.lang.Boolean
requireAll
protected EntityCondition
whereCond
-
Fields inherited from class org.apache.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityConditionSubSelect()
EntityConditionSubSelect(java.lang.String entityName, java.lang.String keyFieldName, EntityCondition whereCond, boolean requireAll, Delegator delegator)
EntityConditionSubSelect(ModelEntity localModelEntity, java.lang.String keyFieldName, EntityCondition whereCond, boolean requireAll)
-
Method Summary
All 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 parentModelEntity, java.util.List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo)
EntityConditionValue
freeze()
java.lang.String
getKeyFieldName()
ModelEntity
getModelEntity()
ModelField
getModelField(ModelEntity modelEntity)
java.lang.Comparable<?>
getValue(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
void
setModelField(ModelField modelEntity)
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, equals, getColName, getColName, getColName, getField, hashCode, hashCode
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
localModelEntity
protected ModelEntity localModelEntity
-
keyFieldName
protected java.lang.String keyFieldName
-
whereCond
protected EntityCondition whereCond
-
requireAll
protected java.lang.Boolean requireAll
-
-
Constructor Detail
-
EntityConditionSubSelect
protected EntityConditionSubSelect()
-
EntityConditionSubSelect
public EntityConditionSubSelect(java.lang.String entityName, java.lang.String keyFieldName, EntityCondition whereCond, boolean requireAll, Delegator delegator)
-
EntityConditionSubSelect
public EntityConditionSubSelect(ModelEntity localModelEntity, java.lang.String keyFieldName, EntityCondition whereCond, boolean requireAll)
-
-
Method Detail
-
addSqlValue
public void addSqlValue(java.lang.StringBuilder sql, java.util.Map<java.lang.String,java.lang.String> tableAliases, ModelEntity parentModelEntity, java.util.List<EntityConditionParam> entityConditionParams, boolean includeTableNamePrefix, Datasource datasourceInfo)
- Specified by:
addSqlValue
in classEntityConditionValue
-
freeze
public EntityConditionValue freeze()
- Specified by:
freeze
in classEntityConditionValue
-
getKeyFieldName
public java.lang.String getKeyFieldName()
-
getModelEntity
public ModelEntity getModelEntity()
-
getModelField
public ModelField getModelField(ModelEntity modelEntity)
- Specified by:
getModelField
in classEntityConditionValue
-
setModelField
public void setModelField(ModelField modelEntity)
- Specified by:
setModelField
in classEntityConditionValue
-
getValue
public java.lang.Comparable<?> getValue(Delegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
- Specified by:
getValue
in classEntityConditionValue
-
validateSql
public void validateSql(ModelEntity modelEntity) throws GenericModelException
- Specified by:
validateSql
in classEntityConditionValue
- Throws:
GenericModelException
-
-