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 |
ascending()
If the
ParametrizedQueryBuilder implementations contains an orderBy( enum )
method, this will set the ordering to ascending. |
T |
clear()
Clear all parameters and meta-criteria
|
T |
descending()
If the
ParametrizedQueryBuilder implementations contains an orderBy( enum )
method, this will set the ordering to descending. |
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()
T intersect()
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 ascending()
ParametrizedQueryBuilder
implementations contains an orderBy( enum )
method, this will set the ordering to ascending.
Query results will be ascendingly ordered by default.
If there is no orderBy( enum ) method available, this method will not do anything.T descending()
ParametrizedQueryBuilder
implementations contains an orderBy( enum )
method, this will set the ordering to descending.
If there is no orderBy( enum ) method available, this method will not do anything.T maxResults(int maxResults)
T offset(int offset)
ascending()
and descending()
.Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.