API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sql.rowset. CachedRowSet View Source
Author(s)
Jonathan Bruce
Since
Version
Serial
Hierarchy
 Wrapper
      ResultSet
          RowSet
              CachedRowSet
Subinterfaces
Description
public interface CachedRowSet
  The interface that all standard implementations of CachedRowSet must implement.
See also:   
Methods
Hide/Show inherited methods
public void acceptChanges () throws SyncProviderException
  Propagates row update, insert and delete changes made to this CachedRowSet object to the underlying data source.
public void acceptChanges (Connection con) throws SyncProviderException
  Propagates all row update, insert and delete changes to the data source backing this CachedRowSet object using the specified Connection object to establish a connection to the data source.
public boolean columnUpdated (int idx) throws SQLException
  Indicates whether the designated column in the current row of this CachedRowSet object has been updated.
public boolean columnUpdated (String columnName) throws SQLException
  Indicates whether the designated column in the current row of this CachedRowSet object has been updated.
public void commit () throws SQLException
  Each CachedRowSet object's SyncProvider contains a Connection object from the ResultSet or JDBC properties passed to it's constructors.
public CachedRowSet createCopy () throws SQLException
  Creates a RowSet object that is a deep copy of the data in this CachedRowSet object.
public CachedRowSet createCopyNoConstraints () throws SQLException
  Creates a CachedRowSet object that is a deep copy of this CachedRowSet object's data but is independent of it.
public CachedRowSet createCopySchema () throws SQLException
  Creates a CachedRowSet object that is an empty copy of this CachedRowSet object.
public RowSet createShared () throws SQLException
  Returns a new RowSet object backed by the same data as that of this CachedRowSet object.
public void execute (Connection conn) throws SQLException
  Populates this CachedRowSet object with data, using the given connection to produce the result set from which the data will be read.
public int getKeyColumns () throws SQLException
  Returns an array containing one or more column numbers indicating the columns that form a key that uniquely identifies a row in this CachedRowSet object.
public ResultSet getOriginal () throws SQLException
  Returns a ResultSet object containing the original value of this CachedRowSet object.
public ResultSet getOriginalRow () throws SQLException
  Returns a ResultSet object containing the original value for the current row only of this CachedRowSet object.
public int getPageSize ()
  Returns the page-size for the CachedRowSet object
public RowSetWarning getRowSetWarnings () throws SQLException
  Retrieves the first warning reported by calls on this RowSet object.
public boolean getShowDeleted () throws SQLException
  Retrieves a boolean indicating whether rows marked for deletion appear in the set of current rows.
public SyncProvider getSyncProvider () throws SQLException
  Retrieves the SyncProvider implementation for this CachedRowSet object.
public String getTableName () throws SQLException
  Returns an identifier for the object (table) that was used to create this CachedRowSet object.
public boolean nextPage () throws SQLException
  Increments the current page of the CachedRowSet.
public void populate (ResultSet data) throws SQLException
  Populates this CachedRowSet object with data from the given ResultSet object.
public void populate (ResultSet rs, int startRow) throws SQLException
  Populates this CachedRowSet object with data from the given ResultSet object.
public boolean previousPage () throws SQLException
  Decrements the current page of the CachedRowSet.
public void release () throws SQLException
  Releases the current contents of this CachedRowSet object and sends a rowSetChanged event to all registered listeners.
public void restoreOriginal () throws SQLException
  Restores this CachedRowSet object to its original value, that is, its value before the last set of changes.
public void rollback () throws SQLException
  Each CachedRowSet object's SyncProvider contains a Connection object from the original ResultSet or JDBC properties passed to it.
public void rollback (Savepoint s) throws SQLException
  Each CachedRowSet object's SyncProvider contains a Connection object from the original ResultSet or JDBC properties passed to it.
public void rowSetPopulated (RowSetEvent event, int numRows) throws SQLException
  Notifies registered listeners that a RowSet object in the given RowSetEvent object has populated a number of additional rows.
public void setKeyColumns (int[] keys) throws SQLException
  Sets this CachedRowSet object's keyCols field with the given array of column numbers, which forms a key for uniquely identifying a row in this CachedRowSet object.
public void setMetaData (RowSetMetaData md) throws SQLException
  Sets the metadata for this CachedRowSet object with the given RowSetMetaData object.
public void setOriginalRow () throws SQLException
  Sets the current row in this CachedRowSet object as the original row.
public void setPageSize (int size) throws SQLException
  Sets the CachedRowSet object's page-size.
public void setShowDeleted (boolean b) throws SQLException
  Sets the property showDeleted to the given boolean value, which determines whether rows marked for deletion appear in the set of current rows.
public void setSyncProvider (String provider) throws SQLException
  Sets the SyncProvider objec for this CachedRowSet object to the one specified.
public void setTableName (String tabName) throws SQLException
  Sets the identifier for the table from which this CachedRowSet object was derived to the given table name.
public int size ()
  Returns the number of rows in this CachedRowSet object.
public Collection<Object> toCollection () throws SQLException
  Converts this CachedRowSet object to a Collection object that contains all of this CachedRowSet object's data.
public Collection<Object> toCollection (int column) throws SQLException
  Converts the designated column in this CachedRowSet object to a Collection object.
public Collection<Object> toCollection (String column) throws SQLException
  Converts the designated column in this CachedRowSet object to a Collection object.
public void undoDelete () throws SQLException
  Cancels the deletion of the current row and notifies listeners that a row has changed.
public void undoInsert () throws SQLException
  Immediately removes the current row from this CachedRowSet object if the row has been inserted, and also notifies listeners that a row has changed.
public void undoUpdate () throws SQLException
  Immediately reverses the last update operation if the row has been modified.
Fields
Hide/Show inherited fields
publicfinalstatic int CLOSE_CURSORS_AT_COMMIT = "2" [Inherited From RowSet]
  The constant indicating that open ResultSet objects with this holdability will be closed when the current transaction is commited.
publicfinalstatic boolean COMMIT_ON_ACCEPT_CHANGES = "true"
  Causes the CachedRowSet object's SyncProvider to commit the changes when acceptChanges() is called.
publicfinalstatic int CONCUR_READ_ONLY = "1007" [Inherited From RowSet]
  The constant indicating the concurrency mode for a ResultSet object that may NOT be updated.
publicfinalstatic int CONCUR_UPDATABLE = "1008" [Inherited From RowSet]
  The constant indicating the concurrency mode for a ResultSet object that may be updated.
publicfinalstatic int FETCH_FORWARD = "1000" [Inherited From RowSet]
  The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last.
publicfinalstatic int FETCH_REVERSE = "1001" [Inherited From RowSet]
  The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first.
publicfinalstatic int FETCH_UNKNOWN = "1002" [Inherited From RowSet]
  The constant indicating that the order in which rows in a result set will be processed is unknown.
publicfinalstatic int HOLD_CURSORS_OVER_COMMIT = "1" [Inherited From RowSet]
  The constant indicating that open ResultSet objects with this holdability will remain open when the current transaction is commited.
publicfinalstatic int TYPE_FORWARD_ONLY = "1003" [Inherited From RowSet]
  The constant indicating the type for a ResultSet object whose cursor may move only forward.
publicfinalstatic int TYPE_SCROLL_INSENSITIVE = "1004" [Inherited From RowSet]
  The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes to the data that underlies the ResultSet.
publicfinalstatic int TYPE_SCROLL_SENSITIVE = "1005" [Inherited From RowSet]
  The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes to the data that underlies the ResultSet.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar