Top Description Inners Fields Constructors Methods
org.hibernate.procedure.internal

public Class ProcedureOutputsImpl

extends OutputsImpl
implements ProcedureOutputs
Class Inheritance
All Implemented Interfaces
org.hibernate.procedure.ProcedureOutputs, org.hibernate.result.Outputs
Imports
java.sql.CallableStatement, .ResultSet, java.util.List, java.util.function.Supplier, org.hibernate.engine.jdbc.cursor.spi.RefCursorSupport, org.hibernate.procedure.ParameterRegistration, .ProcedureOutputs, org.hibernate.procedure.spi.ParameterRegistrationImplementor, org.hibernate.result.Output, org.hibernate.result.internal.OutputsImpl

Implementation of ProcedureResult. Defines centralized access to all of the results of a procedure call.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Field Summary

Modifier and TypeField and Description
private final CallableStatement
private final ProcedureCallImpl<R>
procedureCall

Deprecated as a consequence of ProcedureCallImpl being deprecated.
private final ParameterRegistrationImplementor<T>[]
private int

Constructor Summary

AccessConstructor and Description
pack-priv
ProcedureOutputsImpl(ProcedureCallImpl<R> procedureCall, CallableStatement callableStatement)

Deprecated as a consequence of ProcedureCallImpl being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected OutputsImpl.CurrentReturnState
public <T> T
getOutputParameterValue(ParameterRegistration<T>
The parameter's registration memento.
parameterRegistration
)

Implements org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Retrieve the value of an OUTPUT parameter by the parameter's registration memento.
public Object
getOutputParameterValue(String
The name under which the parameter was registered.
name
)

Implements org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.
public Object
getOutputParameterValue(int
The position at which the parameter was registered.
position
)

Implements org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.
Inherited from org.hibernate.result.internal.OutputsImpl:
convertextractResultsgetCurrentgoToNextrelease

Field Detail

callableStatementback to summary
private final CallableStatement callableStatement
procedureCallback to summary
private final ProcedureCallImpl<R> procedureCall

Deprecated

as a consequence of ProcedureCallImpl being deprecated. See corresponding docs for further information.

refCursorParametersback to summary
private final ParameterRegistrationImplementor<T>[] refCursorParameters
refCursorParamIndexback to summary
private int refCursorParamIndex

Constructor Detail

ProcedureOutputsImplback to summary
pack-priv ProcedureOutputsImpl(ProcedureCallImpl<R> procedureCall, CallableStatement callableStatement)

Deprecated

as a consequence of ProcedureCallImpl being deprecated. See corresponding docs for further information.

Method Detail

buildCurrentReturnStateback to summary
protected OutputsImpl.CurrentReturnState buildCurrentReturnState(boolean isResultSet, int updateCount)

Overrides org.hibernate.result.internal.OutputsImpl.buildCurrentReturnState.

Annotations
@Override
getOutputParameterValueback to summary
public <T> T getOutputParameterValue(ParameterRegistration<T> parameterRegistration)

Implements org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Doc from org.hibernate.procedure.ProcedureOutputs.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 getNextOutput

Parameters
parameterRegistration:ParameterRegistration<T>

The parameter's registration memento.

Returns:T

The output value.

Annotations
@Override
getOutputParameterValueback to summary
public Object getOutputParameterValue(String name)

Implements org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Doc from org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Retrieve the value of an OUTPUT parameter by the name under which the parameter was registered.

Parameters
name:String

The name under which the parameter was registered.

Returns:Object

The output value.

Annotations
@Override
getOutputParameterValueback to summary
public Object getOutputParameterValue(int position)

Implements org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Doc from org.hibernate.procedure.ProcedureOutputs.getOutputParameterValue.

Retrieve the value of an OUTPUT parameter by the name position under which the parameter was registered.

Parameters
position:int

The position at which the parameter was registered.

Returns:Object

The output value.

Annotations
@Override
org.hibernate.procedure.internal back to summary

protected Class ProcedureOutputsImpl.ProcedureCurrentReturnState

extends CurrentReturnState
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
private
ProcedureCurrentReturnState(boolean isResultSet, int updateCount, int refCursorParamIndex)

Method Summary

Modifier and TypeMethod and Description
protected Output
protected boolean
public boolean
Inherited from org.hibernate.result.internal.OutputsImpl.CurrentReturnState:
buildOutputbuildResultSetOutputbuildResultSetOutputbuildUpdateCountOutputgetOutputgetUpdateCountisResultSet

Field Detail

refCursorParamIndexback to summary
private final int refCursorParamIndex

Constructor Detail

ProcedureCurrentReturnStateback to summary
private ProcedureCurrentReturnState(boolean isResultSet, int updateCount, int refCursorParamIndex)

Method Detail

buildExtendedReturnback to summary
protected Output buildExtendedReturn()

Overrides org.hibernate.result.internal.OutputsImpl.CurrentReturnState.buildExtendedReturn.

Annotations
@Override
hasExtendedReturnsback to summary
protected boolean hasExtendedReturns()

Overrides org.hibernate.result.internal.OutputsImpl.CurrentReturnState.hasExtendedReturns.

Annotations
@Override
indicatesMoreOutputsback to summary
public boolean indicatesMoreOutputs()

Overrides org.hibernate.result.internal.OutputsImpl.CurrentReturnState.indicatesMoreOutputs.

Annotations
@Override