public class EntityExpr extends EntityCondition
| Modifier | Constructor and Description |
|---|---|
protected |
EntityExpr() |
|
EntityExpr(EntityCondition lhs,
EntityOperator operator,
EntityCondition rhs) |
|
EntityExpr(String lhs,
boolean leftUpper,
EntityOperator operator,
Object rhs,
boolean rightUpper) |
|
EntityExpr(String lhs,
EntityOperator operator,
Object rhs) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCondition(ModelEntity modelEntity)
Checks this condition against the given entity.
|
Object |
getLhs() |
EntityOperator |
getOperator() |
int |
getParameterCount(ModelEntity modelEntity)
Returns the number of SQL parameters that would be generated for this condition.
|
Object |
getRhs() |
boolean |
isLUpper() |
boolean |
isRUpper() |
String |
makeWhereString(ModelEntity modelEntity,
List<? super EntityConditionParam> entityConditionParams)
Creates a string for use in a WHERE clause, based on this condition.
|
void |
setLUpper(boolean upper) |
void |
setRUpper(boolean upper) |
String |
toString() |
protected EntityExpr()
public EntityExpr(String lhs, EntityOperator operator, Object rhs)
public EntityExpr(String lhs, boolean leftUpper, EntityOperator operator, Object rhs, boolean rightUpper)
public EntityExpr(EntityCondition lhs, EntityOperator operator, EntityCondition rhs)
public void setLUpper(boolean upper)
public boolean isLUpper()
public boolean isRUpper()
public void setRUpper(boolean upper)
public Object getLhs()
public EntityOperator getOperator()
public Object getRhs()
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 © 2016 Atlassian. All rights reserved.