8.3.14 getConnection()
- Organization of this subsection
(1) Function
This method returns the Connection object that created the Statement object.
(2) Format
public synchronized Connection getConnection() throws SQLException
(3) Arguments
None.
(4) Return value
The method returns a Connection object.
(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.