Statements and PreparedStatements
on behalf of a JdbcCoordinator.
JdbcCoordinator#getStatementPreparer()
| Modifier and Type | Method and Description |
|---|---|
| public Statement | |
| public PreparedStatement | Returns: the prepared statementThe SQL the statement to be prepared sql, boolean Whether to prepare as a callable statement. isCallable, ScrollMode (optional) scroll mode to be applied to the resulting result set; may be null to indicate
no scrolling should be applied. scrollMode)Get a prepared statement for use in loading / querying. |
| public PreparedStatement | Returns: the prepared statementThe SQL the statement to be prepared sql)Prepare a statement. |
| public PreparedStatement | Returns: the prepared statementThe SQL the statement to be prepared sql, boolean Whether to prepare as a callable statement. isCallable)Prepare a statement. |
| public PreparedStatement | Returns: the prepared statementThe INSERT SQL sql, int The autoGeneratedKeys flag autoGeneratedKeys)Prepare an INSERT statement, specifying how auto-generated (by the database) keys should be handled. |
| public PreparedStatement | Returns: the prepared statement- the SQL for the statement to be prepared sql, String[] The name of the columns to be returned in the generated keys result set. columnNames)Prepare an INSERT statement, specifying columns which are auto-generated values to be returned. |
| createStatement | back to summary |
|---|---|
| public Statement createStatement() Create a statement.
| |
| prepareQueryStatement | back to summary |
|---|---|
| public PreparedStatement prepareQueryStatement(String sql, boolean isCallable, ScrollMode scrollMode) Get a prepared statement for use in loading / querying.
| |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql) Prepare a statement.
| |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql, boolean isCallable) Prepare a statement.
| |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) Prepare an INSERT statement, specifying how auto-generated (by the database) keys should be handled. Really this is a boolean, but JDBC opted to define it instead using 2 int constants:
Generated keys are accessed afterwards via
| |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql, String[] columnNames) Prepare an INSERT statement, specifying columns which are auto-generated values to be returned.
Generated keys are accessed afterwards via
| |