public final class QueryByCriteria extends AbstractDataTransferObject
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 FormModifier and Type | Class and Description |
---|---|
static class |
QueryByCriteria.Builder |
Modifier and Type | Method and Description |
---|---|
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.
|
List<OrderByField> |
getOrderByFields()
Returns the a list of fields that will be ordered depending on the orderDirection
when results are returned.
|
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.
|
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
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
.public List<OrderByField> getOrderByFields()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.