类 SimpleJdbcInsert

  • 所有已实现的接口:
    SimpleJdbcInsertOperations

    public class SimpleJdbcInsert
    extends AbstractJdbcInsert
    implements SimpleJdbcInsertOperations
    A SimpleJdbcInsert is a multi-threaded, reusable object providing easy insert capabilities for a table. It provides meta-data processing to simplify the code needed to construct a basic insert statement. All you need to provide is the name of the table and a Map containing the column names and the column values.

    The meta-data processing is based on the DatabaseMetaData provided by the JDBC driver. As long as the JDBC driver can provide the names of the columns for a specified table than we can rely on this auto-detection feature. If that is not the case, then the column names must be specified explicitly.

    The actual insert is being handled using Spring's JdbcTemplate.

    Many of the configuration methods return the current instance of the SimpleJdbcInsert to provide the ability to chain multiple ones together in a "fluent" interface style.

    从以下版本开始:
    2.5
    作者:
    Thomas Risberg, Juergen Hoeller
    另请参阅:
    DatabaseMetaData, JdbcTemplate