Class DefaultResultSetHandler
- java.lang.Object
-
- org.apache.ibatis.executor.resultset.DefaultResultSetHandler
-
- All Implemented Interfaces:
ResultSetHandler
public class DefaultResultSetHandler extends Object implements ResultSetHandler
- Author:
- Clinton Begin, Eduardo Macarron, Iwao AVE!, Kazuki Shimizu
-
-
Constructor Summary
Constructors Constructor Description DefaultResultSetHandler(Executor executor, MappedStatement mappedStatement, ParameterHandler parameterHandler, ResultHandler<?> resultHandler, BoundSql boundSql, RowBounds rowBounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkResultHandler()
<E> Cursor<E>
handleCursorResultSets(Statement stmt)
void
handleOutputParameters(CallableStatement cs)
List<Object>
handleResultSets(Statement stmt)
void
handleRowValues(ResultSetWrapper rsw, ResultMap resultMap, ResultHandler<?> resultHandler, RowBounds rowBounds, ResultMapping parentMapping)
ResultMap
resolveDiscriminatedResultMap(ResultSet rs, ResultMap resultMap, String columnPrefix)
-
-
-
Constructor Detail
-
DefaultResultSetHandler
public DefaultResultSetHandler(Executor executor, MappedStatement mappedStatement, ParameterHandler parameterHandler, ResultHandler<?> resultHandler, BoundSql boundSql, RowBounds rowBounds)
-
-
Method Detail
-
handleOutputParameters
public void handleOutputParameters(CallableStatement cs) throws SQLException
- Specified by:
handleOutputParameters
in interfaceResultSetHandler
- Throws:
SQLException
-
handleResultSets
public List<Object> handleResultSets(Statement stmt) throws SQLException
- Specified by:
handleResultSets
in interfaceResultSetHandler
- Throws:
SQLException
-
handleCursorResultSets
public <E> Cursor<E> handleCursorResultSets(Statement stmt) throws SQLException
- Specified by:
handleCursorResultSets
in interfaceResultSetHandler
- Throws:
SQLException
-
handleRowValues
public void handleRowValues(ResultSetWrapper rsw, ResultMap resultMap, ResultHandler<?> resultHandler, RowBounds rowBounds, ResultMapping parentMapping) throws SQLException
- Throws:
SQLException
-
checkResultHandler
protected void checkResultHandler()
-
resolveDiscriminatedResultMap
public ResultMap resolveDiscriminatedResultMap(ResultSet rs, ResultMap resultMap, String columnPrefix) throws SQLException
- Throws:
SQLException
-
-