Package org.hibernate.result.internal
Class OutputsImpl
java.lang.Object
org.hibernate.result.internal.OutputsImpl
- All Implemented Interfaces:
Outputs
- Direct Known Subclasses:
ProcedureOutputsImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Encapsulates the information needed to interpret the current return within a result -
Constructor Summary
ConstructorsConstructorDescriptionOutputsImpl
(ResultContext context, PreparedStatement jdbcStatement, String sql) -
Method Summary
Modifier and TypeMethodDescriptionprotected OutputsImpl.CurrentReturnState
buildCurrentReturnState
(boolean isResultSet, int updateCount) protected JDBCException
convert
(SQLException e, String message) protected void
extractResults
(ResultSet resultSet) Retrieve the current Output object.protected ResultContext
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 Details
-
OutputsImpl
-
-
Method Details
-
getResultContext
-
executeStatement
protected void executeStatement() -
buildCurrentReturnState
protected OutputsImpl.CurrentReturnState buildCurrentReturnState(boolean isResultSet, int updateCount) -
convert
-
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. -
extractResults
-