EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

org.eclipse.persistence.queries
Class ScrollableCursorPolicy

java.lang.Object
  extended by org.eclipse.persistence.internal.queries.ContainerPolicy
      extended by org.eclipse.persistence.queries.CursorPolicy
          extended by org.eclipse.persistence.queries.ScrollableCursorPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ScrollableCursorPolicy
extends CursorPolicy

PUBLIC: ScrollableCursorPolicy allows for additional options to be specified for ReadAllQuery or DataReadQuery. These options are passed through to the JDBC result set, the JDBC driver must support JDBC2 scrolling cursors and the options used. Example:

ScrollableCursorPolicy policy = new ScrollableCursorPolicy()

policy.setResultSetType(ScrollableCursorPolicy.TYPE_SCROLL_INSENSITIVE);

query.useScrollableCursor(policy);

See Also:
Serialized Form

Field Summary
static int CONCUR_READ_ONLY
          JDBC 2.0 The concurrency mode for a ResultSet object that may NOT be updated.
static int CONCUR_UPDATABLE
          JDBC 2.0 The concurrency mode for a ResultSet object that may be updated.
static int FETCH_FORWARD
          JDBC 2.0 The rows in a result set will be processed in a forward direction; first-to-last.
static int FETCH_REVERSE
          JDBC 2.0 The rows in a result set will be processed in a reverse direction; last-to-first.
static int FETCH_UNKNOWN
          JDBC 2.0 The order in which rows in a result set will be processed is unknown.
protected  int resultSetConcurrency
           
protected  int resultSetType
           
static int TYPE_FORWARD_ONLY
          JDBC 2.0 The type for a ResultSet object whose cursor may move only forward.
static int TYPE_SCROLL_INSENSITIVE
          JDBC 2.0 The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.
static int TYPE_SCROLL_SENSITIVE
          JDBC 2.0 The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.
 
Fields inherited from class org.eclipse.persistence.queries.CursorPolicy
pageSize, query
 
Fields inherited from class org.eclipse.persistence.internal.queries.ContainerPolicy
constructor, defaultContainerClass, elementDescriptor
 
Constructor Summary
ScrollableCursorPolicy()
          PUBLIC: Create a new scrollable cursor policy.
ScrollableCursorPolicy(ReadQuery query, int pageSize)
          INTERNAL: Create a cursor policy with the pagesize.
 
Method Summary
 java.lang.Object execute()
          INTERNAL: Execute the cursored select and build the stream.
 int getResultSetConcurrency()
          PUBLIC: The ResultSetConcurrency specifies if the resultset is updatable.
 int getResultSetType()
          PUBLIC: The ResultSetType specifies if the resultset is sensitive to changes made by others.
 boolean isScrollableCursorPolicy()
           
 java.lang.Object remoteExecute()
          INTERNAL: Execute the cursored select and build the stream.
 void setResultSetConcurrency(int resultSetConcurrency)
          PUBLIC: The ResultSetConcurrency specifies if the resultset is updatable.
 void setResultSetType(int resultSetType)
          PUBLIC: The ResultSetType specifies if the resultset is sensitive to changes made by others.
 
Methods inherited from class org.eclipse.persistence.queries.CursorPolicy
clone, getPageSize, getQuery, hasNext, isCursorPolicy, iteratorFor, next, overridesRead, prepare, setPageSize, setQuery, sizeFor, toStringInfo
 
