Package javax.sql
Interface RowSetWriter
-
public interface RowSetWriterAn interface which provides functionality for a disconnectedRowSetto put data updates back to the data source from which theRowSetwas 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. TheRowSetcalling this interface must implement theRowSetInternalinterface.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:
RowSetInternal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanwriteData(RowSetInternal theRowSet)Writes changes made in theRowSet, which is associated with thisRowSetWriter, back to the database.
-
-
-
Method Detail
-
writeData
boolean writeData(RowSetInternal theRowSet) throws SQLException
Writes changes made in theRowSet, which is associated with thisRowSetWriter, back to the database.- Parameters:
theRowSet- a row set that fulfills the following criteria:- it must implement the
RowSetInternalinterface, - have this
RowSetWriterregistered with it, - must call this method internally.
- it must implement the
- Returns:
trueif the modified data was written,falseotherwise (which typically implies some form of conflict).- Throws:
SQLException- if a problem occurs accessing the database.
-
-