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, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
Method Summary
Modifier and Type Method Description void
batch(java.sql.Statement statement)
protected java.sql.Statement
instantiateStatement(java.sql.Connection connection)
void
parameterize(java.sql.Statement statement)
<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)
-
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, 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:
instantiateStatement
in classBaseStatementHandler
- Throws:
java.sql.SQLException
-
parameterize
public void parameterize(java.sql.Statement statement) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-