|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.orchestra.facade.criteria.Restriction<T>
public class Restriction<T>
A Restriction represents a constraint that must be observed to match a Criteria
.
A Restriction is composed by;
FilterField
on which the Restriction applies
Field Summary | |
---|---|
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
|
Method Summary | ||
---|---|---|
static
|
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
|
eq(FilterField<C> field,
Serializable value)
Static method used to construct an "equality" restriction on a given field and value |
|
static
|
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
|
gt(FilterField<C> field,
Serializable value)
Static method used to construct an "greater than" restriction on a given field and value |
|
static
|
le(FilterField<C> field,
Serializable value)
Static method used to construct an "less than or equals" restriction on a given field and value |
|
static
|
lt(FilterField<C> field,
Serializable value)
Static method used to construct an "less than" restriction on a given field and value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
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 applies
Restriction
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 applies
Restriction
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 applies
Restriction
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 applies
Restriction
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 applies
Restriction
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 applies
Restriction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |