PreparedStatements related to mutations
on behalf of a JdbcCoordinator.
JdbcCoordinator#getMutationStatementPreparer()
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| 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
| |