T
- The type of ParametrizedQueryBuilder
instance being implemented. This type
is here to facilitate the building of a fluent interface.public interface ParametrizedQueryBuilder<T>
ParametrizedQueryBuilder
implementations.
It includes the basic query functions.Modifier and Type | Method and Description |
---|---|
T |
and()
Synonym for
intersect()
Query criteria which are added to the query after this method
are "AND" or "intersection" criteria. |
T |
clear()
Clear all parameters and meta-criteria
|
T |
equals()
Results retrieved using query criteria added after this method
is used, must exactly match the criteria given.
|
T |
intersect()
Synonym for
and()
Query criteria which are added to the query after this method
are "AND" or "intersection" criteria. |
T |
like()
Deprecated.
will be deleted in 7.0
|
T |
maxResults(int maxResults)
Limit the number of results returned by the query to the specified maximum.
|
T |
offset(int offset)
Limit the results returned by excluding the specified number of results (the offset),
from the start of the result list.
|
T |
or()
Synonym for
union()
Query criteria which are added to the query after this method
are "OR" or "union" criteria. |
T |
regex()
Query criteria which are added to the query after this method
are regular expression (a.k.a "regex") criteria.
|
T |
union()
Synonym for
or()
Query criteria which are added to the query after this method
are "OR" or "union" criteria. |
T union()
or()
Query criteria which are added to the query after this method
are "OR" or "union" criteria.
Since this is based on SQL, please remember that intersection operands
have precedence over union operands.
In other words, A or B and C == A or (B and C)
A and B or C == (A and B) or C
T or()
union()
Query criteria which are added to the query after this method
are "OR" or "union" criteria.
Since this is based on SQL, please remember that intersection operands
have precedence over union operands.
In other words, A or B and C == A or (B and C)
A and B or C == (A and B) or C
T intersect()
and()
Query criteria which are added to the query after this method
are "AND" or "intersection" criteria.
Since this is based on SQL, please remember that intersection operands
have precedence over union operands.
In other words, A or B and C == A or (B and C)
A and B or C == (A and B) or C
T and()
intersect()
Query criteria which are added to the query after this method
are "AND" or "intersection" criteria.
Since this is based on SQL, please remember that intersection operands
have precedence over union operands.
In other words, A or B and C == A or (B and C)
A and B or C == (A and B) or C
@Deprecated T like()
equals()
method.
The following characters may be used:#regex()}
T regex()
equals()
method.
The following characters may be used:#like()}
T equals()
like()
method has been used, using this method
will ensure that criteria added after this method are literally
interpreted, and not seen as regular expressions.
This is the default mode for all query builders.T clear()
T maxResults(int maxResults)
maxResults
- The maximum number of results to returnT offset(int offset)
#ascending()
and #descending()
.offset
- The number of elements skipped before the first element in the resultCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.