|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jpattern.orm.query.SmartRenderableSqlSubElement
com.jpattern.orm.query.clause.OrmWhere<T>
public abstract class OrmWhere<T extends Where<?>>
| Constructor Summary | |
|---|---|
OrmWhere()
|
|
| Method Summary | |
|---|---|
T |
allEq(Map<String,Object> propertyMap)
All Equal - Map containing property names and their values. |
T |
and(ExpressionElement... expressionElements)
And - join more expressions with a logical and. |
T |
and(List<ExpressionElement> expressionElements)
And - join more expressions with a logical and. |
void |
appendElementValues(List<Object> values)
Append to the list all the values of the expression's elements |
void |
doElementRender(StringBuilder StringBuilder)
|
T |
eq(String property,
Object value)
Express the "Equals to" relation between an object's property and a fixed value. |
T |
eqProperties(String firstProperty,
String secondProperty)
Express the "Equals to" relation between objects properties |
T |
ge(String property,
Object value)
Express the "Greater or equals to" relation between an object's property and a fixed value. |
T |
geProperties(String firstProperty,
String secondProperty)
Express the "Greater or equals to" relation between objects properties |
int |
getElementStatusVersion()
|
T |
gt(String property,
Object value)
Express the "Greater than" relation between an object's property and a fixed value. |
T |
gtProperties(String firstProperty,
String secondProperty)
Express the "Greater than" relation between objects properties |
T |
ieq(String property,
String value)
Express the "Insensitive Equal To" between an object's property and a fixed value (it uses a lower() function to make both case insensitive). |
T |
ieqProperties(String firstProperty,
String secondProperty)
Express the "Insensitive Equal To" bbetween objects properties (it uses a lower() function to make both case insensitive). |
T |
ilike(String property,
String value)
Case insensitive Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
T |
in(String property,
BaseFindQuery subQuery)
In - using a subQuery. |
T |
in(String property,
Collection<?> values)
In - property has a value in the collection of values. |
T |
in(String property,
Object[] values)
In - property has a value in the array of values. |
T |
isNotNull(String property)
Is Not Null - property is not null. |
T |
isNull(String property)
Is Null - property is null. |
T |
le(String property,
Object value)
Express the "Lesser or equals to" relation between an object's property and a fixed value. |
T |
leProperties(String firstProperty,
String secondProperty)
Express the "Lesser or equals to" relation between objects properties |
T |
like(String property,
String value)
Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
T |
lt(String property,
Object value)
Express the "Lesser than" relation between an object's property and a fixed value. |
T |
ltProperties(String firstProperty,
String secondProperty)
Express the "Lesser than" relation between objects properties |
T |
ne(String property,
Object value)
Express the "Not Equals to" relation between objects properties. |
T |
neProperties(String firstProperty,
String secondProperty)
Express the "Not Equals to" relation between an object's property and a fixed value. |
T |
nin(String property,
BaseFindQuery subQuery)
Not In - using a subQuery. |
T |
nin(String property,
Collection<?> values)
Not In - property has a value in the collection of values. |
T |
nin(String property,
Object[] values)
Not In - property has a value in the array of values. |
T |
nlike(String property,
String value)
Not Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
T |
not(ExpressionElement expression)
Negate the expression (prefix it with NOT). |
T |
or(ExpressionElement... expressionElements)
Or - join more expressions with a logical or. |
T |
or(List<ExpressionElement> expressionElements)
Or - join more expressions with a logical or. |
void |
setNameSolver(NameSolver nameSolver)
|
protected abstract T |
where()
|
| Methods inherited from class com.jpattern.orm.query.SmartRenderableSqlSubElement |
|---|
isElementStatusChanged, renderSqlElement, renderSqlElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrmWhere()
| Method Detail |
|---|
protected abstract T where()
public T allEq(Map<String,Object> propertyMap)
Where
allEq in interface Where<T extends Where<?>>
public T eq(String property,
Object value)
Where
eq in interface Where<T extends Where<?>>
public T eqProperties(String firstProperty,
String secondProperty)
Where
eqProperties in interface Where<T extends Where<?>>
public T le(String property,
Object value)
Where
le in interface Where<T extends Where<?>>
public T leProperties(String firstProperty,
String secondProperty)
Where
leProperties in interface Where<T extends Where<?>>
public T ge(String property,
Object value)
Where
ge in interface Where<T extends Where<?>>
public T geProperties(String firstProperty,
String secondProperty)
Where
geProperties in interface Where<T extends Where<?>>
public T lt(String property,
Object value)
Where
lt in interface Where<T extends Where<?>>
public T ltProperties(String firstProperty,
String secondProperty)
Where
ltProperties in interface Where<T extends Where<?>>
public T gt(String property,
Object value)
Where
gt in interface Where<T extends Where<?>>
public T gtProperties(String firstProperty,
String secondProperty)
Where
gtProperties in interface Where<T extends Where<?>>
public T ieq(String property,
String value)
Where
ieq in interface Where<T extends Where<?>>
public T ieqProperties(String firstProperty,
String secondProperty)
Where
ieqProperties in interface Where<T extends Where<?>>
public T ilike(String property,
String value)
Where
ilike in interface Where<T extends Where<?>>
public T in(String property,
Collection<?> values)
Where
in in interface Where<T extends Where<?>>
public T in(String property,
Object[] values)
Where
in in interface Where<T extends Where<?>>
public T in(String property,
BaseFindQuery subQuery)
Where
in in interface Where<T extends Where<?>>
public T nin(String property,
Collection<?> values)
Where
nin in interface Where<T extends Where<?>>
public T nin(String property,
Object[] values)
Where
nin in interface Where<T extends Where<?>>
public T nin(String property,
BaseFindQuery subQuery)
Where
nin in interface Where<T extends Where<?>>public T isNotNull(String property)
Where
isNotNull in interface Where<T extends Where<?>>public T isNull(String property)
Where
isNull in interface Where<T extends Where<?>>
public T like(String property,
String value)
Where
like in interface Where<T extends Where<?>>
public T nlike(String property,
String value)
Where
nlike in interface Where<T extends Where<?>>
public T ne(String property,
Object value)
Where
ne in interface Where<T extends Where<?>>
public T neProperties(String firstProperty,
String secondProperty)
Where
neProperties in interface Where<T extends Where<?>>public T not(ExpressionElement expression)
Where
not in interface Where<T extends Where<?>>public T or(ExpressionElement... expressionElements)
Where
or in interface Where<T extends Where<?>>public T or(List<ExpressionElement> expressionElements)
Where
or in interface Where<T extends Where<?>>public T and(ExpressionElement... expressionElements)
Where
and in interface Where<T extends Where<?>>public T and(List<ExpressionElement> expressionElements)
Where
and in interface Where<T extends Where<?>>public void setNameSolver(NameSolver nameSolver)
setNameSolver in interface NameSolverConsumerpublic final void doElementRender(StringBuilder StringBuilder)
doElementRender in class SmartRenderableSqlSubElementpublic final void appendElementValues(List<Object> values)
RenderableSqlSubElement
appendElementValues in interface RenderableSqlSubElementpublic final int getElementStatusVersion()
getElementStatusVersion in class SmartRenderableSqlSubElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||