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
public class ProcedureOutputsImpl extends OutputsImpl implements ProcedureOutputs
Implementation of ProcedureResult. Defines centralized access to all of the results of a procedure call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ProcedureOutputsImpl.ProcedureCurrentReturnState
-
Nested classes/interfaces inherited from class org.hibernate.result.internal.OutputsImpl
OutputsImpl.CurrentReturnState
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OutputsImpl.CurrentReturnState
buildCurrentReturnState(boolean isResultSet, int updateCount)
Object
getOutputParameterValue(int position)
Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.Object
getOutputParameterValue(String name)
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 Detail
-
getOutputParameterValue
public <T> T getOutputParameterValue(ProcedureParameter<T> parameter)
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:
ProcedureCall.registerParameter(String, Class, jakarta.persistence.ParameterMode)
-
getOutputParameterValue
public Object getOutputParameterValue(String name)
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:
ProcedureCall.registerParameter(String, Class, jakarta.persistence.ParameterMode)
-
getOutputParameterValue
public Object getOutputParameterValue(int position)
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:
ProcedureCall.registerParameter(int, Class, jakarta.persistence.ParameterMode)
-
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
-
-