Package org.hibernate.procedure
Interface ProcedureOutputs
-
- All Superinterfaces:
Outputs
- All Known Implementing Classes:
ProcedureOutputsImpl
public interface ProcedureOutputs extends Outputs
Specialization of theOutputs
contract providing access to the stored procedure's registered output parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.-
Methods inherited from interface org.hibernate.result.Outputs
getCurrent, goToNext, release
-
-
-
-
Method Detail
-
getOutputParameterValue
<T> T getOutputParameterValue(ProcedureParameter<T> parameter)
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()
- Parameters:
parameter
- The parameter's registration memento.- Returns:
- The output value.
- See Also:
ProcedureCall.registerParameter(String, Class, jakarta.persistence.ParameterMode)
-
getOutputParameterValue
Object getOutputParameterValue(String name)
Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.- Parameters:
name
- The name under which the parameter was registered.- Returns:
- The output value.
- Throws:
ParameterStrategyException
- If the ProcedureCall is defined using positional parametersNoSuchParameterException
- If no parameter with that name exists- See Also:
ProcedureCall.registerParameter(String, Class, jakarta.persistence.ParameterMode)
-
getOutputParameterValue
Object getOutputParameterValue(int position)
Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.- Parameters:
position
- The position at which the parameter was registered.- Returns:
- The output value.
- Throws:
ParameterStrategyException
- If the ProcedureCall is defined using named parametersNoSuchParameterException
- If no parameter with that position exists- See Also:
ProcedureCall.registerParameter(int, Class, jakarta.persistence.ParameterMode)
-
-