Package org.hibernate.result.internal
Class OutputsImpl
- java.lang.Object
-
- org.hibernate.result.internal.OutputsImpl
-
- All Implemented Interfaces:
Outputs
- Direct Known Subclasses:
ProcedureOutputsImpl
public class OutputsImpl extends Object implements Outputs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classOutputsImpl.CurrentReturnStateEncapsulates the information needed to interpret the current return within a result
-
Constructor Summary
Constructors Constructor Description OutputsImpl(ResultContext context, PreparedStatement jdbcStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OutputsImpl.CurrentReturnStatebuildCurrentReturnState(boolean isResultSet, int updateCount)protected JDBCExceptionconvert(SQLException e, String message)protected voidexecuteStatement()protected List<Object>extractResults(ResultSet resultSet)OutputgetCurrent()Retrieve the current Output object.protected ResultContextgetResultContext()booleangoToNext()Go to the next Output object (if any), returning an indication of whether there was another (aka, will the next call toOutputs.getCurrent()returnnull?voidrelease()Eagerly release any resources held by this Outputs.
-
-
-
Constructor Detail
-
OutputsImpl
public OutputsImpl(ResultContext context, PreparedStatement jdbcStatement)
-
-
Method Detail
-
getResultContext
protected ResultContext getResultContext()
-
executeStatement
protected void executeStatement()
-
buildCurrentReturnState
protected OutputsImpl.CurrentReturnState buildCurrentReturnState(boolean isResultSet, int updateCount)
-
convert
protected JDBCException convert(SQLException e, String message)
-
getCurrent
public Output getCurrent()
Description copied from interface:OutputsRetrieve the current Output object.- Specified by:
getCurrentin interfaceOutputs- Returns:
- The current Output object. Can be
null
-
goToNext
public boolean goToNext()
Description copied from interface:OutputsGo to the next Output object (if any), returning an indication of whether there was another (aka, will the next call toOutputs.getCurrent()returnnull?- Specified by:
goToNextin interfaceOutputs- Returns:
trueif the next call toOutputs.getCurrent()will return a non-nullvalue.
-
release
public void release()
Description copied from interface:OutputsEagerly release any resources held by this Outputs.
-
-