org.apache.ibatis.executor.statement
Class SimpleStatementHandler

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

public class SimpleStatementHandler
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
SimpleStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter, RowBounds rowBounds, ResultHandler resultHandler)
           
 
Method Summary
 void batch(Statement statement)
           
protected  Statement instantiateStatement(Connection connection)
           
 void parameterize(Statement statement)
           
 List query(Statement statement, ResultHandler resultHandler)
           
 int update(Statement statement)
           
 
Methods inherited from class org.apache.ibatis.executor.statement.BaseStatementHandler
closeStatement, getBoundSql, getParameterHandler, prepare, rebindGeneratedKey, setFetchSize, setStatementTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStatementHandler

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

update

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

batch

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

query

public List 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-2011 MyBatis.org. All Rights Reserved.