Module org.seasar.doma.core
Class ComparisonDeclaration
java.lang.Object
org.seasar.doma.jdbc.criteria.declaration.ComparisonDeclaration
- Direct Known Subclasses:
HavingDeclaration,JoinDeclaration,WhereDeclaration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidAdd aANDoperator.<PROPERTY> voidbetween(PropertyMetamodel<PROPERTY> propertyMetamodel, PROPERTY start, PROPERTY end) Adds aBETWEENoperator.<PROPERTY> voideq(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right) Adds a=operator.<PROPERTY> voideq(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a=operator.<PROPERTY> voideqOrIsNull(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a=operator or aIS NULLoperator.voidexists(SubSelectContext<?> subSelectContext) Adds aEXISTSoperator.<EXTENSION>
voidextension(Function<UserDefinedCriteriaContext, EXTENSION> construct, Consumer<EXTENSION> extensionBlock) Add a declaring a user-defined extension.<ENTITY> SubSelectFromDeclaration<ENTITY>from(EntityMetamodel<ENTITY> entityMetamodel) Creates a sub-select context.<PROPERTY> voidge(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right) Adds a>=operator.<PROPERTY> voidge(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a>=operator.<PROPERTY> voidgt(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right) Adds a>operator.<PROPERTY> voidgt(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a>operator.<PROPERTY> voidin(PropertyMetamodel<PROPERTY> left, Iterable<PROPERTY> right) Adds aINoperator.<PROPERTY> voidin(PropertyMetamodel<PROPERTY> left, List<PROPERTY> right) Adds aINoperator.<PROPERTY> voidin(PropertyMetamodel<PROPERTY> left, SubSelectContext<PropertyMetamodel<PROPERTY>> right) Adds aINoperator.<PROPERTY1,PROPERTY2>
voidin(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, Iterable<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aINoperator.<PROPERTY1,PROPERTY2>
voidin(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, List<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aINoperator.<PROPERTY1,PROPERTY2>
voidin(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>>> right) Adds aINoperator.<PROPERTY1,PROPERTY2, PROPERTY3>
voidin(Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, Iterable<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aINoperator.<PROPERTY1,PROPERTY2, PROPERTY3>
voidin(Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, List<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aINoperator.<PROPERTY1,PROPERTY2, PROPERTY3>
voidin(Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>>> right) Adds aINoperator.<PROPERTY> voidisNotNull(PropertyMetamodel<PROPERTY> propertyMetamodel) Adds aIS NOT NULLoperator.<PROPERTY> voidisNull(PropertyMetamodel<PROPERTY> propertyMetamodel) Adds aIS NULLoperator.<PROPERTY> voidle(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right) Adds a<=operator.<PROPERTY> voidle(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a<=operator.voidlike(PropertyMetamodel<?> left, CharSequence right) Adds aLIKEoperator.voidlike(PropertyMetamodel<?> left, CharSequence right, LikeOption option) Adds aLIKEoperator.<PROPERTY> voidlt(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right) Adds a<operator.<PROPERTY> voidlt(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a<operator.<PROPERTY> voidne(PropertyMetamodel<PROPERTY> left, PropertyMetamodel<PROPERTY> right) Adds a<>operator.<PROPERTY> voidne(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a<>operator.<PROPERTY> voidneOrIsNotNull(PropertyMetamodel<PROPERTY> left, PROPERTY right) Adds a<>operator or aIS NOT NULLoperator.voidAdd aNOToperator.voidnotExists(SubSelectContext<?> subSelectContext) Adds aNOT EXISTSoperator.<PROPERTY> voidnotIn(PropertyMetamodel<PROPERTY> left, Iterable<PROPERTY> right) Adds aNOT INoperator.<PROPERTY> voidnotIn(PropertyMetamodel<PROPERTY> left, List<PROPERTY> right) Adds aNOT INoperator.<PROPERTY> voidnotIn(PropertyMetamodel<PROPERTY> left, SubSelectContext<PropertyMetamodel<PROPERTY>> right) Adds aNOT INoperator.<PROPERTY1,PROPERTY2>
voidnotIn(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, Iterable<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aNOT INoperator.<PROPERTY1,PROPERTY2>
voidnotIn(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, List<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aNOT INoperator.<PROPERTY1,PROPERTY2>
voidnotIn(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>>> right) Adds aNOT INoperator.<PROPERTY1,PROPERTY2, PROPERTY3>
voidnotIn(Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, Iterable<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aNOT INoperator.<PROPERTY1,PROPERTY2, PROPERTY3>
voidnotIn(Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, List<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aNOT INoperator.<PROPERTY1,PROPERTY2, PROPERTY3>
voidnotIn(Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>>> right) Adds aNOT INoperator.voidnotLike(PropertyMetamodel<?> left, CharSequence right) Adds aNOT LIKEoperator.voidnotLike(PropertyMetamodel<?> left, CharSequence right, LikeOption option) Adds aNOT LIKEoperator.voidAdd aORoperator.
-
Constructor Details
-
ComparisonDeclaration
-
-
Method Details
-
eq
Adds a=operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operand.- Throws:
NullPointerException- ifleftis null
-
eq
Adds a=operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
ne
Adds a<>operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operand.- Throws:
NullPointerException- ifleftis null
-
ne
Adds a<>operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
gt
Adds a>operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operand.- Throws:
NullPointerException- ifleftis null
-
gt
Adds a>operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
ge
Adds a>=operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operand.- Throws:
NullPointerException- ifleftis null
-
ge
Adds a>=operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
lt
Adds a<operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operand.- Throws:
NullPointerException- ifleftis null
-
lt
Adds a<operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
le
Adds a<=operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operand.- Throws:
NullPointerException- ifleftis null
-
le
Adds a<=operator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
isNull
Adds aIS NULLoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
propertyMetamodel- the left hand operand- Throws:
NullPointerException- ifpropertyMetamodelis null
-
isNotNull
Adds aIS NOT NULLoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
propertyMetamodel- the left hand operand- Throws:
NullPointerException- ifpropertyMetamodelis null
-
eqOrIsNull
Adds a=operator or aIS NULLoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition includes theIS NULLoperator.- Throws:
NullPointerException- ifleftis null
-
neOrIsNotNull
Adds a<>operator or aIS NOT NULLoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition includes theIS NOT NULLoperator.- Throws:
NullPointerException- ifleftis null
-
like
Adds aLIKEoperator.- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
like
Adds aLIKEoperator.- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.option- the option- Throws:
NullPointerException- ifleftis null
-
notLike
Adds aNOT LIKEoperator.- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notLike
Adds aNOT LIKEoperator.- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.option- the option- Throws:
NullPointerException- ifleftis null
-
between
public <PROPERTY> void between(PropertyMetamodel<PROPERTY> propertyMetamodel, PROPERTY start, PROPERTY end) Adds aBETWEENoperator.If either of the
startparameter or theendparameter is null, the query condition doesn't include the operator.- Type Parameters:
PROPERTY- the property type- Parameters:
propertyMetamodel- the left hand operandstart- the first argument of the right hand operandend- the second argument of the right hand operand- Throws:
NullPointerException- ifpropertyMetamodelis null
-
in
Adds aINoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
in
Adds aINoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notIn
Adds aNOT INoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notIn
Adds aNOT INoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
in
public <PROPERTY> void in(PropertyMetamodel<PROPERTY> left, SubSelectContext<PropertyMetamodel<PROPERTY>> right) Adds aINoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
notIn
public <PROPERTY> void notIn(PropertyMetamodel<PROPERTY> left, SubSelectContext<PropertyMetamodel<PROPERTY>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY- the property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
in
public <PROPERTY1,PROPERTY2> void in(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, Iterable<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aINoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
in
public <PROPERTY1,PROPERTY2> void in(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, List<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aINoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notIn
public <PROPERTY1,PROPERTY2> void notIn(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, Iterable<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notIn
public <PROPERTY1,PROPERTY2> void notIn(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, List<Tuple2<PROPERTY1, PROPERTY2>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
in
public <PROPERTY1,PROPERTY2> void in(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>>> right) Adds aINoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
notIn
public <PROPERTY1,PROPERTY2> void notIn(Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>> left, SubSelectContext<Tuple2<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
in
public <PROPERTY1,PROPERTY2, void inPROPERTY3> (Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, Iterable<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aINoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property typePROPERTY3- the third property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
in
public <PROPERTY1,PROPERTY2, void inPROPERTY3> (Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, List<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aINoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property typePROPERTY3- the third property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notIn
public <PROPERTY1,PROPERTY2, void notInPROPERTY3> (Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, Iterable<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property typePROPERTY3- the third property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
notIn
public <PROPERTY1,PROPERTY2, void notInPROPERTY3> (Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, List<Tuple3<PROPERTY1, PROPERTY2, PROPERTY3>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property typePROPERTY3- the third property type- Parameters:
left- the left hand operandright- the right hand operand. If this value is null, the query condition doesn't include the operator.- Throws:
NullPointerException- ifleftis null
-
in
public <PROPERTY1,PROPERTY2, void inPROPERTY3> (Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>>> right) Adds aINoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property typePROPERTY3- the third property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
notIn
public <PROPERTY1,PROPERTY2, void notInPROPERTY3> (Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>> left, SubSelectContext<Tuple3<PropertyMetamodel<PROPERTY1>, PropertyMetamodel<PROPERTY2>, PropertyMetamodel<PROPERTY3>>> right) Adds aNOT INoperator.- Type Parameters:
PROPERTY1- the first property typePROPERTY2- the second property typePROPERTY3- the third property type- Parameters:
left- the left hand operandright- the right hand operand- Throws:
NullPointerException- ifleftorrightis null
-
exists
Adds aEXISTSoperator.- Parameters:
subSelectContext- the sub-select context- Throws:
NullPointerException- ifsubSelectContextis null
-
notExists
Adds aNOT EXISTSoperator.- Parameters:
subSelectContext- the sub-select context- Throws:
NullPointerException- ifsubSelectContextis null
-
from
Creates a sub-select context.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity model- Returns:
- the sub-select context
- Throws:
NullPointerException- ifentityMetamodelis null
-
and
Add aANDoperator.- Parameters:
block- the right hand operand- Throws:
NullPointerException- ifblockis null
-
or
Add aORoperator.- Parameters:
block- the right hand operand- Throws:
NullPointerException- ifblockis null
-
extension
public <EXTENSION> void extension(Function<UserDefinedCriteriaContext, EXTENSION> construct, Consumer<EXTENSION> extensionBlock) Add a declaring a user-defined extension.- Type Parameters:
EXTENSION- the type of the user-defined extension- Parameters:
construct- function that generates user-defined extension.extensionBlock- block that can use user-defined extension.- Throws:
NullPointerException- ifconstructorextensionBlockis null
-
not
Add aNOToperator.- Parameters:
block- the right hand operand- Throws:
NullPointerException- ifblockis null
-
add
-