public interface RowSetWriter
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.
RowSetInternal
Modifier and Type | Method and Description |
---|---|
boolean |
writeData(RowSetInternal theRowSet)
Writes changes made in the
RowSet , which is associated with this
RowSetWriter , back to the database. |
boolean writeData(RowSetInternal theRowSet) throws SQLException
RowSet
, which is associated with this
RowSetWriter
, back to the database.theRowSet
- a row set that fulfills the following criteria:
RowSetInternal
interface,RowSetWriter
registered with it,true
if the modified data was written, false
otherwise (which typically implies some form of conflict).SQLException
- if a problem occurs accessing the database.