接口的使用
org.springframework.jdbc.core.PreparedStatementCreator
使用PreparedStatementCreator的程序包 程序包 说明 org.springframework.jdbc.core Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.org.springframework.jdbc.core.namedparam JdbcTemplate variant with named parameter support.org.springframework.jdbc.object The classes in this package represent RDBMS queries, updates, and stored procedures as threadsafe, reusable objects.org.springframework.jdbc.core中PreparedStatementCreator的使用
返回PreparedStatementCreator的org.springframework.jdbc.core中的方法 修饰符和类型 方法 说明 PreparedStatementCreator
PreparedStatementCreatorFactory. newPreparedStatementCreator(Object[] params)
Return a new PreparedStatementCreator for the given parameters.PreparedStatementCreator
PreparedStatementCreatorFactory. newPreparedStatementCreator(String sqlToUse, Object[] params)
Return a new PreparedStatementCreator for the given parameters.PreparedStatementCreator
PreparedStatementCreatorFactory. newPreparedStatementCreator(List<?> params)
Return a new PreparedStatementCreator for the given parameters.参数类型为PreparedStatementCreator的org.springframework.jdbc.core中的方法 修饰符和类型 方法 说明 <T> T
JdbcOperations. execute(PreparedStatementCreator psc, PreparedStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action working on a JDBC PreparedStatement.<T> T
JdbcTemplate. execute(PreparedStatementCreator psc, PreparedStatementCallback<T> action)
<T> T
JdbcOperations. query(PreparedStatementCreator psc, ResultSetExtractor<T> rse)
Query using a prepared statement, reading the ResultSet with a ResultSetExtractor.void
JdbcOperations. query(PreparedStatementCreator psc, RowCallbackHandler rch)
Query using a prepared statement, reading the ResultSet on a per-row basis with a RowCallbackHandler.<T> List<T>
JdbcOperations. query(PreparedStatementCreator psc, RowMapper<T> rowMapper)
Query using a prepared statement, mapping each row to a result object via a RowMapper.<T> T
JdbcTemplate. query(PreparedStatementCreator psc, PreparedStatementSetter pss, ResultSetExtractor<T> rse)
Query using a prepared statement, allowing for a PreparedStatementCreator and a PreparedStatementSetter.<T> T
JdbcTemplate. query(PreparedStatementCreator psc, ResultSetExtractor<T> rse)
void
JdbcTemplate. query(PreparedStatementCreator psc, RowCallbackHandler rch)
<T> List<T>
JdbcTemplate. query(PreparedStatementCreator psc, RowMapper<T> rowMapper)
int
JdbcOperations. update(PreparedStatementCreator psc)
Issue a single SQL update operation (such as an insert, update or delete statement) using a PreparedStatementCreator to provide SQL and any required parameters.int
JdbcOperations. update(PreparedStatementCreator psc, KeyHolder generatedKeyHolder)
Issue an update statement using a PreparedStatementCreator to provide SQL and any required parameters.int
JdbcTemplate. update(PreparedStatementCreator psc)
protected int
JdbcTemplate. update(PreparedStatementCreator psc, PreparedStatementSetter pss)
int
JdbcTemplate. update(PreparedStatementCreator psc, KeyHolder generatedKeyHolder)
org.springframework.jdbc.core.namedparam中PreparedStatementCreator的使用
返回PreparedStatementCreator的org.springframework.jdbc.core.namedparam中的方法 修饰符和类型 方法 说明 protected PreparedStatementCreator
NamedParameterJdbcTemplate. getPreparedStatementCreator(String sql, SqlParameterSource paramSource)
Build aPreparedStatementCreator
based on the given SQL and named parameters.protected PreparedStatementCreator
NamedParameterJdbcTemplate. getPreparedStatementCreator(String sql, SqlParameterSource paramSource, Consumer<PreparedStatementCreatorFactory> customizer)
Build aPreparedStatementCreator
based on the given SQL and named parameters.org.springframework.jdbc.object中PreparedStatementCreator的使用
返回PreparedStatementCreator的org.springframework.jdbc.object中的方法 修饰符和类型 方法 说明 protected PreparedStatementCreator
SqlOperation. newPreparedStatementCreator(Object[] params)
Return a PreparedStatementCreator to perform an operation with the given parameters.protected PreparedStatementCreator
SqlOperation. newPreparedStatementCreator(String sqlToUse, Object[] params)
Return a PreparedStatementCreator to perform an operation with the given parameters.