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 classProcedureOutputsImpl.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.CurrentReturnStatebuildCurrentReturnState(boolean isResultSet, int updateCount)ObjectgetOutputParameterValue(int position)Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.ObjectgetOutputParameterValue(String name)Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.<T> TgetOutputParameterValue(ProcedureParameter<T> parameter)Retrieve the value of an OUTPUT parameter by the parameter's registration memento.-
Methods inherited from class org.hibernate.result.internal.OutputsImpl
convert, executeStatement, extractResults, getCurrent, getResultContext, goToNext, release
-
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, release
-
-
-
-
Method Detail
-
getOutputParameterValue
public <T> T getOutputParameterValue(ProcedureParameter<T> parameter)
Description copied from interface:ProcedureOutputsRetrieve 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:
getOutputParameterValuein 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:ProcedureOutputsRetrieve the value of an OUTPUT parameter by the name under which the parameter was registered.- Specified by:
getOutputParameterValuein 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:ProcedureOutputsRetrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.- Specified by:
getOutputParameterValuein 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:
buildCurrentReturnStatein classOutputsImpl
-
-