8.2.5 createStatement()
- Organization of this subsection
(1) Function
This method creates a Statement object for sending an SQL statement to the HADB server.
(2) Format
public synchronized Statement createStatement() throws SQLException
(3) Arguments
None.
(4) Return value
The method returns the Statement object.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The Connection object is closed.
-
Creation of the Statement object resulted in an error.
-
A database access error occurs.
(6) Notes
The holdability of a ResultSet object generated from the Statement object created by this method is always ResultSet.HOLD_CURSORS_OVER_COMMIT.