|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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
|
(package private) static class |
QueryByCriteria.Constants
Defines some internal constants used on this class. |
(package private) static class |
QueryByCriteria.Elements
A private class which exposes constants which define the XML element names to use when this object is marshaled to XML. |
Field Summary | |
---|---|
private Collection<Element> |
_futureElements
|
private String |
countFlag
|
private Integer |
maxResults
|
private Predicate |
predicate
|
private static long |
serialVersionUID
|
private Integer |
startAtIndex
|
Constructor Summary | |
---|---|
private |
QueryByCriteria()
|
private |
QueryByCriteria(QueryByCriteria.Builder builder)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract. |
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. |
int |
hashCode()
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract. |
String |
toString()
This will return a proper string representation of the Model Object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final Predicate predicate
private final Integer startAtIndex
private final Integer maxResults
private final String countFlag
private final Collection<Element> _futureElements
Constructor Detail |
---|
private QueryByCriteria()
private QueryByCriteria(QueryByCriteria.Builder builder)
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
.
public int hashCode()
ModelObjectComplete
ModelObjectComplete.hashCode()
contract.
hashCode
in interface ModelObjectComplete
hashCode
in class Object
public boolean equals(Object obj)
ModelObjectComplete
ModelObjectComplete.equals(Object)
contract.
equals
in interface ModelObjectComplete
equals
in class Object
obj
- to object to compare for equality
public String toString()
ModelObjectBasic
toString
in interface ModelObjectBasic
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |