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 |
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()
Query criteria which are added to the query after this method
are "AND" or "intersection" criteria.
|
T |
like()
/**
Query criteria which are added to the query after this method
are regular expression (a.k.a "regex") criteria.
|
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 |
union()
Query criteria which are added to the query after this method
are "OR" or "union" criteria.
|
T union()
A or B and C == A or (B and C)
A and B or C == (A and B) or C
T intersect()
A or B and C == A or (B and C)
A and B or C == (A and B) or C
T like()
equals()
method.
The following characters may be used: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–2016 JBoss by Red Hat. All rights reserved.