|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.datastore.query.Restrictions
public class Restrictions
Factory for creating Query.Criterion
instances
Constructor Summary | |
---|---|
Restrictions()
|
Method Summary | |
---|---|
static Query.Criterion |
and(Query.Criterion a,
Query.Criterion b)
|
static Query.Between |
between(String property,
Object start,
Object end)
Restricts the results by the given property value range |
static Query.Equals |
eq(String property,
Object value)
Restricts the property to be equal to the given value |
static Query.GreaterThan |
gt(String property,
Object value)
Used to restrict a value to be greater than the given value |
static Query.GreaterThanEquals |
gte(String property,
Object value)
Used to restrict a value to be greater than or equal to the given value |
static Query.In |
in(String property,
Collection values)
Restricts the property to be in the list of given values |
static Query.Like |
like(String property,
String expression)
Restricts the property match the given String expressions. |
static Query.LessThan |
lt(String property,
Object value)
Used to restrict a value to be less than the given value |
static Query.LessThanEquals |
lte(String property,
Object value)
Used to restrict a value to be less than or equal to the given value |
static Query.Criterion |
or(Query.Criterion a,
Query.Criterion b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Restrictions()
Method Detail |
---|
public static Query.Equals eq(String property, Object value)
property
- The propertyvalue
- The value
public static Query.In in(String property, Collection values)
property
- The propertyvalues
- The values
public static Query.Like like(String property, String expression)
property
- The property nameexpression
- The expression
public static Query.Criterion and(Query.Criterion a, Query.Criterion b)
public static Query.Criterion or(Query.Criterion a, Query.Criterion b)
public static Query.Between between(String property, Object start, Object end)
property
- The name of the propertystart
- The start of the rangeend
- The end of the range
public static Query.GreaterThan gt(String property, Object value)
property
- The propertyvalue
- The value
public static Query.LessThan lt(String property, Object value)
property
- The propertyvalue
- The value
public static Query.GreaterThanEquals gte(String property, Object value)
property
- The propertyvalue
- The value
public static Query.LessThanEquals lte(String property, Object value)
property
- The propertyvalue
- The value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |