|
Oracle Application Server TopLink API Reference 10g (9.0.4.3) B10491-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.internal.queryframework.ContainerPolicy
oracle.toplink.queryframework.CursorPolicy
Purpose: Abstract class for all Cursor-related policy objects
| Constructor Summary | |
CursorPolicy()INTERNAL: default constructor | |
CursorPolicy(ReadQuery query, int pageSize)INTERNAL: | |
| Method Summary | |
oracle.toplink.internal.queryframework.ContainerPolicy |
clone(ReadQuery query)INTERNAL: |
abstract java.lang.Object |
execute()INTERNAL: Execute the cursored select and build the stream. |
int |
getPageSize()Return the number of elements to be read into a cursored stream when more elements are needed from the database. |
ReadQuery |
getQuery()INTERNAL: Return the query. |
boolean |
hasNext(java.lang.Object iterator)INTERNAL: Return whether the iterator has more objects. |
boolean |
isCursoredStreamPolicy() |
boolean |
isCursorPolicy() |
boolean |
isScrollableCursorPolicy() |
java.lang.Object |
iteratorFor(java.lang.Object container)INTERNAL: Return an iterator for the given container. |
boolean |
overridesRead()INTERNAL: This can be used by collection such as cursored stream to gain control over execution. |
void |
prepare(DatabaseQuery query, oracle.toplink.publicinterface.Session session)INTERNAL: Prepare and validate. |
java.lang.Object |
registerObjectInUnitOfWork(java.lang.Object resultCollection, oracle.toplink.publicinterface.UnitOfWork unitOfWork)INTERNAL: The cusored stream executes on the parent but the objects need to be registered. |
abstract java.lang.Object |
remoteExecute()INTERNAL: Execute the cursored select and build the stream. |
void |
setPageSize(int pageSize)Set the number of elements to be read into a cursored stream when more elements are needed from the database. |
void |
setQuery(ReadQuery query)INTERNAL: Set the query. |
int |
sizeFor(java.lang.Object container)INTERNAL: Return the size of container. |
| Methods inherited from class oracle.toplink.internal.queryframework.ContainerPolicy |
addInto, addInto, addIntoWithOrder, addIntoWithOrder, addIntoWithOrder, buildContainerFromVector, buildPolicyFor, clear, clone, cloneFor, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, getContainerClass, getElementDescriptor, hasElementDescriptor, hasOrder, initializeConstructor, isCollectionPolicy, isCursorStreamPolicy, isEmpty, isListPolicy, isMapPolicy, isValidContainer, isValidContainerType, keyFrom, next, prepareForExecution, removeAllElements, removeFrom, removeFrom, removeFromWithOrder, setContainerClass, setElementDescriptor, setKeyMethod, toString, validateElementAndRehashIfRequired, vectorFor |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CursorPolicy()
public CursorPolicy(ReadQuery query,
int pageSize)
| Method Detail |
public oracle.toplink.internal.queryframework.ContainerPolicy clone(ReadQuery query)
public abstract java.lang.Object execute()
public int getPageSize()
public ReadQuery getQuery()
public boolean hasNext(java.lang.Object iterator)
iterator - java.lang.Objectpublic boolean isCursoredStreamPolicy()
public boolean isCursorPolicy()
public boolean isScrollableCursorPolicy()
public java.lang.Object iteratorFor(java.lang.Object container)
ContainerPolicy.hasNext(java.lang.Object), ContainerPolicy#next(java.lang.Object)public boolean overridesRead()
public void prepare(DatabaseQuery query,
oracle.toplink.publicinterface.Session session)
throws QueryException
QueryException
public java.lang.Object registerObjectInUnitOfWork(java.lang.Object resultCollection,
oracle.toplink.publicinterface.UnitOfWork unitOfWork)
public abstract java.lang.Object remoteExecute()
public void setPageSize(int pageSize)
public void setQuery(ReadQuery query)
public int sizeFor(java.lang.Object container)
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||