Interface ProcedureOutputs
- All Superinterfaces:
AutoCloseable
Represents the outputs of executing a JDBC statement.
Provides support for accessing result-sets,
update counts, and
registered output parameters.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Retrieve the current Output object.getOutputParameterValue(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> TgetOutputParameterValue(ProcedureParameter<T> parameter) Retrieve the value of an OUTPUT parameter by the parameter's registration memento.booleangoToNext()Go to the next Output object (if any), returning an indication of whether there is another.voidrelease()Eagerly release any held resources.
-
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
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.
Should NOT be called for parameters registered as REF_CURSOR. REF_CURSOR parameters should be accessed via the returns (see
goToNext()).- 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.
Should NOT be called for parameters registered as REF_CURSOR. REF_CURSOR parameters should be accessed via the returns (see
goToNext()).- 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:
-
getCurrent
Output getCurrent()Retrieve the current Output object.- Returns:
- The current Output object. Can be
null
-
goToNext
boolean goToNext()Go to the next Output object (if any), returning an indication of whether there is another.- Returns:
trueif the next call togetCurrent()will return a non-nullvalue.
-
release
void release()Eagerly release any held resources. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-