isClosed()

Syntax:

boolean isClosed()
                 throws SQLException

Description:

Retrieves whether this Statement object has been closed. A Statement is closed if the method close has been called on it, or if it is automatically closed.

Returns:

true if this Statement object is closed; false if it is still open

Throws:

SQLException - if a database access error occurs

Reference:

For more information, reference JDBC documentation for: Statement.isClosed()