Package org.redisson.api.condition
Class Conditions
java.lang.Object
org.redisson.api.condition.Conditions
Conditions factory to search for Live Objects by fields.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionstatic Condition
Returns "AND" condition for collection of nestedconditions
static Condition
Returns "EQUALS" condition which restricts property byname
to definedvalue
static Condition
Returns "GREATER THAN ON EQUAL" condition which restricts property byname
to definedvalue
static Condition
Returns "GREATER THAN" condition which restricts property byname
to definedvalue
static Condition
Returns "IN" condition for property byname
and allowed set ofvalues
static Condition
in
(String name, Collection<?> values) Returns "IN" condition for property byname
and allowed set ofvalues
static Condition
Returns "LESS THAN ON EQUAL" condition which restricts property byname
to definedvalue
static Condition
Returns "LESS THAN" condition which restricts property byname
to definedvalue
static Condition
Returns "OR" condition for collection of nestedconditions
-
Method Details
-
in
Returns "IN" condition for property byname
and allowed set ofvalues
- Parameters:
name
- - name of propertyvalues
- - array of allowed values- Returns:
- condition
-
in
Returns "IN" condition for property byname
and allowed set ofvalues
- Parameters:
name
- - name of propertyvalues
- - collection of allowed values- Returns:
- condition
-
eq
Returns "EQUALS" condition which restricts property byname
to definedvalue
- Parameters:
name
- - name of propertyvalue
- - defined value- Returns:
- condition
-
or
Returns "OR" condition for collection of nestedconditions
- Parameters:
conditions
- - nested condition objects- Returns:
- condition
-
and
Returns "AND" condition for collection of nestedconditions
- Parameters:
conditions
- - nested condition objects- Returns:
- condition
-
gt
Returns "GREATER THAN" condition which restricts property byname
to definedvalue
- Parameters:
name
- - name of propertyvalue
- - defined value- Returns:
- condition
-
lt
Returns "LESS THAN" condition which restricts property byname
to definedvalue
- Parameters:
name
- - name of propertyvalue
- - defined value- Returns:
- condition
-
ge
Returns "GREATER THAN ON EQUAL" condition which restricts property byname
to definedvalue
- Parameters:
name
- - name of propertyvalue
- - defined value- Returns:
- condition
-
le
Returns "LESS THAN ON EQUAL" condition which restricts property byname
to definedvalue
- Parameters:
name
- - name of propertyvalue
- - defined value- Returns:
- condition
-