Oracle TopLink API Reference
10g Release 3 (10.1.3)

B13698-01

oracle.toplink.queryframework
Class CursoredStreamPolicy

java.lang.Object
  extended byoracle.toplink.internal.queryframework.ContainerPolicy
      extended byoracle.toplink.queryframework.CursorPolicy
          extended byoracle.toplink.queryframework.CursoredStreamPolicy
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class CursoredStreamPolicy
extends CursorPolicy

Purpose: Used to support cursored streams in a read query.

Responsibilities: Execute the cursored read and build the stream.

Since:
TOPLink/Java 1.2
See Also:
Serialized Form

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, getContainerClassName, getElementDescriptor, hasElementDescriptor, hasOrder, initializeConstructor, isCollectionPolicy, isCursorStreamPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMapPolicy, isValidContainer, isValidContainerType, keyFrom, next, prepareForExecution, recordAddToCollectionInChangeRecord, recordRemoveFromCollectionInChangeRecord, removeAllElements, removeFrom, removeFrom, removeFromWithOrder, setContainerClass, setContainerClassName, setElementDescriptor, setKeyMethod, toString, validateElementAndRehashIfRequired, vectorFor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CursoredStreamPolicy

public CursoredStreamPolicy()
default constructor


CursoredStreamPolicy

public CursoredStreamPolicy(ReadQuery query,
                            int pageSize)
set the initial read size to match the page size


CursoredStreamPolicy

public CursoredStreamPolicy(ReadQuery query,
                            int initialReadSize,
                            int pageSize)

CursoredStreamPolicy

public CursoredStreamPolicy(ReadQuery query,
                            int initialReadSize,
                            int pageSize,
                            ValueReadQuery sizeQuery)
Method Detail

getInitialReadSize

public int getInitialReadSize()
Specifies the number of elements to be read initially into a cursored stream.


getSizeQuery

public ValueReadQuery getSizeQuery()
Return the query used to read the size. This is required for SQL read queries.


isCursoredStreamPolicy

public boolean isCursoredStreamPolicy()
Overrides:
isCursoredStreamPolicy in class CursorPolicy

setInitialReadSize

public void setInitialReadSize(int initialReadSize)
Specifies the number of elements to be read initially into a cursored stream


setSizeQuery

public void setSizeQuery(ValueReadQuery sizeQuery)
Set the query used to read the size. This is required for SQL read queries.


Copyright © 1998, 2006, Oracle. All Rights Reserved.