Methods inherited from class org.eclipse.persistence.internal.queries.ContainerPolicy
addInto, addInto, addInto, addIntoWithOrder, addIntoWithOrder, addIntoWithOrder, buildContainerFromVector, buildDefaultPolicy, buildPolicyFor, buildPolicyFor, clear, clone, cloneFor, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, contains, containsKey, convertClassNamesToClasses, equals, getConstructor, getContainerClass, getContainerClassName, getDefaultContainerClass, getElementDescriptor, hasElementDescriptor, hasOrder, initializeConstructor, isCollectionPolicy, isCursoredStreamPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMapPolicy, isValidContainer, isValidContainerType, keyFrom, mergeCascadeParts, mergeChanges, next, prepareForExecution, recordAddToCollectionInChangeRecord, recordRemoveFromCollectionInChangeRecord, recordUpdateToCollectionInChangeRecord, removeAllElements, removeFrom, removeFrom, removeFrom, removeFromWithOrder, setConstructor, setContainerClass, setContainerClassName, setDefaultContainerClass, setElementDescriptor, setKeyName, setKeyName, toString, validateElementAndRehashIfRequired, vectorFor
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultSetType

protected int resultSetType

resultSetConcurrency

protected int resultSetConcurrency

FETCH_FORWARD

public static final int FETCH_FORWARD
JDBC 2.0 The rows in a result set will be processed in a forward direction; first-to-last.

See Also:
Constant Field Values

FETCH_REVERSE

public static final int FETCH_REVERSE
JDBC 2.0 The rows in a result set will be processed in a reverse direction; last-to-first.

See Also:
Constant Field Values

FETCH_UNKNOWN

public static final int FETCH_UNKNOWN
JDBC 2.0 The order in which rows in a result set will be processed is unknown.

See Also:
Constant Field Values

TYPE_FORWARD_ONLY

public static final int TYPE_FORWARD_ONLY
JDBC 2.0 The type for a ResultSet object whose cursor may move only forward.

See Also:
Constant Field Values

TYPE_SCROLL_INSENSITIVE

public static final int TYPE_SCROLL_INSENSITIVE
JDBC 2.0 The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.

See Also:
Constant Field Values

TYPE_SCROLL_SENSITIVE

public static final int TYPE_SCROLL_SENSITIVE
JDBC 2.0 The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.

See Also:
Constant Field Values

CONCUR_READ_ONLY

public static final int CONCUR_READ_ONLY
JDBC 2.0 The concurrency mode for a ResultSet object that may NOT be updated.

See Also:
Constant Field Values

CONCUR_UPDATABLE

public static final int CONCUR_UPDATABLE
JDBC 2.0 The concurrency mode for a ResultSet object that may be updated.

See Also:
Constant Field Values
Constructor Detail

ScrollableCursorPolicy

public ScrollableCursorPolicy()
PUBLIC: Create a new scrollable cursor policy.


ScrollableCursorPolicy

public ScrollableCursorPolicy(ReadQuery query,
                              int pageSize)
INTERNAL: Create a cursor policy with the pagesize.

Method Detail

execute

public java.lang.Object execute()
INTERNAL: Execute the cursored select and build the stream.

Specified by:
execute in class CursorPolicy

getResultSetConcurrency

public int getResultSetConcurrency()
PUBLIC: The ResultSetConcurrency specifies if the resultset is updatable. It is one of, CONCUR_READ_ONLY, CONCUR_UPDATABLE


getResultSetType

public int getResultSetType()
PUBLIC: The ResultSetType specifies if the resultset is sensitive to changes made by others. It is one of, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE


isScrollableCursorPolicy

public boolean isScrollableCursorPolicy()
Overrides:
isScrollableCursorPolicy in class org.eclipse.persistence.internal.queries.ContainerPolicy

remoteExecute

public java.lang.Object remoteExecute()
INTERNAL: Execute the cursored select and build the stream.

Specified by:
remoteExecute in class CursorPolicy

setResultSetConcurrency

public void setResultSetConcurrency(int resultSetConcurrency)
PUBLIC: The ResultSetConcurrency specifies if the resultset is updatable. It is one of, CONCUR_READ_ONLY, CONCUR_UPDATABLE


setResultSetType

public void setResultSetType(int resultSetType)
PUBLIC: The ResultSetType specifies if the resultset is sensitive to changes made by others. It is one of, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE


EclipseLink 1.1.4, build 'v20100812-r7860' API Reference