org.ofbiz.entity.condition
Class EntityConditionSubSelect

java.lang.Object
  extended by org.ofbiz.entity.condition.EntityConditionBase
      extended by org.ofbiz.entity.condition.EntityConditionValue
          extended by org.ofbiz.entity.condition.EntityConditionSubSelect
All Implemented Interfaces:
java.io.Serializable

public class EntityConditionSubSelect
extends EntityConditionValue

See Also:
Serialized Form

Field Summary
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.ofbiz.entity.condition.EntityConditionBase
_emptyMap, emptyAliases, emptyList
 
Constructor Summary
protected EntityConditionSubSelect()
           
  EntityConditionSubSelect(ModelEntity localModelEntity, java.lang.String keyFieldName, EntityCondition whereCond, boolean requireAll)
           
  EntityConditionSubSelect(java.lang.String entityName, java.lang.String keyFieldName, EntityCondition whereCond, boolean requireAll, GenericDelegator delegator)
           
 
Method Summary
 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, DatasourceInfo datasourceInfo)
           
 EntityConditionValue freeze()
           
 ModelField getModelField(ModelEntity modelEntity)
           
 java.lang.Comparable getValue(GenericDelegator delegator, java.util.Map<java.lang.String,? extends java.lang.Object> map)
           
 void validateSql(ModelEntity modelEntity)
           
 void visit(EntityConditionVisitor visitor)
           
 
Methods inherited from class org.ofbiz.entity.condition.EntityConditionValue
accept, addSqlValue, getValue, toString, toString
 
Methods inherited from class org.ofbiz.entity.condition.EntityConditionBase
addValue, castBoolean, equals, equals, getColName, getColName, getColName, getField, hashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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,
                                GenericDelegator 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,
                        DatasourceInfo datasourceInfo)
Specified by:
addSqlValue in class EntityConditionValue

freeze

public EntityConditionValue freeze()
Specified by:
freeze in class EntityConditionValue

getModelField

public ModelField getModelField(ModelEntity modelEntity)
Specified by:
getModelField in class EntityConditionValue

getValue

public java.lang.Comparable getValue(GenericDelegator delegator,
                                     java.util.Map<java.lang.String,? extends java.lang.Object> map)
Specified by:
getValue in class EntityConditionValue

validateSql

public void validateSql(ModelEntity modelEntity)
                 throws GenericModelException
Specified by:
validateSql in class EntityConditionValue
Throws:
GenericModelException

visit

public void visit(EntityConditionVisitor visitor)
Specified by:
visit in class EntityConditionValue