public abstract class EntityCondition extends Object implements Serializable
| Constructor and Description |
|---|
EntityCondition() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkCondition(ModelEntity modelEntity)
Checks this condition against the given entity.
|
int |
getParameterCount(ModelEntity modelEntity)
Returns the number of SQL parameters that would be generated for this condition.
|
abstract String |
makeWhereString(ModelEntity modelEntity,
List<? super EntityConditionParam> entityConditionParams)
Creates a string for use in a WHERE clause, based on this condition.
|
public abstract String makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams)
modelEntity - the entity being queried for (required)entityConditionParams - a non-null list to which this method will add any required bind valuespublic abstract void checkCondition(ModelEntity modelEntity) throws GenericModelException
modelEntity - the entity being queried for (required)GenericModelException - if the condition is not metpublic int getParameterCount(ModelEntity modelEntity)
modelEntity - the entity being queried for (required)Copyright © 2018 Atlassian. All rights reserved.