allEq
public static Criterion allEq(Map propertyNameValues)
Apply an "equals" constraint to each property in the
key set of a Map
propertyNameValues
- a map from property names to values
between
public static Criterion between(String propertyName,
Object lo,
Object hi)
Apply a "between" constraint to the named property
propertyName
- lo
- valuehi
- value
conjunction
public static Conjunction conjunction()
Group expressions together in a single conjunction (A and B and C...)
disjunction
public static Disjunction disjunction()
Group expressions together in a single disjunction (A or B or C...)
eq
public static SimpleExpression eq(String propertyName,
Object value)
Apply an "equal" constraint to the named property
eqProperty
public static PropertyExpression eqProperty(String propertyName,
String otherPropertyName)
Apply an "equal" constraint to two properties
ge
public static SimpleExpression ge(String propertyName,
Object value)
Apply a "greater than or equal" constraint to the named property
geProperty
public static PropertyExpression geProperty(String propertyName,
String otherPropertyName)
Apply a "greater than or equal" constraint to two properties
gt
public static SimpleExpression gt(String propertyName,
Object value)
Apply a "greater than" constraint to the named property
gtProperty
public static PropertyExpression gtProperty(String propertyName,
String otherPropertyName)
Apply a "greater than" constraint to two properties
idEq
public static Criterion idEq(Object value)
Apply an "equal" constraint to the identifier property
ilike
public static Criterion ilike(String propertyName,
Object value)
A case-insensitive "like", similar to Postgres ilike
operator
ilike
public static Criterion ilike(String propertyName,
String value,
MatchMode matchMode)
A case-insensitive "like", similar to Postgres ilike
operator
in
public static Criterion in(String propertyName,
Collection values)
Apply an "in" constraint to the named property
in
public static Criterion in(String propertyName,
Object[] values)
Apply an "in" constraint to the named property
isEmpty
public static Criterion isEmpty(String propertyName)
Constrain a collection valued property to be empty
isNotEmpty
public static Criterion isNotEmpty(String propertyName)
Constrain a collection valued property to be non-empty
isNotNull
public static Criterion isNotNull(String propertyName)
Apply an "is not null" constraint to the named property
isNull
public static Criterion isNull(String propertyName)
Apply an "is null" constraint to the named property
le
public static SimpleExpression le(String propertyName,
Object value)
Apply a "less than or equal" constraint to the named property
leProperty
public static PropertyExpression leProperty(String propertyName,
String otherPropertyName)
Apply a "less than or equal" constraint to two properties
like
public static SimpleExpression like(String propertyName,
Object value)
Apply a "like" constraint to the named property
like
public static SimpleExpression like(String propertyName,
String value,
MatchMode matchMode)
Apply a "like" constraint to the named property
lt
public static SimpleExpression lt(String propertyName,
Object value)
Apply a "less than" constraint to the named property
ltProperty
public static PropertyExpression ltProperty(String propertyName,
String otherPropertyName)
Apply a "less than" constraint to two properties
ne
public static SimpleExpression ne(String propertyName,
Object value)
Apply a "not equal" constraint to the named property
neProperty
public static PropertyExpression neProperty(String propertyName,
String otherPropertyName)
Apply a "not equal" constraint to two properties
sizeEq
public static Criterion sizeEq(String propertyName,
int size)
Constrain a collection valued property by size
sizeGe
public static Criterion sizeGe(String propertyName,
int size)
Constrain a collection valued property by size
sizeGt
public static Criterion sizeGt(String propertyName,
int size)
Constrain a collection valued property by size
sizeLe
public static Criterion sizeLe(String propertyName,
int size)
Constrain a collection valued property by size
sizeLt
public static Criterion sizeLt(String propertyName,
int size)
Constrain a collection valued property by size
sizeNe
public static Criterion sizeNe(String propertyName,
int size)
Constrain a collection valued property by size
sqlRestriction
public static Criterion sqlRestriction(String sql)
Apply a constraint expressed in SQL. Any occurrences of {alias}
will be replaced by the table alias.
sqlRestriction
public static Criterion sqlRestriction(String sql,
Object value,
Type type)
Apply a constraint expressed in SQL, with the given JDBC
parameter. Any occurrences of {alias} will be replaced
by the table alias.
sqlRestriction
public static Criterion sqlRestriction(String sql,
Object[] values,
Type[] types)
Apply a constraint expressed in SQL, with the given JDBC
parameters. Any occurrences of {alias} will be
replaced by the table alias.