Android
javax.sql
public interface

javax.sql.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 data source before writing the data. The RowSet calling this interface must implement the RowSetInternal interface.

The Writer may encounter a situation where the updated data being written back to the data source has already been updated in the data source. How a conflict of this kind is handled is determined by the implementation of the Writer.

Summary

Public Methods

          boolean  writeData(RowSetInternal theRowSet)
Writes changes in the RowSet associated with this RowSetWriter back to its data source.

Details

Public Methods

public boolean writeData(RowSetInternal theRowSet)

Writes changes in the RowSet associated with this RowSetWriter back to its data source.

Parameters

theRowSet the RowSet object. This RowSet must a) Implement the RowSetInternal interface and b) have have this RowSetWriter registered with it and c) must call this method internally

Returns

  • 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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56