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 class
OutputsImpl.CurrentReturnState
Encapsulates 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.CurrentReturnState
buildCurrentReturnState(boolean isResultSet, int updateCount)
protected JDBCException
convert(SQLException e, String message)
protected void
executeStatement()
protected List<Object>
extractResults(ResultSet resultSet)
Output
getCurrent()
Retrieve the current Output object.protected ResultContext
getResultContext()
boolean
goToNext()
Go to the next Output object (if any), returning an indication of whether there was another (aka, will the next call toOutputs.getCurrent()
returnnull
?void
release()
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:Outputs
Retrieve the current Output object.- Specified by:
getCurrent
in interfaceOutputs
- Returns:
- The current Output object. Can be
null
-
goToNext
public boolean goToNext()
Description copied from interface:Outputs
Go 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:
goToNext
in interfaceOutputs
- Returns:
true
if the next call toOutputs.getCurrent()
will return a non-null
value.
-
release
public void release()
Description copied from interface:Outputs
Eagerly release any resources held by this Outputs.
-
-