public abstract class ComparisonDeclaration
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ComparisonDeclaration(java.util.function.Supplier<java.util.List<Criterion>> getter,
java.util.function.Consumer<java.util.List<Criterion>> setter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Criterion criterion) |
void |
and(java.lang.Runnable block)
Add a
AND operator. |
<PROPERTY> void |
between(PropertyMetamodel<PROPERTY> propertyMetamodel,
PROPERTY start,
PROPERTY end)
Adds a
BETWEEN operator. |
<PROPERTY> void |
eq(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
= operator. |
<PROPERTY> void |
eq(PropertyMetamodel<PROPERTY> left,
PropertyMetamodel<PROPERTY> right)
Adds a
= operator. |
<PROPERTY> void |
eqOrIsNull(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
= operator or a IS NULL operator. |
void |
exists(SubSelectContext<?> subSelectContext)
Adds a
EXISTS operator. |
<ENTITY> SubSelectFromDeclaration<ENTITY> |
from(EntityMetamodel<ENTITY> entityMetamodel)
Creates a sub-select context.
|
<PROPERTY> void |
ge(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
>= operator. |
<PROPERTY> void |
ge(PropertyMetamodel<PROPERTY> left,
PropertyMetamodel<PROPERTY> right)
Adds a
>= operator. |
<PROPERTY> void |
gt(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
> operator. |
<PROPERTY> void |
gt(PropertyMetamodel<PROPERTY> left,
PropertyMetamodel<PROPERTY> right)
Adds a
> operator. |
<PROPERTY> void |
in(PropertyMetamodel<PROPERTY> left,
java.util.List<PROPERTY> right)
Adds a
IN operator. |
<PROPERTY> void |
in(PropertyMetamodel<PROPERTY> left,
SubSelectContext<PropertyMetamodel<PROPERTY>> right)
Adds a
IN operator. |
<PROPERTY1,PROPERTY2> |
in(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left,
java.util.List<Tuple2<PROPERTY1,PROPERTY2>> right)
Adds a
IN operator. |
<PROPERTY1,PROPERTY2> |
in(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left,
SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>>> right)
Adds a
IN operator. |
<PROPERTY1,PROPERTY2,PROPERTY3> |
in(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left,
java.util.List<Tuple3<PROPERTY1,PROPERTY2,PROPERTY3>> right)
Adds a
IN operator. |
<PROPERTY1,PROPERTY2,PROPERTY3> |
in(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left,
SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>>> right)
Adds a
IN operator. |
<PROPERTY> void |
isNotNull(PropertyMetamodel<PROPERTY> propertyMetamodel)
Adds a
IS NOT NULL operator. |
<PROPERTY> void |
isNull(PropertyMetamodel<PROPERTY> propertyMetamodel)
Adds a
IS NULL operator. |
<PROPERTY> void |
le(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
<= operator. |
<PROPERTY> void |
le(PropertyMetamodel<PROPERTY> left,
PropertyMetamodel<PROPERTY> right)
Adds a
<= operator. |
void |
like(PropertyMetamodel<?> left,
java.lang.CharSequence right)
Adds a
LIKE operator. |
void |
like(PropertyMetamodel<?> left,
java.lang.CharSequence right,
LikeOption option)
Adds a
LIKE operator. |
<PROPERTY> void |
lt(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
< operator. |
<PROPERTY> void |
lt(PropertyMetamodel<PROPERTY> left,
PropertyMetamodel<PROPERTY> right)
Adds a
< operator. |
<PROPERTY> void |
ne(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
<> operator. |
<PROPERTY> void |
ne(PropertyMetamodel<PROPERTY> left,
PropertyMetamodel<PROPERTY> right)
Adds a
<> operator. |
<PROPERTY> void |
neOrIsNotNull(PropertyMetamodel<PROPERTY> left,
PROPERTY right)
Adds a
<> operator or a IS NOT NULL operator. |
void |
not(java.lang.Runnable block)
Add a
NOT operator. |
void |
notExists(SubSelectContext<?> subSelectContext)
Adds a
NOT EXISTS operator. |
<PROPERTY> void |
notIn(PropertyMetamodel<PROPERTY> left,
java.util.List<PROPERTY> right)
Adds a
NOT IN operator. |
<PROPERTY> void |
notIn(PropertyMetamodel<PROPERTY> left,
SubSelectContext<PropertyMetamodel<PROPERTY>> right)
Adds a
NOT IN operator. |
<PROPERTY1,PROPERTY2> |
notIn(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left,
java.util.List<Tuple2<PROPERTY1,PROPERTY2>> right)
Adds a
NOT IN operator. |
<PROPERTY1,PROPERTY2> |
notIn(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left,
SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>>> right)
Adds a
NOT IN operator. |
<PROPERTY1,PROPERTY2,PROPERTY3> |
notIn(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left,
java.util.List<Tuple3<PROPERTY1,PROPERTY2,PROPERTY3>> right)
Adds a
NOT IN operator. |
<PROPERTY1,PROPERTY2,PROPERTY3> |
notIn(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left,
SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>>> right)
Adds a
NOT IN operator. |
void |
notLike(PropertyMetamodel<?> left,
java.lang.CharSequence right)
Adds a
NOT LIKE operator. |
void |
notLike(PropertyMetamodel<?> left,
java.lang.CharSequence right,
LikeOption option)
Adds a
NOT LIKE operator. |
void |
or(java.lang.Runnable block)
Add a
OR operator. |
public <PROPERTY> void eq(PropertyMetamodel<PROPERTY> left, PROPERTY right)
= operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operand.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void eq(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right)
= operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void ne(PropertyMetamodel<PROPERTY> left, PROPERTY right)
<> operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operand.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void ne(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right)
<> operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void gt(PropertyMetamodel<PROPERTY> left, PROPERTY right)
> operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operand.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void gt(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right)
> operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void ge(PropertyMetamodel<PROPERTY> left, PROPERTY right)
>= operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operand.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void ge(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right)
>= operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void lt(PropertyMetamodel<PROPERTY> left, PROPERTY right)
< operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operand.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void lt(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right)
< operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void le(PropertyMetamodel<PROPERTY> left, PROPERTY right)
<= operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operand.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void le(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right)
<= operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void isNull(PropertyMetamodel<PROPERTY> propertyMetamodel)
IS NULL operator.PROPERTY - the property typepropertyMetamodel - the left hand operandjava.lang.NullPointerException - if propertyMetamodel is nullpublic <PROPERTY> void isNotNull(PropertyMetamodel<PROPERTY> propertyMetamodel)
IS NOT NULL operator.PROPERTY - the property typepropertyMetamodel - the left hand operandjava.lang.NullPointerException - if propertyMetamodel is nullpublic <PROPERTY> void eqOrIsNull(PropertyMetamodel<PROPERTY> left, PROPERTY right)
= operator or a IS NULL operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition includes the
IS NULL operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void neOrIsNotNull(PropertyMetamodel<PROPERTY> left, PROPERTY right)
<> operator or a IS NOT NULL operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition includes the
IS NOT NULL operator.java.lang.NullPointerException - if left is nullpublic void like(PropertyMetamodel<?> left, java.lang.CharSequence right)
LIKE operator.left - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic void like(PropertyMetamodel<?> left, java.lang.CharSequence right, LikeOption option)
LIKE operator.left - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.option - the optionjava.lang.NullPointerException - if left is nullpublic void notLike(PropertyMetamodel<?> left, java.lang.CharSequence right)
NOT LIKE operator.left - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic void notLike(PropertyMetamodel<?> left, java.lang.CharSequence right, LikeOption option)
NOT LIKE operator.left - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.option - the optionjava.lang.NullPointerException - if left is nullpublic <PROPERTY> void between(PropertyMetamodel<PROPERTY> propertyMetamodel, PROPERTY start, PROPERTY end)
BETWEEN operator.
If either of the start parameter or the end parameter is null, the query
condition doesn't include the operator.
PROPERTY - the property typepropertyMetamodel - the left hand operandstart - the first argument of the right hand operandend - the second argument of the right hand operandjava.lang.NullPointerException - if propertyMetamodel is nullpublic <PROPERTY> void in(PropertyMetamodel<PROPERTY> left, java.util.List<PROPERTY> right)
IN operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void notIn(PropertyMetamodel<PROPERTY> left, java.util.List<PROPERTY> right)
NOT IN operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY> void in(PropertyMetamodel<PROPERTY> left, SubSelectContext<PropertyMetamodel<PROPERTY>> right)
IN operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY> void notIn(PropertyMetamodel<PROPERTY> left, SubSelectContext<PropertyMetamodel<PROPERTY>> right)
NOT IN operator.PROPERTY - the property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY1,PROPERTY2> void in(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left, java.util.List<Tuple2<PROPERTY1,PROPERTY2>> right)
IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY1,PROPERTY2> void notIn(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left, java.util.List<Tuple2<PROPERTY1,PROPERTY2>> right)
NOT IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY1,PROPERTY2> void in(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left, SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>>> right)
IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY1,PROPERTY2> void notIn(Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>> left, SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>>> right)
NOT IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY1,PROPERTY2,PROPERTY3> void in(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left, java.util.List<Tuple3<PROPERTY1,PROPERTY2,PROPERTY3>> right)
IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typePROPERTY3 - the third property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY1,PROPERTY2,PROPERTY3> void notIn(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left, java.util.List<Tuple3<PROPERTY1,PROPERTY2,PROPERTY3>> right)
NOT IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typePROPERTY3 - the third property typeleft - the left hand operandright - the right hand operand. If this value is null, the query condition doesn't include
the operator.java.lang.NullPointerException - if left is nullpublic <PROPERTY1,PROPERTY2,PROPERTY3> void in(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left, SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>>> right)
IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typePROPERTY3 - the third property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic <PROPERTY1,PROPERTY2,PROPERTY3> void notIn(Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>> left, SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>,PropertyMetamodel<PROPERTY2>,PropertyMetamodel<PROPERTY3>>> right)
NOT IN operator.PROPERTY1 - the first property typePROPERTY2 - the second property typePROPERTY3 - the third property typeleft - the left hand operandright - the right hand operandjava.lang.NullPointerException - if left or right is nullpublic void exists(SubSelectContext<?> subSelectContext)
EXISTS operator.subSelectContext - the sub-select contextjava.lang.NullPointerException - if subSelectContext is nullpublic void notExists(SubSelectContext<?> subSelectContext)
NOT EXISTS operator.subSelectContext - the sub-select contextjava.lang.NullPointerException - if subSelectContext is nullpublic <ENTITY> SubSelectFromDeclaration<ENTITY> from(EntityMetamodel<ENTITY> entityMetamodel)
ENTITY - the entity typeentityMetamodel - the entity modeljava.lang.NullPointerException - if entityMetamodel is nullpublic void and(java.lang.Runnable block)
AND operator.block - the right hand operandjava.lang.NullPointerException - if block is nullpublic void or(java.lang.Runnable block)
OR operator.block - the right hand operandjava.lang.NullPointerException - if block is nullpublic void not(java.lang.Runnable block)
NOT operator.block - the right hand operandjava.lang.NullPointerException - if block is nullprotected void add(Criterion criterion)