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, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler)
           
 
Method Summary
 void batch(java.sql.Statement statement)
           
protected  java.sql.Statement instantiateStatement(java.sql.Connection connection)
           
 void parameterize(java.sql.Statement statement)
           
 java.util.List query(java.sql.Statement statement, ResultHandler resultHandler)
           
 int update(java.sql.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,
                              java.lang.Object parameter,
                              RowBounds rowBounds,
                              ResultHandler resultHandler)
Method Detail

update

public int update(java.sql.Statement statement)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

batch

public void batch(java.sql.Statement statement)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

query

public java.util.List query(java.sql.Statement statement,
                            ResultHandler resultHandler)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

instantiateStatement

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

parameterize

public void parameterize(java.sql.Statement statement)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2010. All Rights Reserved.