Tuesday, November 29, 2011

What JDBC objects generate SQLWarnings?

Connections, Statements and ResultSets all have a getWarnings method that allows retrieval. Keep in mind that prior ResultSet warnings are cleared on each new read and prior Statement warnings are cleared with each new execution. getWarnings() itself does not clear existing warnings, but each object has a clearWarnings method.
Category:JDBC Interview Questions

No comments:

Post a Comment