getConnection()

Syntax:

Connection getConnection()
                         throws SQLException

Description:

Retrieves the Connection object that produced this Statement object.

Returns:

the connection that produced this statement

Throws:

SQLException - if a database access error occurs or the statement has been closed

Reference:

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