public interface OrderedFetch extends Fetch
Represents a fetch that sorts the result of its query according to one or more attributes.
This functionality is intended to be used along with IncrementalFetch
to return a coherent, ordered view of a limited range of a
large result set.
Modifier and Type | Method and Description |
---|---|
void |
addOrderBy(String attribute,
int order)
Adds an order by directive to this fetch.
|
boolean |
isOrderedFetch()
Indicates whether this fetch will retrieved an ordered set of results.
|
equals, hashCode, isCriteriaSet, retrieveAll, retrieveNone, toString
void addOrderBy(String attribute, int order)
attribute
- the attribute to ordered by in the sort. See QueryComponentFactory
for constant values.order
- a constant indicating whether the sort is to be in ascending
or descending order. See QueryComponentFactory
for constant values.boolean isOrderedFetch()
HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved