Package org.hibernate.procedure.internal
Class ProcedureOutputsImpl
java.lang.Object
org.hibernate.result.internal.OutputsImpl
org.hibernate.procedure.internal.ProcedureOutputsImpl
- All Implemented Interfaces:
ProcedureOutputs
,Outputs
Implementation of ProcedureResult. Defines centralized access to all of the results of a procedure call.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Nested classes/interfaces inherited from class org.hibernate.result.internal.OutputsImpl
OutputsImpl.CurrentReturnState
-
Method Summary
Modifier and TypeMethodDescriptionprotected OutputsImpl.CurrentReturnState
buildCurrentReturnState
(boolean isResultSet, int updateCount) getOutputParameterValue
(int position) Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.<T> T
getOutputParameterValue
(ProcedureParameter<T> parameter) Retrieve the value of an OUTPUT parameter by the parameter's registration memento.void
release()
Eagerly release any resources held by this Outputs.Methods inherited from class org.hibernate.result.internal.OutputsImpl
convert, executeStatement, extractResults, getCurrent, getResultContext, goToNext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.result.Outputs
getCurrent, goToNext
-
Method Details
-
getOutputParameterValue
Description copied from interface:ProcedureOutputs
Retrieve the value of an OUTPUT parameter by the parameter's registration memento.Should NOT be called for parameters registered as REF_CURSOR. REF_CURSOR parameters should be accessed via the returns (see
Outputs.goToNext()
- Specified by:
getOutputParameterValue
in interfaceProcedureOutputs
- Parameters:
parameter
- The parameter's registration memento.- Returns:
- The output value.
- See Also:
-
getOutputParameterValue
Description copied from interface:ProcedureOutputs
Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.- Specified by:
getOutputParameterValue
in interfaceProcedureOutputs
- Parameters:
name
- The name under which the parameter was registered.- Returns:
- The output value.
- See Also:
-
getOutputParameterValue
Description copied from interface:ProcedureOutputs
Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.- Specified by:
getOutputParameterValue
in interfaceProcedureOutputs
- Parameters:
position
- The position at which the parameter was registered.- Returns:
- The output value.
- See Also:
-
buildCurrentReturnState
protected OutputsImpl.CurrentReturnState buildCurrentReturnState(boolean isResultSet, int updateCount) - Overrides:
buildCurrentReturnState
in classOutputsImpl
-
release
public void release()Description copied from interface:Outputs
Eagerly release any resources held by this Outputs.- Specified by:
release
in interfaceOutputs
- Overrides:
release
in classOutputsImpl
-