|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jpattern.orm.query.Expression
public class Expression
| Constructor Summary | |
|---|---|
Expression()
|
|
| Method Summary | |
|---|---|
IExpression |
allEq(Map<String,Object> propertyMap)
All Equal - Map containing property names and their values. |
IExpression |
and(IExpressionElement expressionOne,
IExpressionElement expressionTwo)
And - join two expressions with a logical and. |
void |
appendValues(List<Object> values)
Append to the list all the values of the expression's elements |
IExpression |
eq(String property,
Object value)
Express the "Equals to" relation between an object's property and a fixed value. |
IExpression |
eqProperties(String firstProperty,
String secondProperty)
Express the "Equals to" relation between objects properties |
IExpression |
ge(String property,
Object value)
Express the "Greater or equals to" relation between an object's property and a fixed value. |
IExpression |
geProperties(String firstProperty,
String secondProperty)
Express the "Greater or equals to" relation between objects properties |
IExpression |
gt(String property,
Object value)
Express the "Greater than" relation between an object's property and a fixed value. |
IExpression |
gtProperties(String firstProperty,
String secondProperty)
Express the "Greater than" relation between objects properties |
IExpression |
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). |
IExpression |
ieqProperties(String firstProperty,
String secondProperty)
Express the "Insensitive Equal To" bbetween objects properties (it uses a lower() function to make both case insensitive). |
IExpression |
ilike(String property,
String value)
Case insensitive Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
IExpression |
in(String property,
Collection<?> values)
In - property has a value in the collection of values. |
IExpression |
in(String property,
IQuery subQuery)
In - using a subQuery. |
IExpression |
in(String property,
Object[] values)
In - property has a value in the array of values. |
IExpression |
isNotNull(String property)
Is Not Null - property is not null. |
IExpression |
isNull(String property)
Is Null - property is null. |
IExpression |
le(String property,
Object value)
Express the "Lesser or equals to" relation between an object's property and a fixed value. |
IExpression |
leProperties(String firstProperty,
String secondProperty)
Express the "Lesser or equals to" relation between objects properties |
IExpression |
like(String property,
String value)
Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
IExpression |
lt(String property,
Object value)
Express the "Lesser than" relation between an object's property and a fixed value. |
IExpression |
ltProperties(String firstProperty,
String secondProperty)
Express the "Lesser than" relation between objects properties |
IExpression |
ne(String property,
Object value)
Express the "Not Equals to" relation between objects properties. |
IExpression |
neProperties(String firstProperty,
String secondProperty)
Express the "Not Equals to" relation between an object's property and a fixed value. |
IExpression |
nin(String property,
Collection<?> values)
Not In - property has a value in the collection of values. |
IExpression |
nin(String property,
IQuery subQuery)
Not In - using a subQuery. |
IExpression |
nin(String property,
Object[] values)
Not In - property has a value in the array of values. |
IExpression |
nlike(String property,
String value)
Not Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
IExpression |
not(IExpressionElement expression)
Negate the expression (prefix it with NOT). |
IExpression |
or(IExpressionElement expressionOne,
IExpressionElement expressionTwo)
Or - join two expressions with a logical or. |
String |
renderSql()
Return the sql query generated by this IQuery Object |
void |
renderSql(StringBuilder StringBuilder)
Append to the string buffer the sql query generated by this IQuery Object |
void |
setNameSolver(INameSolver nameSolver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Expression()
| Method Detail |
|---|
public IExpression allEq(Map<String,Object> propertyMap)
IExpression
allEq in interface IExpression
public IExpression eq(String property,
Object value)
IExpression
eq in interface IExpression
public IExpression eqProperties(String firstProperty,
String secondProperty)
IExpression
eqProperties in interface IExpression
public IExpression le(String property,
Object value)
IExpression
le in interface IExpression
public IExpression leProperties(String firstProperty,
String secondProperty)
IExpression
leProperties in interface IExpression
public IExpression ge(String property,
Object value)
IExpression
ge in interface IExpression
public IExpression geProperties(String firstProperty,
String secondProperty)
IExpression
geProperties in interface IExpression
public IExpression lt(String property,
Object value)
IExpression
lt in interface IExpression
public IExpression ltProperties(String firstProperty,
String secondProperty)
IExpression
ltProperties in interface IExpression
public IExpression gt(String property,
Object value)
IExpression
gt in interface IExpression
public IExpression gtProperties(String firstProperty,
String secondProperty)
IExpression
gtProperties in interface IExpression
public IExpression ieq(String property,
String value)
IExpression
ieq in interface IExpression
public IExpression ieqProperties(String firstProperty,
String secondProperty)
IExpression
ieqProperties in interface IExpression
public IExpression ilike(String property,
String value)
IExpression
ilike in interface IExpression
public IExpression in(String property,
Collection<?> values)
IExpression
in in interface IExpression
public IExpression in(String property,
Object[] values)
IExpression
in in interface IExpression
public IExpression in(String property,
IQuery subQuery)
IExpression
in in interface IExpression
public IExpression nin(String property,
Collection<?> values)
IExpression
nin in interface IExpression
public IExpression nin(String property,
Object[] values)
IExpression
nin in interface IExpression
public IExpression nin(String property,
IQuery subQuery)
IExpression
nin in interface IExpressionpublic IExpression isNotNull(String property)
IExpression
isNotNull in interface IExpressionpublic IExpression isNull(String property)
IExpression
isNull in interface IExpression
public IExpression like(String property,
String value)
IExpression
like in interface IExpression
public IExpression nlike(String property,
String value)
IExpression
nlike in interface IExpression
public IExpression ne(String property,
Object value)
IExpression
ne in interface IExpression
public IExpression neProperties(String firstProperty,
String secondProperty)
IExpression
neProperties in interface IExpressionpublic IExpression not(IExpressionElement expression)
IExpression
not in interface IExpression
public IExpression or(IExpressionElement expressionOne,
IExpressionElement expressionTwo)
IExpression
or in interface IExpression
public IExpression and(IExpressionElement expressionOne,
IExpressionElement expressionTwo)
IExpression
and in interface IExpressionpublic void setNameSolver(INameSolver nameSolver)
setNameSolver in interface INameSolverConsumerpublic String renderSql()
IRenderableSqlObject
renderSql in interface IRenderableSqlObjectpublic void renderSql(StringBuilder StringBuilder)
IRenderableSqlObject
renderSql in interface IRenderableSqlObjectpublic void appendValues(List<Object> values)
IExpressionElement
appendValues in interface IExpressionElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||