|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
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 | +--oracle.toplink.queryframework.CursoredStreamPolicy
Purpose: Used to support cursored streams in a read query.
Responsibilities: Execute the cursored read and build the stream.
Constructor Summary | |
CursoredStreamPolicy() default constructor | |
CursoredStreamPolicy(ReadQuery query, int pageSize) set the initial read size to match the page size | |
CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize) | |
CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize, ValueReadQuery sizeQuery) |
Method Summary | |
int |
getInitialReadSize() Specifies the number of elements to be read initially into a cursored stream. |
ValueReadQuery |
getSizeQuery() Return the query used to read the size. |
boolean |
isCursoredStreamPolicy() |
void |
setInitialReadSize(int initialReadSize) Specifies the number of elements to be read initially into a cursored stream |
void |
setSizeQuery(ValueReadQuery sizeQuery) Set the query used to read the size. |
Methods inherited from class oracle.toplink.queryframework.CursorPolicy |
getPageSize, isCursorPolicy, isScrollableCursorPolicy, setPageSize |
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 CursoredStreamPolicy()
public CursoredStreamPolicy(ReadQuery query, int pageSize)
public CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize)
public CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize, ValueReadQuery sizeQuery)
Method Detail |
public int getInitialReadSize()
public ValueReadQuery getSizeQuery()
public boolean isCursoredStreamPolicy()
isCursoredStreamPolicy
in class CursorPolicy
public void setInitialReadSize(int initialReadSize)
public void setSizeQuery(ValueReadQuery sizeQuery)
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |