public interface DataSetResolver<T>
Defines a mechanism that allows applications to manually
decide what should be done when a synchronization conflict occurs during the
invocation of the sync
method on a disconnected DataSet
Method Summary | |
---|---|
void |
sync()
Propagates modifications made to the conflicting rows contained in a DataSetResolver object
to the underlying data store. |
void |
sync(Connection con)
Propagates modifications made to the conflicting rows contained in a DataSetResolver object
to the underlying data store using the specified Connection
object. |
void |
syncRow()
Propagates modifications made to a conflicted row to the underlying data store. |
void |
syncRow(Connection con)
Propagates modifications made to a conflicted row to the underlying data store using the specified Connection
object. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void syncRow()
Note: The syncRow()
method can only be used by a
DataSetResolver
object whose Query Object instance was created
by calling DataSource.createQueryObject
.
SQLRuntimeException
- if an error occurs writing the row back to the
data source; or the DataSet
which the DataSetResolver
was derived from, was not created from a DataSource
DataSet.sync()
void syncRow(Connection con)
Connection
object.
con
- The connection object to use to synchronize the changes back to the
underlying data store.
SQLRuntimeException
- if an error occurs writing the changes back to the
data sourceDataSet.sync()
void sync()
DataSetResolver
object
to the underlying data store.
Note: The sync()
method can only be used by a
DataSetResolver
object whose Query Object instance was created
by calling DataSource.createQueryObject
.
SQLRuntimeException
- if an error occurs writing the changes back to the
data source; or the DataSet
which the DataSetResolver
was derived from, was not created from a DataSource
DataSet.sync()
void sync(Connection con)
DataSetResolver
object
to the underlying data store using the specified Connection
object.
SQLRuntimeException
- if an error occurs writing the changes back to the
data sourceDataSet.sync()