|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jpattern.orm.query.clause.where.Expression
public class Expression
A factory helper to build ExpressionElements
| Method Summary | |
|---|---|
static AndExpressionElement |
and(ExpressionElement... expressionElements)
And - join more expressions with a logical and. |
static AndExpressionElement |
and(List<ExpressionElement> expressionElements)
And - join more expressions with a logical and. |
static EqExpressionElement |
eq(String property,
Object value)
Express the "Equals to" relation between an object's property and a fixed value. |
static EqPropertiesExpressionElement |
eqProperties(String firstProperty,
String secondProperty)
Express the "Equals to" relation between objects properties |
static GeExpressionElement |
ge(String property,
Object value)
Express the "Greater or equals to" relation between an object's property and a fixed value. |
static GePropertiesExpressionElement |
geProperties(String firstProperty,
String secondProperty)
Express the "Greater or equals to" relation between objects properties |
static GtExpressionElement |
gt(String property,
Object value)
Express the "Greater than" relation between an object's property and a fixed value. |
static GtPropertiesExpressionElement |
gtProperties(String firstProperty,
String secondProperty)
Express the "Greater than" relation between objects properties |
static IEqExpressionElement |
ieq(String property,
Object 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). |
static IEqPropertiesExpressionElement |
ieqProperties(String firstProperty,
String secondProperty)
Express the "Insensitive Equal To" bbetween objects properties (it uses a lower() function to make both case insensitive). |
static ILikeExpressionElement |
ilike(String property,
Object value)
Case insensitive Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
static InSubQueryExpressionElement |
in(String property,
BaseFindQuery subQuery)
In - using a subQuery. |
static InExpressionElement |
in(String property,
Collection<?> values)
In - property has a value in the collection of values. |
static InExpressionElement |
in(String property,
Object[] values)
In - property has a value in the array of values. |
static IsNotNullExpressionElement |
isNotNull(String property)
Is Not Null - property is not null. |
static IsNullExpressionElement |
isNull(String property)
Is Null - property is null. |
static LeExpressionElement |
le(String property,
Object value)
Express the "Lesser or equals to" relation between an object's property and a fixed value. |
static LePropertiesExpressionElement |
leProperties(String firstProperty,
String secondProperty)
Express the "Lesser or equals to" relation between objects properties |
static LikeExpressionElement |
like(String property,
Object value)
Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
static LtExpressionElement |
lt(String property,
Object value)
Express the "Lesser than" relation between an object's property and a fixed value. |
static LtPropertiesExpressionElement |
ltProperties(String firstProperty,
String secondProperty)
Express the "Lesser than" relation between objects properties |
static NeExpressionElement |
ne(String property,
Object value)
Express the "Not Equals to" relation between objects properties. |
static NePropertiesExpressionElement |
neProperties(String firstProperty,
String secondProperty)
Express the "Not Equals to" relation between an object's property and a fixed value. |
static NInSubQueryExpressionElement |
nin(String property,
BaseFindQuery subQuery)
Not In - using a subQuery. |
static NInExpressionElement |
nin(String property,
Collection<?> values)
Not In - property has a value in the collection of values. |
static NInExpressionElement |
nin(String property,
Object[] values)
Not In - property has a value in the array of values. |
static NLikeExpressionElement |
nlike(String property,
Object value)
Not Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore). |
static NotExpressionElement |
not(ExpressionElement expression)
Negate the expression (prefix it with NOT). |
static OrExpressionElement |
or(ExpressionElement... expressionElements)
Or - join more expressions with a logical or. |
static OrExpressionElement |
or(List<ExpressionElement> expressionElements)
Or - join more expressions with a logical or. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EqExpressionElement eq(String property,
Object value)
property - value -
public static EqPropertiesExpressionElement eqProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static LeExpressionElement le(String property,
Object value)
property - value -
public static LePropertiesExpressionElement leProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static GeExpressionElement ge(String property,
Object value)
property - value -
public static GePropertiesExpressionElement geProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static LtExpressionElement lt(String property,
Object value)
property - value -
public static LtPropertiesExpressionElement ltProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static GtExpressionElement gt(String property,
Object value)
property - value -
public static GtPropertiesExpressionElement gtProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static IEqExpressionElement ieq(String property,
Object value)
propertyName - value -
public static IEqPropertiesExpressionElement ieqProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static NeExpressionElement ne(String property,
Object value)
property - value -
public static NePropertiesExpressionElement neProperties(String firstProperty,
String secondProperty)
firstProperty - secondProperty -
public static ILikeExpressionElement ilike(String property,
Object value)
propertyName - value -
public static NInExpressionElement nin(String property,
Collection<?> values)
propertyName - values -
public static NInExpressionElement nin(String property,
Object[] values)
propertyName - values -
public static NInSubQueryExpressionElement nin(String property,
BaseFindQuery subQuery)
propertyName - subQuery -
public static InExpressionElement in(String property,
Collection<?> values)
propertyName - values -
public static InExpressionElement in(String property,
Object[] values)
propertyName - values -
public static InSubQueryExpressionElement in(String property,
BaseFindQuery subQuery)
propertyName - subQuery -
public static IsNotNullExpressionElement isNotNull(String property)
propertyName -
public static IsNullExpressionElement isNull(String property)
propertyName -
public static LikeExpressionElement like(String property,
Object value)
propertyName - value -
public static NLikeExpressionElement nlike(String property,
Object value)
propertyName - value - public static NotExpressionElement not(ExpressionElement expression)
exp -
public static OrExpressionElement or(ExpressionElement... expressionElements)
expressionElements -
public static OrExpressionElement or(List<ExpressionElement> expressionElements)
expressionElements -
public static AndExpressionElement and(List<ExpressionElement> expressionElements)
expressionElements -
public static AndExpressionElement and(ExpressionElement... expressionElements)
expressionElements -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||