public abstract class AsyncFetcher extends Object
AsyncFetch| Constructor and Description |
|---|
AsyncFetcher() |
| Modifier and Type | Method and Description |
|---|---|
Object |
fetch(AsyncFetch model,
Object fetchConstraint)
Deprecated.
Replaced by
fetch(AsyncFetch, Object, Object) |
abstract Object |
fetch(AsyncFetch model,
Object fetchConstraint,
Object fetchContext)
Tells the model to fetch the data specified by the fetchConstraint.
|
Object |
getFetchContext(AsyncFetch model,
Object fetchConstraint)
The context object returned by this method will be passed to the
fetch() method
This method is always called on a request thread |
abstract boolean |
isFetched(AsyncFetch model,
Object fetchConstraint)
Returns
true if the fetchConstraint is of a type supported by the model and
all of the data specified by the fetchConstraint is either in memory or
unavailable for fetching. |
public abstract boolean isFetched(AsyncFetch model, Object fetchConstraint)
true if the fetchConstraint is of a type supported by the model and
all of the data specified by the fetchConstraint is either in memory or
unavailable for fetching. An example where the data is unavailable would be a
fetchConstraint that specified a row index beyond the model's row count.
If determining whether the fetchConstraint is cached in memory is extremely expensive, the
implementation should return false.
model - AsyncFetch model to ask if the fetchConstraint is already available in memoryfetchConstraint - constraint specifying which data to fetchtrue if the fetchConstraint is already available in memory for this model.fetch(AsyncFetch, Object, Object)public Object getFetchContext(AsyncFetch model, Object fetchConstraint)
fetch() method
This method is always called on a request threadmodel - AsyncFetch model to ask if the fetchConstraint is already available in memoryfetchConstraint - constraint specifying which data to fetchfetch(AsyncFetch, Object, Object)public abstract Object fetch(AsyncFetch model, Object fetchConstraint, Object fetchContext) throws InterruptedException
The method will not return until all rows in the range have been fetched and cached.
This method may be called on a non-Request thread and the FacesContext may not be available.
model - AsyncFetch model to fetch the data fromfetchConstraint - Constraint specifying which data to fetchfetchContext - a context object provided by the getFetchContext() callInterruptedException - if the operation is interuppted.isFetched(oracle.adf.view.rich.model.AsyncFetch, java.lang.Object),
getFetchContext(oracle.adf.view.rich.model.AsyncFetch, java.lang.Object)@Deprecated public Object fetch(AsyncFetch model, Object fetchConstraint) throws InterruptedException
fetch(AsyncFetch, Object, Object)model - AsyncFetch model to fetch the data fromfetchConstraint - Constraint specifying which data to fetchInterruptedException - if the operation is interuppted.