8.3.32 isCloseOnCompletion()
- Organization of this subsection
(1) Function
This method acquires a value that indicates whether the Statement object will be closed when all result sets that depend on the Statement have been closed.
(2) Format
public synchronized boolean isCloseOnCompletion() throws SQLException
(3) Arguments
None.
(4) Return value
This method returns true when the Statement object is closed after all result sets that depend on the Statement object have been closed. It returns false if the object is not closed.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The Statement object is closed.
-
The Connection object that created the Statement object is closed.