public class Restriction<T> extends Object implements Serializable
Criteria
. FilterField
on which the Restriction appliesModifier and Type | Field and Description |
---|---|
static String |
BETWEEN
Represents an "between" constraint
|
static String |
EQUALS
Represents an "equality" constraint
|
static String |
GREATER_THAN
Represents an "greater than" constraint
|
static String |
GREATER_THAN_EQUALS
Represents an "greater than or equals" constraint
|
static String |
LESS_THAN
Represents an "less than" constraint
|
static String |
LESS_THAN_EQUALS
Represents an "less than or equals" constraint
|
static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
static <C> Restriction<C> |
between(FilterField<C> field,
Serializable lower,
Serializable upper)
Static method used to construct an "between" restriction on a given field and lower/upper values
|
static <C> Restriction<C> |
eq(FilterField<C> field,
Serializable value)
Static method used to construct an "equality" restriction on a given field and value
|
static <C> Restriction<C> |
ge(FilterField<C> field,
Serializable value)
Static method used to construct an "greater than or equals" restriction on a given field and value
|
FilterField<T> |
getField() |
String |
getOperation() |
List |
getValues() |
static <C> Restriction<C> |
gt(FilterField<C> field,
Serializable value)
Static method used to construct an "greater than" restriction on a given field and value
|
static <C> Restriction<C> |
le(FilterField<C> field,
Serializable value)
Static method used to construct an "less than or equals" restriction on a given field and value
|
static <C> Restriction<C> |
lt(FilterField<C> field,
Serializable value)
Static method used to construct an "less than" restriction on a given field and value
|
public static final long serialVersionUID
public static final String EQUALS
public static final String BETWEEN
public static final String LESS_THAN
public static final String LESS_THAN_EQUALS
public static final String GREATER_THAN
public static final String GREATER_THAN_EQUALS
public final FilterField<T> getField()
public final List getValues()
public final String getOperation()
public static <C> Restriction<C> eq(FilterField<C> field, Serializable value)
field
- The field on which the restriction appliesvalue
- The value on which the Restriction appliesRestriction
public static <C> Restriction<C> between(FilterField<C> field, Serializable lower, Serializable upper)
field
- The field on which the restriction applieslower
- The lower value on which the Restriction appliesupper
- The upper value on which the Restriction appliesRestriction
public static <C> Restriction<C> lt(FilterField<C> field, Serializable value)
field
- The field on which the restriction appliesvalue
- The value on which the Restriction appliesRestriction
public static <C> Restriction<C> le(FilterField<C> field, Serializable value)
field
- The field on which the restriction appliesvalue
- The value on which the Restriction appliesRestriction
public static <C> Restriction<C> gt(FilterField<C> field, Serializable value)
field
- The field on which the restriction appliesvalue
- The value on which the Restriction appliesRestriction
public static <C> Restriction<C> ge(FilterField<C> field, Serializable value)
field
- The field on which the restriction appliesvalue
- The value on which the Restriction appliesRestriction
Copyright © 2011 OW2 Consortium. All Rights Reserved.