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