javax.sql
Interface RowSetWriter

All Known Implementing Classes:
RowSetWriterImpl

public abstract interface RowSetWriter

The RowSetWriter interface.

An object that implements the RowSetWriter interface may be registered with a RowSet object that supports the reader/writer paradigm. Currently, only the CachedRowSet class supports readers and writers.

The RowSetWriter.writeRow() method is called internally by RowSet.acceptChanges() once for each updated, inserted, or deleted row in a rowset to update the value of that row.


Method Summary
 boolean writeData(RowSetInternal caller)
          This method is called to write data to the data source that is backing the rowset.
 

Method Detail

writeData


public boolean writeData(RowSetInternal caller)

                  throws java.sql.SQLException

This method is called to write data to the data source that is backing the rowset.

Parameters:
caller - the calling rowset
Returns:
true if the row was written, false if not due to a conflict
Throws:
java.sql.SQLException - if a database-access error occur