Package com.progress.open4gl
Class SDOParameters
java.lang.Object
com.progress.open4gl.SDOParameters
- All Implemented Interfaces:
Serializable
This is a "catch all" class for passing initial parameters to an SDOResultSet
object through the _createSDOResultSet() method. All the parameters not
specified as parameters of _createSDOResultSet() are passed through an
SDOParameters object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
boolean
void
setFetchSize
(int fSize) Sets the number of rows to be fetched whenever the SDOResultSet gets more rows from the server.void
setPrefetchMaxRows
(int maxRows) Sets the maximum number of rows to be fetched in PREFETCH mode.void
setRowIdentity
(String id) To create an SDOResultSet object with the cursor positioned before a specific row.void
Sets the scrolling mode of the SDOResultSet object.void
setStateless
(boolean s) If Stateless is set to true then the implementation of the SDOResultSet object will automatically create and delete the underlying SDOProcObject in order to free the AppServer for requests from other clients.
-
Field Details
-
PREFETCH_SIZE
public static final int PREFETCH_SIZE- See Also:
-
DEFAULT_FETCH_SIZE
public static final int DEFAULT_FETCH_SIZE- See Also:
-
MINIMUM_FETCH_SIZE
public static final int MINIMUM_FETCH_SIZE- See Also:
-
DEFAULT_MAXPREFETCH_ROWS
public static final int DEFAULT_MAXPREFETCH_ROWS- See Also:
-
MINIMUM_MAXPREFETCH_ROWS
public static final int MINIMUM_MAXPREFETCH_ROWS- See Also:
-
-
Constructor Details
-
SDOParameters
public SDOParameters()
-
-
Method Details
-
setRowIdentity
To create an SDOResultSet object with the cursor positioned before a specific row. If rowId is null then position before the first row.- Parameters:
id
- the row identity of the specified row
-
getRowIdentity
- Returns:
- the value set by setRowIdentity
-
scrollingModeWasSet
public boolean scrollingModeWasSet()- Returns:
- true if setScrollingMode was called
-
setScrollingMode
Sets the scrolling mode of the SDOResultSet object. The default is KEEP_ROWS- Parameters:
mode
- one of the modes specified by the SDOScrollingMode class
-
getScrollingMode
- Returns:
- the value set by setScrollingMode(), or the KEEP_ROWS default
-
setPrefetchMaxRows
public void setPrefetchMaxRows(int maxRows) Sets the maximum number of rows to be fetched in PREFETCH mode. Since the Stateless mode is always a PREFETCH mode, it also determines the maximum number of rows fetched in Stateless mode. setPrefetchMaxRows() would be typically used in conjunction with reOpenQuery(String rowId) to handle very large result sets: The setPrefetchMaxRows() call limits the number of rows fetched by the query while the reOpenQuery(String rowId) is used to get more rows from a specific rowId. setPrefetchMaxRows() has no effect on scrolling modes other than the PREFETCH mode.- Parameters:
maxRows
- the number of rows
-
getPrefetchMaxRows
public int getPrefetchMaxRows()- Returns:
- the value set by setPrefetchMaxRows(), or the default.
-
setFetchSize
public void setFetchSize(int fSize) Sets the number of rows to be fetched whenever the SDOResultSet gets more rows from the server.- Parameters:
fSize
- the number of rows
-
getFetchSize
public int getFetchSize()- Returns:
- the value set by setFetchSize(), or the default.
-
setStateless
public void setStateless(boolean s) If Stateless is set to true then the implementation of the SDOResultSet object will automatically create and delete the underlying SDOProcObject in order to free the AppServer for requests from other clients.- Parameters:
s
- true if a Stateless mode is desired
-
getStateless
public boolean getStateless()- Returns:
- the value set by setStateless(), or the default which is false
-