Abstract class to provide base functionality for easy inserts
based on configuration options and database metadata.
This class provides the base SPI for
SimpleJdbcInsert .
author: Thomas Risberg since: 2.5
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.
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.
throws: org.springframework.dao.InvalidDataAccessApiUsageException - if the object hasn'tbeen correctly initialized, for example if no DataSource has been provided
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 Map of parameters
Parameters: args - Map with parameter names and values to be used in insert number of rows affected
Method that provides execution of the insert using the passed in
SqlParameterSource Parameters: parameterSource - parameter names and values to be used in insert number of rows affected
Method that provides execution of the insert using the passed in Map of parameters
and returning a generated key
Parameters: args - Map with parameter names and values to be used in insert the key generated by the insert
Method that provides execution of the insert using the passed in
SqlParameterSource and returning a generated key
Parameters: parameterSource - parameter names and values to be used in insert the key generated by the insert
Method that provides execution of the insert using the passed in Map of parameters
and returning all generated keys
Parameters: args - Map with parameter names and values to be used in insert the KeyHolder containing keys generated by the insert
Method that provides execution of the insert using the passed in
SqlParameterSource and returning all generated keys
Parameters: parameterSource - parameter names and values to be used in insert the KeyHolder containing keys generated by the insert
Method that provides execution of a batch insert using the passed in Maps of parameters
Parameters: batch - array of Maps with parameter names and values to be used in batch insert array of number of rows affected
Method that provides execution of a batch insert using the passed in array of
SqlParameterSource Parameters: batch - array of SqlParameterSource with parameter names and values to be used in insert array of number of rows affected
Match the provided in parameter values with regitered parameters and parameters defined via metedata
processing.
Parameters: parameterSource - the parameter vakues provided as a SqlParameterSource Map with parameter names and values
Match the provided in parameter values with regitered parameters and parameters defined via metedata
processing.
Parameters: args - the parameter values provided in a Map Map with parameter names and values