Oracle Application Server TopLink API Reference
10g (9.0.4)

B10491-01

oracle.toplink.queryframework
Class CursorPolicy

java.lang.Object
  |
  +--oracle.toplink.internal.queryframework.ContainerPolicy
        |
        +--oracle.toplink.queryframework.CursorPolicy
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
CursoredStreamPolicy, ScrollableCursorPolicy

public abstract class CursorPolicy
extends oracle.toplink.internal.queryframework.ContainerPolicy

Purpose: Abstract class for all Cursor-related policy objects

See Also:
Serialized Form

Method Summary
 int getPageSize()
          Return the number of elements to be read into a cursored stream when more elements are needed from the database.
 boolean isCursoredStreamPolicy()
           
 boolean isCursorPolicy()
           
 boolean isScrollableCursorPolicy()
           
 void setPageSize(int pageSize)
          Set the number of elements to be read into a cursored stream when more elements are needed from the database.

 

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

 

Method Detail

getPageSize

public int getPageSize()
Return the number of elements to be read into a cursored stream when more elements are needed from the database.

isCursoredStreamPolicy

public boolean isCursoredStreamPolicy()
Overrides:
isCursoredStreamPolicy in class oracle.toplink.internal.queryframework.ContainerPolicy

isCursorPolicy

public boolean isCursorPolicy()
Overrides:
isCursorPolicy in class oracle.toplink.internal.queryframework.ContainerPolicy

isScrollableCursorPolicy

public boolean isScrollableCursorPolicy()
Overrides:
isScrollableCursorPolicy in class oracle.toplink.internal.queryframework.ContainerPolicy

setPageSize

public void setPageSize(int pageSize)
Set the number of elements to be read into a cursored stream when more elements are needed from the database.

Copyright © 2003 Oracle Corporation. All Rights Reserved.