Class RoutingStatementHandler
- java.lang.Object
-
- org.apache.ibatis.executor.statement.RoutingStatementHandler
-
- All Implemented Interfaces:
StatementHandler
public class RoutingStatementHandler extends Object implements StatementHandler
- Author:
- Clinton Begin
-
-
Constructor Summary
Constructors Constructor Description RoutingStatementHandler(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batch(Statement statement)
BoundSql
getBoundSql()
ParameterHandler
getParameterHandler()
void
parameterize(Statement statement)
Statement
prepare(Connection connection, Integer transactionTimeout)
<E> List<E>
query(Statement statement, ResultHandler resultHandler)
<E> Cursor<E>
queryCursor(Statement statement)
int
update(Statement statement)
-
-
-
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, Integer transactionTimeout) throws SQLException
- Specified by:
prepare
in interfaceStatementHandler
- Throws:
SQLException
-
parameterize
public void parameterize(Statement statement) throws SQLException
- Specified by:
parameterize
in interfaceStatementHandler
- Throws:
SQLException
-
batch
public void batch(Statement statement) throws SQLException
- Specified by:
batch
in interfaceStatementHandler
- Throws:
SQLException
-
update
public int update(Statement statement) throws SQLException
- Specified by:
update
in interfaceStatementHandler
- Throws:
SQLException
-
query
public <E> List<E> query(Statement statement, ResultHandler resultHandler) throws SQLException
- Specified by:
query
in interfaceStatementHandler
- Throws:
SQLException
-
queryCursor
public <E> Cursor<E> queryCursor(Statement statement) throws SQLException
- Specified by:
queryCursor
in interfaceStatementHandler
- Throws:
SQLException
-
getBoundSql
public BoundSql getBoundSql()
- Specified by:
getBoundSql
in interfaceStatementHandler
-
getParameterHandler
public ParameterHandler getParameterHandler()
- Specified by:
getParameterHandler
in interfaceStatementHandler
-
-