org.springframework.jdbc.core.simple.SimpleJdbcInsertOperations |
Known Indirect Subclasses |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Execute the insert using the values passed in.
| |||||||||||
Execute the insert using the values passed in.
| |||||||||||
Execute the insert using the values passed in and return the generated key.
| |||||||||||
Execute the insert using the values passed in and return the generated key.
| |||||||||||
Execute the insert using the values passed in and return the generated keys.
| |||||||||||
Execute the insert using the values passed in and return the generated keys.
| |||||||||||
Execute a batch insert using the batch of values passed in.
| |||||||||||
Execute a batch insert using the batch of values passed in.
| |||||||||||
Include synonyms for the column meta data lookups via JDBC.
| |||||||||||
Use a the provided NativeJdbcExtractor during the column meta data
lookups via JDBC.
| |||||||||||
Specify the column names that the insert statement should be limited to use.
| |||||||||||
Specify the name sof any columns that have auto generated keys.
| |||||||||||
Specify the catalog name, if any, to be used for the insert.
| |||||||||||
Specify the shema name, if any, to be used for the insert.
| |||||||||||
Specify the table name to be used for the insert.
| |||||||||||
Turn off any processing of column meta data information obtained via JDBC.
|
Execute the insert using the values passed in.
args | Map containing column names and corresponding value |
---|
Execute the insert using the values passed in.
parameterSource | SqlParameterSource containing values to use for insert |
---|
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.
parameterSource | SqlParameterSource containing values to use for insert |
---|
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.
args | Map containing column names and corresponding value |
---|
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.
parameterSource | SqlParameterSource containing values to use for insert |
---|
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.
args | Map containing column names and corresponding value |
---|
Execute a batch insert using the batch of values passed in.
batch | an array of SqlParameterSource containing values for the batch |
---|
Execute a batch insert using the batch of values passed in.
batch | an array of Maps containing a batch of column names and corresponding value |
---|
Include synonyms for the column meta data lookups via JDBC. Note: this is only necessary to include for Oracle since other databases supporting synonyms seems to include the synonyms automatically.
Use a the provided NativeJdbcExtractor during the column meta data lookups via JDBC. Note: this is only necessary to include when running with a connection pool that wraps the meta data connection and when using a database like Oracle where it is necessary to access the native connection to include synonyms.
Specify the column names that the insert statement should be limited to use.
columnNames | one or more column names |
---|
Specify the name sof any columns that have auto generated keys.
columnNames | one or more column names |
---|
Specify the catalog name, if any, to be used for the insert.
catalogName | the name of the catalog |
---|
Specify the shema name, if any, to be used for the insert.
schemaName | the name of the schema |
---|
Specify the table name to be used for the insert.
tableName | the name of the stored table |
---|
Turn off any processing of column meta data information obtained via JDBC.