Skip to content

Most visited

Recently visited

navigation
Added in API level 1

RowSetWriter

public interface RowSetWriter

javax.sql.RowSetWriter


An interface which provides functionality for a disconnected RowSet to put data updates back to the data source from which the RowSet was originally populated. An object implementing this interface is called a writer.

The writer must establish a connection to the RowSet's database before writing the data. The RowSet calling this interface must implement the RowSetInternal interface.

The writer may encounter a situation where the updated data needs to be written back to the database, but has already been updated there in the mean time. How a conflict of this kind is handled is determined by the implementation of this writer.

See also:

Summary

Public methods

abstract boolean writeData(RowSetInternal theRowSet)

Writes changes made in the RowSet, which is associated with this RowSetWriter, back to the database.

Public methods

writeData

Added in API level 1
boolean writeData (RowSetInternal theRowSet)

Writes changes made in the RowSet, which is associated with this RowSetWriter, back to the database.

Parameters
theRowSet RowSetInternal: a row set that fulfills the following criteria:
  • it must implement the RowSetInternal interface,
  • have this RowSetWriter registered with it,
  • must call this method internally.
Returns
boolean true if the modified data was written, false otherwise (which typically implies some form of conflict).
Throws
SQLException if a problem occurs accessing the database.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.