public interface IncrementalFetch extends Fetch
Represents a fetch that can be configured to retrieve a subset of the query results according to a window of result indexes.
Incremental fetches are commonly used to render application screens that
present a range of results from a potentially large result set.
IncrementalFetch
features are frequently used in combination
with ordering
of result sets.
Modifier and Type | Method and Description |
---|---|
int |
getFirstFetchRowNumber()
Returns the first row that will be fetched by this fetch if the retrieval
window has been set, or -1 otherwise.
|
int |
getLastFetchRowNumber()
Returns the first row that will be fetched by this fetch if the retrieval
window has been set, or -1 otherwise.
|
boolean |
isIncrementalFetch()
Indicates whether this fetch has been constrained with a retrieval
window.
|
void |
setRetrievalWindow(int first,
int last)
Sets the window of results to be retrieved.
|
equals, hashCode, isCriteriaSet, retrieveAll, retrieveNone, toString
void setRetrievalWindow(int first, int last)
Sets the window of results to be retrieved. The first result is index 1.
Both ends are INCLUSIVE.
first
- starting indexlast
- end indexIllegalArgumentException
- In case of invalid valueint getFirstFetchRowNumber()
Returns the first row that will be fetched by this fetch if the retrieval
window has been set, or -1 otherwise. See
setRetrievalWindow
for details.
int getLastFetchRowNumber()
Returns the first row that will be fetched by this fetch if the retrieval
window has been set, or -1 otherwise. See
setRetrievalWindow
for details.
boolean isIncrementalFetch()
setRetrievalWindow
has been called successfully on this fetch.HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved