Class CallableStatementHandler
- java.lang.Object
-
- org.apache.ibatis.executor.statement.BaseStatementHandler
-
- org.apache.ibatis.executor.statement.CallableStatementHandler
-
- All Implemented Interfaces:
StatementHandler
public class CallableStatementHandler extends BaseStatementHandler
- Author:
- Clinton Begin
-
-
Field Summary
-
Fields inherited from class org.apache.ibatis.executor.statement.BaseStatementHandler
boundSql, configuration, executor, mappedStatement, objectFactory, parameterHandler, resultSetHandler, rowBounds, typeHandlerRegistry
-
-
Constructor Summary
Constructors Constructor Description CallableStatementHandler(Executor executor, MappedStatement mappedStatement, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
Method Summary
Modifier and Type Method Description voidbatch(java.sql.Statement statement)protected java.sql.StatementinstantiateStatement(java.sql.Connection connection)voidparameterize(java.sql.Statement statement)<E> java.util.List<E>query(java.sql.Statement statement, ResultHandler resultHandler)<E> Cursor<E>queryCursor(java.sql.Statement statement)intupdate(java.sql.Statement statement)-
Methods inherited from class org.apache.ibatis.executor.statement.BaseStatementHandler
closeStatement, generateKeys, getBoundSql, getParameterHandler, prepare, setFetchSize, setStatementTimeout
-
-
-
-
Constructor Detail
-
CallableStatementHandler
public CallableStatementHandler(Executor executor, MappedStatement mappedStatement, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
-
Method Detail
-
update
public int update(java.sql.Statement statement) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
batch
public void batch(java.sql.Statement statement) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
query
public <E> java.util.List<E> query(java.sql.Statement statement, ResultHandler resultHandler) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
queryCursor
public <E> Cursor<E> queryCursor(java.sql.Statement statement) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
instantiateStatement
protected java.sql.Statement instantiateStatement(java.sql.Connection connection) throws java.sql.SQLException- Specified by:
instantiateStatementin classBaseStatementHandler- Throws:
java.sql.SQLException
-
parameterize
public void parameterize(java.sql.Statement statement) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-