|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.api.mo.AbstractDataTransferObject org.kuali.rice.core.api.criteria.QueryByCriteria
public final class QueryByCriteria
Defines a criteria-based query. Consists of a Predicate
definition
as well as a set of additional properties which control paging and other
aspects of the results which should be returned from the query.
In order to construct a new QueryByCriteria
, the QueryByCriteria.Builder
should be used. Use the PredicateFactory
to construct
the predicate for use by the query.
This class specifies nothing regarding how the query will be executed. It is expected that an instance will be constructed and then passed to code which understands how to execute the desired query.
This class is mapped for use by JAXB and can therefore be used by clients as part of remotable service definitions.
Predicate
,
PredicateFactory
,
Serialized FormNested Class Summary | |
---|---|
static class |
QueryByCriteria.Builder
|
Method Summary | |
---|---|
CountFlag |
getCountFlag()
Indicates whether or not a total row count should be returned with the query. |
Integer |
getMaxResults()
Returns the maximum number of results that this query is requesting to receive. |
Predicate |
getPredicate()
Returns the Predicate which will be used to execute the query. |
Integer |
getStartAtIndex()
Returns the optional zero-based "start" index for rows returned. |
Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject |
---|
afterUnmarshal, beforeUnmarshal, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Predicate getPredicate()
Predicate
which will be used to execute the query.
public Integer getStartAtIndex()
Will never be less than 0
public Integer getMaxResults()
Will never be less than 0
public CountFlag getCountFlag()
CountFlag
for more information on what each of these
flags means. This will never return null and defaults to
CountFlag.NONE
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |