开发者

JDBC: default holdability of a ResultSet

开发者 https://www.devze.com 2023-01-13 20:37 出处:网络
is there a defined default for the holdability of ResultSet, if Connection.setHoldability() is never invoked or a holdability is never specified during the creation of a statement?

is there a defined default for the holdability of ResultSet, if Connection.setHoldability() is never invoked or a holdability is never specified during the creation of a statement?

I could not find anything in the JDBC api docs - 开发者_如何学Cso is it implementation specific?

Thank you.


"The default holdability property of a ResultSet object is implementation defined. The default holdability of ResultSet objects returned by the underlying data source can be determined using the APIs provided by JDBC 3.0."

Please see this link for reference.


The default holdability is implementation specific, but you can get the default holdability by calling the getResultSetHoldability method on the DatabaseMetaData for the Connection.

You can also see section 6.1.9 in the Oracle / Sun JDBC docs for details: http://download.oracle.com/javase/1.4.2/docs/guide/jdbc/getstart/resultset.html

0

精彩评论

暂无评论...
验证码 换一张
取 消