dcsimg

When is a Statement considered complete?

Joe Sam Shirah

See 4.1.3 Statement Completion in the JDK documentation.

Note that, for a default ResultSet, the Statement is not complete until all rows have been retrieved. However, this can be affected by the state of autocommit and the capabilities of the driver. See: How can I determine whether a Statement and its ResultSet will be closed on a commit or rollback?