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.ArrayList, .List, .Map, org.hibernate.procedure.ParameterMisuseException, .ProcedureOutputs, org.hibernate.query.procedure.ProcedureParameter, org.hibernate.result.Output, org.hibernate.result.internal.OutputsImpl, org.hibernate.sql.exec.ExecutionException, org.hibernate.sql.exec.spi.JdbcCallParameterRegistration, .JdbcCallRefCursorExtractor, jakarta.persistence.ParameterMode

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 Map<ProcedureParameter<?>, JdbcCallParameterRegistration>
private final ProcedureCallImpl<?>
private final JdbcCallRefCursorExtractor[]
private int

Constructor Summary

AccessConstructor and Description
pack-priv
ProcedureOutputsImpl(ProcedureCallImpl<?> procedureCall, Map<ProcedureParameter<?>, JdbcCallParameterRegistration> parameterRegistrations, JdbcCallRefCursorExtractor[] refCursorParameters, CallableStatement callableStatement)

Method Summary

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

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.
public void
release()

Overrides org.hibernate.result.internal.OutputsImpl.release.

Implements org.hibernate.result.Outputs.release.

Eagerly release any resources held by this Outputs.
Inherited from org.hibernate.result.internal.OutputsImpl:
convertexecuteStatementextractResultsgetCurrentgetResultContextgoToNext

Field Detail

callableStatementback to summary
private final CallableStatement callableStatement
parameterRegistrationsback to summary
private final Map<ProcedureParameter<?>, JdbcCallParameterRegistration> parameterRegistrations
procedureCallback to summary
private final ProcedureCallImpl<?> procedureCall
refCursorParametersback to summary
private final JdbcCallRefCursorExtractor[] refCursorParameters
refCursorParamIndexback to summary
private int refCursorParamIndex

Constructor Detail

ProcedureOutputsImplback to summary
pack-priv ProcedureOutputsImpl(ProcedureCallImpl<?> procedureCall, Map<ProcedureParameter<?>, JdbcCallParameterRegistration> parameterRegistrations, JdbcCallRefCursorExtractor[] refCursorParameters, CallableStatement callableStatement)

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(ProcedureParameter<T> parameter)

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 goToNext()

Parameters
parameter:ProcedureParameter<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
releaseback to summary
public void release()

Overrides org.hibernate.result.internal.OutputsImpl.release.

Implements org.hibernate.result.Outputs.release.

Doc from org.hibernate.result.Outputs.release.

Eagerly release any resources held by this Outputs.

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 Output
protected boolean
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
buildFunctionReturnback to summary
protected Output buildFunctionReturn()

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

Annotations
@Override
hasExtendedReturnsback to summary
protected boolean hasExtendedReturns()

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

Annotations
@Override
hasFunctionReturnsback to summary
protected boolean hasFunctionReturns()

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

Annotations
@Override
indicatesMoreOutputsback to summary
public boolean indicatesMoreOutputs()

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

Annotations
@Override