org.apache.ibatis.executor.statement
Class BaseStatementHandler

java.lang.Object
  extended by org.apache.ibatis.executor.statement.BaseStatementHandler
All Implemented Interfaces:
StatementHandler
Direct Known Subclasses:
CallableStatementHandler, PreparedStatementHandler, SimpleStatementHandler

public abstract class BaseStatementHandler
extends Object
implements StatementHandler


Field Summary
protected  BoundSql boundSql
           
protected  Configuration configuration
           
protected  Executor executor
           
protected  MappedStatement mappedStatement
           
protected  ObjectFactory objectFactory
           
protected  ParameterHandler parameterHandler
           
protected  ResultSetHandler resultSetHandler
           
protected  RowBounds rowBounds
           
protected  TypeHandlerRegistry typeHandlerRegistry
           
 
Constructor Summary
protected BaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
           
 
Method Summary
protected  void closeStatement(Statement statement)
           
protected  void generateKeys(Object parameter)
           
 BoundSql getBoundSql()
           
 ParameterHandler getParameterHandler()
           
protected abstract  Statement instantiateStatement(Connection connection)
           
 Statement prepare(Connection connection)
           
protected  void setFetchSize(Statement stmt)
           
protected  void setStatementTimeout(Statement stmt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ibatis.executor.statement.StatementHandler
batch, parameterize, query, update
 

Field Detail

configuration

protected final Configuration configuration

objectFactory

protected final ObjectFactory objectFactory

typeHandlerRegistry

protected final TypeHandlerRegistry typeHandlerRegistry

resultSetHandler

protected final ResultSetHandler resultSetHandler

parameterHandler

protected final ParameterHandler parameterHandler

executor

protected final Executor executor

mappedStatement

protected final MappedStatement mappedStatement

rowBounds

protected final RowBounds rowBounds

boundSql

protected BoundSql boundSql
Constructor Detail

BaseStatementHandler

protected BaseStatementHandler(Executor executor,
                               MappedStatement mappedStatement,
                               Object parameterObject,
                               RowBounds rowBounds,
                               ResultHandler resultHandler,
                               BoundSql boundSql)
Method Detail

getBoundSql

public BoundSql getBoundSql()
Specified by:
getBoundSql in interface StatementHandler

getParameterHandler

public ParameterHandler getParameterHandler()
Specified by:
getParameterHandler in interface StatementHandler

prepare

public Statement prepare(Connection connection)
                  throws SQLException
Specified by:
prepare in interface StatementHandler
Throws:
SQLException

instantiateStatement

protected abstract Statement instantiateStatement(Connection connection)
                                           throws SQLException
Throws:
SQLException

setStatementTimeout

protected void setStatementTimeout(Statement stmt)
                            throws SQLException
Throws:
SQLException

setFetchSize

protected void setFetchSize(Statement stmt)
                     throws SQLException
Throws:
SQLException

closeStatement

protected void closeStatement(Statement statement)

generateKeys

protected void generateKeys(Object parameter)


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