接口 PreparedStatementCreator

    • 方法详细资料

      • createPreparedStatement

        PreparedStatement createPreparedStatement​(Connection con)
                                           throws SQLException
        Create a statement in this connection. Allows implementations to use PreparedStatements. The JdbcTemplate will close the created statement.
        参数:
        con - Connection to use to create statement
        返回:
        a prepared statement
        抛出:
        SQLException - there is no need to catch SQLExceptions that may be thrown in the implementation of this method. The JdbcTemplate class will handle them.