接口 net.hasor.jdbc.PreparedStatementCreator
的使用

使用 PreparedStatementCreator 的软件包
net.hasor.jdbc Hasor Jdbc Operations. 
net.hasor.jdbc.core   
net.hasor.jdbc.core.util   
 

net.hasor.jdbcPreparedStatementCreator 的使用
 

参数类型为 PreparedStatementCreatornet.hasor.jdbc 中的方法
<T> T
JdbcOperations.execute(PreparedStatementCreator psc, PreparedStatementCallback<T> action)
          执行一个 JDBC 操作。
<T> T
JdbcOperations.query(PreparedStatementCreator psc, ResultSetExtractor<T> rse)
          执行一个动态查询 SQL 语句。
 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 Java object via a RowMapper.
 int JdbcOperations.update(PreparedStatementCreator psc)
          执行一个更新语句(insert、update、delete),这个查询将会使用 PreparedStatement 接口操作。
 

net.hasor.jdbc.corePreparedStatementCreator 的使用
 

返回 PreparedStatementCreatornet.hasor.jdbc.core 中的方法
protected  PreparedStatementCreator JdbcTemplate.getPreparedStatementCreator(String sql, SqlParameterSource paramSource)
          Build a PreparedStatementCreator based on the given SQL and named parameters.
 

参数类型为 PreparedStatementCreatornet.hasor.jdbc.core 中的方法
<T> T
JdbcTemplate.execute(PreparedStatementCreator psc, PreparedStatementCallback<T> action)
           
<T> T
JdbcTemplate.query(PreparedStatementCreator psc, PreparedStatementSetter pss, ResultSetExtractor<T> rse)
           
<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 JdbcTemplate.update(PreparedStatementCreator psc)
           
 int JdbcTemplate.update(PreparedStatementCreator psc, PreparedStatementSetter pss)
           
 

net.hasor.jdbc.core.utilPreparedStatementCreator 的使用
 

返回 PreparedStatementCreatornet.hasor.jdbc.core.util 中的方法
 PreparedStatementCreator PreparedStatementCreatorFactory.newPreparedStatementCreator(List<?> params)
          Return a new PreparedStatementCreator for the given parameters.
 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.
 



Copyright © 2013-2014. All Rights Reserved.