java.lang.Object | |
↳ | org.springframework.jdbc.core.simple.AbstractJdbcInsert |
Known Direct Subclasses |
Abstract class to provide base functionality for easy inserts
based on configuration options and database metadata.
This class provides the base SPI for SimpleJdbcInsert
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for sublasses to delegate to for setting the DataSource.
| |||||||||||
Constructor for sublasses to delegate to for setting the JdbcTemplate.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compile this JdbcInsert using provided parameters and meta data plus other settings.
| |||||||||||
Get the name of the catalog for this insert
| |||||||||||
Get the names of the columns used
| |||||||||||
Get the names of any generated keys
| |||||||||||
Get the insert string to be used
| |||||||||||
Get the array of java.sql.Types to be used for insert
| |||||||||||
Get the name of the schema for this insert
| |||||||||||
Get the name of the table for this insert
| |||||||||||
Is this operation "compiled"?
| |||||||||||
Specify whether the parameter metadata for the call should be used.
| |||||||||||
Set the name of the catalog for this insert
| |||||||||||
Set the names of the columns to be used
| |||||||||||
Specify the name of a single generated key column
| |||||||||||
Set the names of any generated keys
| |||||||||||
Set the
NativeJdbcExtractor to use to retrieve the native connection if necessary
| |||||||||||
Specify whether the default for including synonyms should be changed.
| |||||||||||
Set the name of the schema for this insert
| |||||||||||
Set the name of the table for this insert
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check whether this operation has been compiled already;
lazily compile it if not already compiled.
| |||||||||||
Method to check whether we are allowd to make any configuration changes at this time.
| |||||||||||
Method to perform the actual compilation.
| |||||||||||
Method that provides execution of the insert using the passed in
SqlParameterSource | |||||||||||
Method that provides execution of the insert using the passed in Map of parameters
| |||||||||||
Method that provides execution of the insert using the passed in
SqlParameterSource
and returning a generated key | |||||||||||
Method that provides execution of the insert using the passed in Map of parameters
and returning a generated key
| |||||||||||
Method that provides execution of the insert using the passed in
SqlParameterSource
and returning all generated keys | |||||||||||
Method that provides execution of the insert using the passed in Map of parameters
and returning all generated keys
| |||||||||||
Method that provides execution of a batch insert using the passed in array of
SqlParameterSource | |||||||||||
Method that provides execution of a batch insert using the passed in Maps of parameters
| |||||||||||
Get the
JdbcTemplate that is configured to be used
| |||||||||||
Match the provided in parameter values with regitered parameters and parameters defined via metedata
processing.
| |||||||||||
Match the provided in parameter values with regitered parameters and parameters defined via metedata
processing.
| |||||||||||
Hook method that subclasses may override to react to compilation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Logger available to subclasses
Constructor for sublasses to delegate to for setting the DataSource.
Constructor for sublasses to delegate to for setting the JdbcTemplate.
Compile this JdbcInsert using provided parameters and meta data plus other settings. This finalizes the configuration for this object and subsequent attempts to compile are ignored. This will be implicitly called the first time an un-compiled insert is executed.
InvalidDataAccessApiUsageException | if the object hasn't been correctly initialized, for example if no DataSource has been provided |
---|
Get the array of java.sql.Types to be used for insert
Is this operation "compiled"?
Specify whether the parameter metadata for the call should be used. The default is true.
Specify the name of a single generated key column
Set the NativeJdbcExtractor
to use to retrieve the native connection if necessary
Specify whether the default for including synonyms should be changed. The default is false.
Check whether this operation has been compiled already; lazily compile it if not already compiled.
Automatically called by validateParameters
.
Method to check whether we are allowd to make any configuration changes at this time. If the class has been compiled, then no further changes to the configuration are allowed.
Method to perform the actual compilation. Subclasses can override this template method to perform their own compilation. Invoked after this base class's compilation is complete.
Method that provides execution of the insert using the passed in SqlParameterSource
parameterSource | parameter names and values to be used in insert |
---|
Method that provides execution of the insert using the passed in Map of parameters
args | Map with parameter names and values to be used in insert |
---|
Method that provides execution of the insert using the passed in SqlParameterSource
and returning a generated key
parameterSource | parameter names and values to be used in insert |
---|
Method that provides execution of the insert using the passed in Map of parameters and returning a generated key
args | Map with parameter names and values to be used in insert |
---|
Method that provides execution of the insert using the passed in SqlParameterSource
and returning all generated keys
parameterSource | parameter names and values to be used in insert |
---|
Method that provides execution of the insert using the passed in Map of parameters and returning all generated keys
args | Map with parameter names and values to be used in insert |
---|
Method that provides execution of a batch insert using the passed in array of SqlParameterSource
batch | array of SqlParameterSource with parameter names and values to be used in insert |
---|
Method that provides execution of a batch insert using the passed in Maps of parameters
batch | array of Maps with parameter names and values to be used in batch insert |
---|
Match the provided in parameter values with regitered parameters and parameters defined via metedata processing.
args | the parameter values provided in a Map |
---|
Match the provided in parameter values with regitered parameters and parameters defined via metedata processing.
parameterSource | the parameter vakues provided as a SqlParameterSource |
---|
Hook method that subclasses may override to react to compilation. This implementation does nothing.