Class PreparedStatementHandler
- java.lang.Object
-
- org.apache.ibatis.executor.statement.BaseStatementHandler
-
- org.apache.ibatis.executor.statement.PreparedStatementHandler
-
- All Implemented Interfaces:
StatementHandler
public class PreparedStatementHandler 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 PreparedStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbatch(Statement statement)protected StatementinstantiateStatement(Connection connection)voidparameterize(Statement statement)<E> List<E>query(Statement statement, ResultHandler resultHandler)<E> Cursor<E>queryCursor(Statement statement)intupdate(Statement statement)-
Methods inherited from class org.apache.ibatis.executor.statement.BaseStatementHandler
closeStatement, generateKeys, getBoundSql, getParameterHandler, prepare, setFetchSize, setStatementTimeout
-
-
-
-
Constructor Detail
-
PreparedStatementHandler
public PreparedStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
-
Method Detail
-
update
public int update(Statement statement) throws SQLException
- Throws:
SQLException
-
batch
public void batch(Statement statement) throws SQLException
- Throws:
SQLException
-
query
public <E> List<E> query(Statement statement, ResultHandler resultHandler) throws SQLException
- Throws:
SQLException
-
queryCursor
public <E> Cursor<E> queryCursor(Statement statement) throws SQLException
- Throws:
SQLException
-
instantiateStatement
protected Statement instantiateStatement(Connection connection) throws SQLException
- Specified by:
instantiateStatementin classBaseStatementHandler- Throws:
SQLException
-
parameterize
public void parameterize(Statement statement) throws SQLException
- Throws:
SQLException
-
-