Package org.hibernate.procedure
Interface ProcedureOutputs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getOutputParameterValue(int position)
Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.java.lang.Object
getOutputParameterValue(java.lang.String name)
Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.<T> T
getOutputParameterValue(ParameterRegistration<T> parameterRegistration)
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(ParameterRegistration<T> parameterRegistration)
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#getNextOutput
- Parameters:
parameterRegistration
- The parameter's registration memento.- Returns:
- The output value.
- See Also:
ProcedureCall.registerParameter(String, Class, javax.persistence.ParameterMode)
-
getOutputParameterValue
java.lang.Object getOutputParameterValue(java.lang.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, javax.persistence.ParameterMode)
-
getOutputParameterValue
java.lang.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, javax.persistence.ParameterMode)
-
-