public class Restriction<T>
extends java.lang.Object
implements java.io.Serializable
Criteria. FilterField on which the Restriction applies| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BETWEEN
Represents an "between" constraint
|
static java.lang.String |
EQUALS
Represents an "equality" constraint
|
static java.lang.String |
GREATER_THAN
Represents an "greater than" constraint
|
static java.lang.String |
GREATER_THAN_EQUALS
Represents an "greater than or equals" constraint
|
static java.lang.String |
LESS_THAN
Represents an "less than" constraint
|
static java.lang.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,
java.io.Serializable lower,
java.io.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,
java.io.Serializable value)
Static method used to construct an "equality" restriction on a given field and value
|
static <C> Restriction<C> |
ge(FilterField<C> field,
java.io.Serializable value)
Static method used to construct an "greater than or equals" restriction on a given field and value
|
FilterField<T> |
getField() |
java.lang.String |
getOperation() |
java.util.List |
getValues() |
static <C> Restriction<C> |
gt(FilterField<C> field,
java.io.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,
java.io.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,
java.io.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 java.lang.String EQUALS
public static final java.lang.String BETWEEN
public static final java.lang.String LESS_THAN
public static final java.lang.String LESS_THAN_EQUALS
public static final java.lang.String GREATER_THAN
public static final java.lang.String GREATER_THAN_EQUALS
public final FilterField<T> getField()
public final java.util.List getValues()
public final java.lang.String getOperation()
public static <C> Restriction<C> eq(FilterField<C> field, java.io.Serializable value)
field - The field on which the restriction appliesvalue - The value on which the Restriction appliesRestrictionpublic static <C> Restriction<C> between(FilterField<C> field, java.io.Serializable lower, java.io.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 appliesRestrictionpublic static <C> Restriction<C> lt(FilterField<C> field, java.io.Serializable value)
field - The field on which the restriction appliesvalue - The value on which the Restriction appliesRestrictionpublic static <C> Restriction<C> le(FilterField<C> field, java.io.Serializable value)
field - The field on which the restriction appliesvalue - The value on which the Restriction appliesRestrictionpublic static <C> Restriction<C> gt(FilterField<C> field, java.io.Serializable value)
field - The field on which the restriction appliesvalue - The value on which the Restriction appliesRestrictionpublic static <C> Restriction<C> ge(FilterField<C> field, java.io.Serializable value)
field - The field on which the restriction appliesvalue - The value on which the Restriction appliesRestrictionCopyright © 2011 OW2 Consortium. All Rights Reserved.