|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.model.AsyncFetcher
public abstract class AsyncFetcher
Class vended by AsyncFetch for performing data fetch operations off of the Request thread.
AsyncFetch
Constructor Summary | |
---|---|
AsyncFetcher() |
Method Summary | |
---|---|
java.lang.Object |
fetch(AsyncFetch model, java.lang.Object fetchConstraint) Deprecated. Replaced by fetch(AsyncFetch, Object, Object) |
abstract java.lang.Object |
fetch(AsyncFetch model, java.lang.Object fetchConstraint, java.lang.Object fetchContext) Tells the model to fetch the data specified by the fetchConstraint. |
java.lang.Object |
getFetchContext(AsyncFetch model, java.lang.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, java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncFetcher()
Method Detail |
---|
public abstract boolean isFetched(AsyncFetch model, java.lang.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 java.lang.Object getFetchContext(AsyncFetch model, java.lang.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 java.lang.Object fetch(AsyncFetch model, java.lang.Object fetchConstraint, java.lang.Object fetchContext) throws java.lang.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()
calljava.lang.InterruptedException
isFetched(oracle.adf.view.rich.model.AsyncFetch, java.lang.Object)
, getFetchContext(oracle.adf.view.rich.model.AsyncFetch, java.lang.Object)
@Deprecated
public java.lang.Object fetch(AsyncFetch model,
java.lang.Object fetchConstraint)
throws java.lang.InterruptedException
fetch(AsyncFetch, Object, Object)
java.lang.InterruptedException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |