public abstract Connection getConnection () throws SQLException

Retrieves the Connection object that produced this Statement object.

Returns:  the connection that produced this statement

Exceptions:
SQLException    if a database access error occurs or this method is called on a closed Statement

Since:  1.2