org.apache.ibatis.executor.statement
Class PreparedStatementHandler

java.lang.Object
  extended by org.apache.ibatis.executor.statement.BaseStatementHandler
      extended by org.apache.ibatis.executor.statement.PreparedStatementHandler
All Implemented Interfaces:
StatementHandler

public class PreparedStatementHandler
extends BaseStatementHandler


Field Summary
 
Fields inherited from class org.apache.ibatis.executor.statement.BaseStatementHandler
boundSql, configuration, executor, mappedStatement, objectFactory, parameterHandler, resultSetHandler, rowBounds, typeHandlerRegistry
 
Constructor Summary
PreparedStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
           
 
Method Summary
 void batch(Statement statement)
           
protected  Statement instantiateStatement(Connection connection)
           
 void parameterize(Statement statement)
           
<E> List<E>
query(Statement statement, ResultHandler resultHandler)
           
 int update(Statement statement)
           
 
Methods inherited from class org.apache.ibatis.executor.statement.BaseStatementHandler
closeStatement, generateKeys, getBoundSql, getParameterHandler, prepare, setFetchSize, setStatementTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementHandler

public PreparedStatementHandler(Executor executor,
                                MappedStatement mappedStatement,
                                Object parameter,
                                RowBounds rowBounds,
                                ResultHandler resultHandler,
                                BoundSql boundSql)
Method Detail

update

public int update(Statement statement)
           throws SQLException
Throws:
SQLException

batch

public void batch(Statement statement)
           throws SQLException
Throws:
SQLException

query

public <E> List<E> query(Statement statement,
                         ResultHandler resultHandler)
              throws SQLException
Throws:
SQLException

instantiateStatement

protected Statement instantiateStatement(Connection connection)
                                  throws SQLException
Specified by:
instantiateStatement in class BaseStatementHandler
Throws:
SQLException

parameterize

public void parameterize(Statement statement)
                  throws SQLException
Throws:
SQLException


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.