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 java.lang.Object
implements StatementHandler


Constructor Summary
RoutingStatementHandler(Executor executor, MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler)
           
 
Method Summary
 void batch(java.sql.Statement statement)
           
 BoundSql getBoundSql()
           
 ParameterHandler getParameterHandler()
           
 void parameterize(java.sql.Statement statement)
           
 java.sql.Statement prepare(java.sql.Connection connection)
           
 java.util.List query(java.sql.Statement statement, ResultHandler resultHandler)
           
 int update(java.sql.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,
                               java.lang.Object parameter,
                               RowBounds rowBounds,
                               ResultHandler resultHandler)
Method Detail

prepare

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

parameterize

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

batch

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

update

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

query

public java.util.List query(java.sql.Statement statement,
                            ResultHandler resultHandler)
                     throws java.sql.SQLException
Specified by:
query in interface StatementHandler
Throws:
java.sql.SQLException

getBoundSql

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

getParameterHandler

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


Copyright © 2010. All Rights Reserved.