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