|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-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
oracle.toplink.queryframework.ScrollableCursorPolicy
public class ScrollableCursorPolicy
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);
| Field Summary | |
|---|---|
static int |
CONCUR_READ_ONLYJDBC 2.0 The concurrency mode for a ResultSet object that may NOT be updated. |
static int |
CONCUR_UPDATABLEJDBC 2.0 The concurrency mode for a ResultSet object that may be updated. |
static int |
FETCH_FORWARDJDBC 2.0 The rows in a result set will be processed in a forward direction; first-to-last. |
static int |
FETCH_REVERSEJDBC 2.0 The rows in a result set will be processed in a reverse direction; last-to-first. |
static int |
FETCH_UNKNOWNJDBC 2.0 The order in which rows in a result set will be processed is unknown. |
static int |
TYPE_FORWARD_ONLYJDBC 2.0 The type for a ResultSet object whose cursor may move only forward. |
static int |
TYPE_SCROLL_INSENSITIVEJDBC 2.0 The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others. |
static int |
TYPE_SCROLL_SENSITIVEJDBC 2.0 The type for a ResultSet object that is scrollable and generally sensitive to changes made by others. |
| Constructor Summary | |
|---|---|
ScrollableCursorPolicy()Create a new scrollable cursor policy. |
|
| Method Summary | |
|---|---|
int |
getResultSetConcurrency()The ResultSetConcurrency specifies if the resultset is updatable. |
int |
getResultSetType()The ResultSetType specifies if the resultset is sensitive to changes made by others. |
boolean |
isScrollableCursorPolicy() |
void |
setResultSetConcurrency(int resultSetConcurrency)The ResultSetConcurrency specifies if the resultset is updatable. |
void |
setResultSetType(int resultSetType)The ResultSetType specifies if the resultset is sensitive to changes made by others. |
| Methods inherited from class oracle.toplink.queryframework.CursorPolicy |
|---|
getPageSize, isCursorPolicy, setPageSize |
| Methods inherited from class oracle.toplink.internal.queryframework.ContainerPolicy |
|---|
clone, isCollectionPolicy, isCursoredStreamPolicy, isDirectMapPolicy, isListPolicy, isMapPolicy, prepareForExecution, recordAddToCollectionInChangeRecord, recordRemoveFromCollectionInChangeRecord, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FETCH_FORWARD
ScrollableCursorPolicypublic static final int FETCH_REVERSE
ScrollableCursorPolicypublic static final int FETCH_UNKNOWN
ScrollableCursorPolicypublic static final int TYPE_FORWARD_ONLY
ScrollableCursorPolicypublic static final int TYPE_SCROLL_INSENSITIVE
ScrollableCursorPolicypublic static final int TYPE_SCROLL_SENSITIVE
ScrollableCursorPolicypublic static final int CONCUR_READ_ONLY
ScrollableCursorPolicypublic static final int CONCUR_UPDATABLE
ScrollableCursorPolicy| Constructor Detail |
|---|
public ScrollableCursorPolicy()
| Method Detail |
|---|
public int getResultSetConcurrency()
public int getResultSetType()
public boolean isScrollableCursorPolicy()
isScrollableCursorPolicy in class oracle.toplink.internal.queryframework.ContainerPolicypublic void setResultSetConcurrency(int resultSetConcurrency)
public void setResultSetType(int resultSetType)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||