Package org.hibernate.procedure
Interface ProcedureOutputs
- All Superinterfaces:
Outputs
- All Known Implementing Classes:
ProcedureOutputsImpl
Specialization of the
Outputs
contract providing access to the stored procedure's registered
output parameters.-
Method Summary
Modifier and TypeMethodDescriptiongetOutputParameterValue
(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.Methods inherited from interface org.hibernate.result.Outputs
getCurrent, goToNext, release
-
Method Details
-
getOutputParameterValue
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:
-
getOutputParameterValue
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:
-
getOutputParameterValue
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:
-