FileDocCategorySizeDatePackage
RowSetWriter.javaAPI DocAndroid 1.5 API2541Wed May 06 22:41:06 BST 2009javax.sql

RowSetWriter

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

The writer must establish a connection to the {@code RowSet}'s database before writing the data. The {@code RowSet} calling this interface must implement the {@code 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
RowSetInternal
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public booleanwriteData(javax.sql.RowSetInternal theRowSet)
Writes changes made in the {@code RowSet}, which is associated with this {@code RowSetWriter}, back to the database.

param
theRowSet a row set that fulfills the following criteria:
  • it must implement the {@code RowSetInternal} interface,
  • have this {@code RowSetWriter} registered with it,
  • must call this method internally.
return
{@code true} if the modified data was written, {@code false} otherwise (which typically implies some form of conflict).
throws
SQLException if a problem occurs accessing the database.
since
Android 1.0