Class AbstractOrderableQuery
java.lang.Object
ch.tocco.nice2.persist.core.spi.entity.query.ql.AbstractOrderableQuery
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
AbstractHibernateQueryAdapter, AbstractRelationQueryAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface Query
Query.Mode -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendOrder(Ordering order) Append the givenOrderingpolicy to the existing ordering policy of this query.Get a reference to theOrderingpolicy of this query.booleanCheck whether this query has an ordering policy already.prependOrder(Ordering order) Prepend the givenOrderingpolicy to the existing ordering policy of this query.Replace theOrderingpolicy of this query with the given ordering policy.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Query
count, execute, execute, execute, execute, execute, execute, firstResult, firstResultOrNull, getKeys, getKeys, getManager, getOnlyResult, getOnlyResult, getOnlyResultOrNull, getOnlyResultOrNull, setParameter, toQueryDefinition, uniqueResult, uniqueResultOrNull
-
Field Details
-
ordering
-
-
Constructor Details
-
AbstractOrderableQuery
public AbstractOrderableQuery()
-
-
Method Details
-
getOrdering
Description copied from interface:QueryGet a reference to theOrderingpolicy of this query. If there currently is no ordering policy, one will be created.- Specified by:
getOrderingin interfaceQuery- Returns:
- The ordering policy of this query.
-
hasOrdering
public boolean hasOrdering()Description copied from interface:QueryCheck whether this query has an ordering policy already.- Specified by:
hasOrderingin interfaceQuery- Returns:
true, if this query has an ordering policy with at least one rule,falseif none or one without rules (which may mean that getOrdering() will make one up on the fly).
-
withOrder
-
prependOrder
-
appendOrder
-