接口 ProcedureOutputs
-
- 所有超级接口:
Outputs
- 所有已知实现类:
ProcedureOutputsImpl
public interface ProcedureOutputs extends Outputs
Specialization of theOutputscontract providing access to the stored procedure's registered output parameters.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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(ParameterRegistration<T> parameterRegistration)Retrieve the value of an OUTPUT parameter by the parameter's registration memento.-
从接口继承的方法 org.hibernate.result.Outputs
getCurrent, goToNext, release
-
-
-
-
方法详细资料
-
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- 参数:
parameterRegistration- The parameter's registration memento.- 返回:
- The output value.
- 另请参阅:
ProcedureCall.registerParameter(String, Class, javax.persistence.ParameterMode)
-
getOutputParameterValue
Object getOutputParameterValue(String name)
Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.- 参数:
name- The name under which the parameter was registered.- 返回:
- The output value.
- 抛出:
ParameterStrategyException- If the ProcedureCall is defined using positional parametersNoSuchParameterException- If no parameter with that name exists- 另请参阅:
ProcedureCall.registerParameter(String, Class, javax.persistence.ParameterMode)
-
getOutputParameterValue
Object getOutputParameterValue(int position)
Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.- 参数:
position- The position at which the parameter was registered.- 返回:
- The output value.
- 抛出:
ParameterStrategyException- If the ProcedureCall is defined using named parametersNoSuchParameterException- If no parameter with that position exists- 另请参阅:
ProcedureCall.registerParameter(int, Class, javax.persistence.ParameterMode)
-
-