public class EntityConditionList extends EntityCondition
| Modifier and Type | Field and Description |
|---|---|
protected List<? extends EntityCondition> |
conditionList |
protected EntityOperator |
operator |
| Modifier | Constructor and Description |
|---|---|
protected |
EntityConditionList() |
|
EntityConditionList(List<? extends EntityCondition> conditionList,
EntityOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCondition(ModelEntity modelEntity)
Checks this condition against the given entity.
|
EntityCondition |
getCondition(int index) |
Iterator<? extends EntityCondition> |
getConditionIterator() |
int |
getConditionListSize() |
EntityOperator |
getOperator() |
int |
getParameterCount(ModelEntity modelEntity)
Returns the number of SQL parameters that would be generated for this condition.
|
String |
makeWhereString(ModelEntity modelEntity,
List<? super EntityConditionParam> entityConditionParams)
Creates a string for use in a WHERE clause, based on this condition.
|
String |
toString() |
protected List<? extends EntityCondition> conditionList
protected EntityOperator operator
protected EntityConditionList()
public EntityConditionList(List<? extends EntityCondition> conditionList, EntityOperator operator)
public EntityOperator getOperator()
public EntityCondition getCondition(int index)
public int getConditionListSize()
public Iterator<? extends EntityCondition> getConditionIterator()
public String makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams)
EntityConditionmakeWhereString in class EntityConditionmodelEntity - the entity being queried for (required)entityConditionParams - a non-null list to which this method will add any required bind valuespublic void checkCondition(ModelEntity modelEntity) throws GenericModelException
EntityConditioncheckCondition in class EntityConditionmodelEntity - the entity being queried for (required)GenericModelException - if the condition is not metpublic int getParameterCount(ModelEntity modelEntity)
EntityConditiongetParameterCount in class EntityConditionmodelEntity - the entity being queried for (required)Copyright © 2015 Atlassian. All rights reserved.