org.apache.ibatis.executor.statement
Class RoutingStatementHandler

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

public class RoutingStatementHandler
extends Object
implements StatementHandler


Constructor Summary
RoutingStatementHandler(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
           
 
Method Summary
 void batch(Statement statement)
           
 BoundSql getBoundSql()
           
 ParameterHandler getParameterHandler()
           
 void parameterize(Statement statement)
           
 Statement prepare(Connection connection)
           
<E> List<E>
query(Statement statement, ResultHandler resultHandler)
           
 int update(Statement statement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingStatementHandler

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

prepare

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

parameterize

public void parameterize(Statement statement)
                  throws SQLException
Specified by:
parameterize in interface StatementHandler
Throws:
SQLException

batch

public void batch(Statement statement)
           throws SQLException
Specified by:
batch in interface StatementHandler
Throws:
SQLException

update

public int update(Statement statement)
           throws SQLException
Specified by:
update in interface StatementHandler
Throws:
SQLException

query

public <E> List<E> query(Statement statement,
                         ResultHandler resultHandler)
              throws SQLException
Specified by:
query in interface StatementHandler
Throws:
SQLException

getBoundSql

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

getParameterHandler

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


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