Hitachi

Hitachi Advanced Database Application Development Guide


8.2.28 prepareStatement(String sql, int resultSetType, int resultSetConcurrency)

Organization of this subsection

(1) Function

This method creates a PreparedStatement object for sending an SQL statement with parameters to the HADB server.

(2) Format

public synchronized PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException

(3) Arguments

String sql

Specifies the SQL statement that is to be executed.

int resultSetType

Specifies a result set type.

int resultSetConcurrency

Specifies the concurrent processing mode.

(4) Return value

The method returns the PreparedStatement object.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases:

(6) Notes