public class Conditions
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
Conditions |
add(Condition condition)
Add a condition
|
static Condition |
between(java.lang.String propertyName,
java.lang.Object startingValue,
java.lang.Object endingValue)
Between condition
|
static Conditions |
createConditions()
Create some conditions
|
static Condition |
eq(java.lang.String propertyName,
java.lang.Object value)
Equal condition
|
static Condition |
ge(java.lang.String propertyName,
java.lang.Object value)
Greater than or equal condition
|
java.util.List<Condition> |
getConditions()
Get the list of conditions
|
static Condition |
gt(java.lang.String propertyName,
java.lang.Object value)
Greater than condition
|
static Condition |
in(java.lang.String propertyName,
java.util.List<? extends java.lang.Object> values)
In condition
|
static Condition |
in(java.lang.String propertyName,
java.lang.Object[] values)
In condition
|
static Condition |
isNotNull(java.lang.String propertyName)
Is not null condition
|
static Condition |
isNull(java.lang.String propertyName)
Is null condition
|
static Condition |
le(java.lang.String propertyName,
java.lang.Object value)
Less than or equal condition
|
static Condition |
like(java.lang.String propertyName,
java.lang.Object value)
Like condition
|
static Condition |
lt(java.lang.String propertyName,
java.lang.Object value)
Less than condition
|
static Condition |
ne(java.lang.String propertyName,
java.lang.Object value)
Not equal condition
|
static Condition |
notBetween(java.lang.String propertyName,
java.lang.Object startingValue,
java.lang.Object endingValue)
Not between condition
|
static Condition |
notIn(java.lang.String propertyName,
java.util.List<? extends java.lang.Object> values)
Not in condition
|
static Condition |
notIn(java.lang.String propertyName,
java.lang.Object[] values)
Not in condition
|
java.lang.String |
toString() |
public static Conditions createConditions()
public Conditions add(Condition condition)
condition
- Conditionpublic static Condition eq(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition ne(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition lt(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition gt(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition le(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition ge(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition like(java.lang.String propertyName, java.lang.Object value)
propertyName
- Name of the propertyvalue
- Valuepublic static Condition isNull(java.lang.String propertyName)
propertyName
- Name of the propertypublic static Condition isNotNull(java.lang.String propertyName)
propertyName
- Name of the propertypublic static Condition between(java.lang.String propertyName, java.lang.Object startingValue, java.lang.Object endingValue)
propertyName
- Name of the propertystartingValue
- Starting valueendingValue
- Ending valuepublic static Condition notBetween(java.lang.String propertyName, java.lang.Object startingValue, java.lang.Object endingValue)
propertyName
- Name of the propertystartingValue
- Starting valueendingValue
- Ending valuepublic static Condition in(java.lang.String propertyName, java.util.List<? extends java.lang.Object> values)
propertyName
- Name of the propertyvalues
- List of valuespublic static Condition in(java.lang.String propertyName, java.lang.Object[] values)
propertyName
- Name of the propertyvalues
- List of valuespublic static Condition notIn(java.lang.String propertyName, java.util.List<? extends java.lang.Object> values)
propertyName
- Name of the propertyvalues
- List of valuespublic static Condition notIn(java.lang.String propertyName, java.lang.Object[] values)
propertyName
- Name of the propertyvalues
- List of valuespublic java.util.List<Condition> getConditions()
public java.lang.String toString()
toString
in class java.lang.Object