public interface RowSetWriter
RowSetWriter
接口的对象,称为作家。一个作家可能与一个支持读/写范式
RowSet
对象注册。
如果断开RowSet
对象修改它的一些数据,它有一个作家与它相关联的,它可以实现,它要求作家的writeData
方法内部写回数据源的更新。为了做到这一点,作家必须首先建立与数据集的数据源的连接。
如果要更新的数据已在数据源中更改,则会发生冲突,在这种情况下,作者将不会将更改写入数据源的情况下。作者用于防止或限制冲突的算法,完全取决于它的实现。
Modifier and Type | Method and Description |
---|---|
boolean |
writeData(RowSetInternal caller)
写这
RowSetWriter 对象的行集的变回数据源从它得到的数据。
|
boolean writeData(RowSetInternal caller) throws SQLException
RowSetWriter
对象的行集的变回数据源从它得到的数据。
caller
-
RowSet
对象(1),实现了
RowSetInternal
接口,(2),作者是注册,和(3),称为该方法的内部
true
如果修改后的数据写入;
false
如果没有的话,这将是如果有冲突
SQLException
-如果一个数据库访问错误发生
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.