DEVFYI - Developer Resource - FYI

How can I determine whether a Statement and its ResultSet will be closed on a commit or rollback?

JDBC Interview Questions and Answers


(Continued from previous question...)

How can I determine whether a Statement and its ResultSet will be closed on a commit or rollback?

Use the DatabaseMetaData methods supportsOpenStatementsAcrossCommit() and supportsOpenStatementsAcrossRollback().

(Continued on next question...)

Other Interview Questions