Class SDOParameters

java.lang.Object
com.progress.open4gl.SDOParameters
All Implemented Interfaces:
Serializable

public final class SDOParameters extends Object implements 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.
See Also:
  • Field Details

  • Constructor Details

    • SDOParameters

      public SDOParameters()
  • Method Details

    • setRowIdentity

      public void setRowIdentity(String id)
      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

      public String getRowIdentity()
      Returns:
      the value set by setRowIdentity
    • scrollingModeWasSet

      public boolean scrollingModeWasSet()
      Returns:
      true if setScrollingMode was called
    • setScrollingMode

      public void setScrollingMode(SDOScrollingMode mode)
      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

      public SDOScrollingMode 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