| org.springframework.jdbc.core.simple.SimpleJdbcInsertOperations
All known Subclasses: org.springframework.jdbc.core.simple.SimpleJdbcInsert,
SimpleJdbcInsertOperations | public interface SimpleJdbcInsertOperations (Code) | | Interface specifying the API for a Simple JDBC Insert implemented by
SimpleJdbcInsert .
This interface is not often used directly, but provides the
option to enhance testability, as it can easily be mocked or stubbed.
author: Thomas Risberg since: 2.5 |
execute | int execute(Map<String, Object> args)(Code) | | Execute the insert using the values passed in.
Parameters: args - Map containing column names and corresponding value the number of rows affected as returned by the JDBC driver |
execute | int execute(SqlParameterSource parameterSource)(Code) | | Execute the insert using the values passed in.
Parameters: parameterSource - SqlParameterSource containing values to use for insert the number of rows affected as returned by the JDBC driver |
executeAndReturnKey | Number executeAndReturnKey(Map<String, Object> args)(Code) | | Execute the insert using the values passed in and return the generated key. This requires that
the name of the columns with auto generated keys have been specified. This method will always
return a key or throw an exception if a key was not returned.
Parameters: args - Map containing column names and corresponding value the generated key value |
executeAndReturnKey | Number executeAndReturnKey(SqlParameterSource parameterSource)(Code) | | Execute the insert using the values passed in and return the generated key. This requires that
the name of the columns with auto generated keys have been specified. This method will always
return a key or throw an exception if a key was not returned.
Parameters: parameterSource - SqlParameterSource containing values to use for insert the generated key value. |
executeAndReturnKeyHolder | KeyHolder executeAndReturnKeyHolder(Map<String, Object> args)(Code) | | Execute the insert using the values passed in and return the generated keys. This requires that
the name of the columns with auto generated keys have been specified. This method will always return
a KeyHolder but the caller must verify that it actually contains the generated keys.
Parameters: args - Map containing column names and corresponding value the KeyHolder containing all generated keys |
executeAndReturnKeyHolder | KeyHolder executeAndReturnKeyHolder(SqlParameterSource parameterSource)(Code) | | Execute the insert using the values passed in and return the generated keys. This requires that
the name of the columns with auto generated keys have been specified. This method will always return
a KeyHolder but the caller must verify that it actually contains the generated keys.
Parameters: parameterSource - SqlParameterSource containing values to use for insert the KeyHolder containing all generated keys |
executeBatch | int[] executeBatch(Map<String, Object>[] batch)(Code) | | Execute a batch insert using the batch of values passed in.
Parameters: batch - an array of Maps containing a batch of column names and corresponding value the array of number of rows affected as returned by the JDBC driver |
executeBatch | int[] executeBatch(SqlParameterSource[] batch)(Code) | | Execute a batch insert using the batch of values passed in.
Parameters: batch - an array of SqlParameterSource containing values for the batch the array of number of rows affected as returned by the JDBC driver |
usingColumns | SimpleJdbcInsertOperations usingColumns(String... columnNames)(Code) | | Specify the column names that the insert statement should be limited to use.
Parameters: columnNames - one or more column names the instance of this SimpleJdbcInsert |
usingGeneratedKeyColumns | SimpleJdbcInsertOperations usingGeneratedKeyColumns(String... columnNames)(Code) | | Specify the name sof any columns that have auto generated keys.
Parameters: columnNames - one or more column names the instance of this SimpleJdbcInsert |
withCatalogName | SimpleJdbcInsertOperations withCatalogName(String catalogName)(Code) | | Specify the catalog name, if any, to be used for the insert.
Parameters: catalogName - the name of the catalog the instance of this SimpleJdbcInsert |
withSchemaName | SimpleJdbcInsertOperations withSchemaName(String schemaName)(Code) | | Specify the shema name, if any, to be used for the insert.
Parameters: schemaName - the name of the schema the instance of this SimpleJdbcInsert |
withTableName | SimpleJdbcInsertOperations withTableName(String tableName)(Code) | | Specify the table name to be used for the insert.
Parameters: tableName - the name of the stored table the instance of this SimpleJdbcInsert |
|
|