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

public Class ProcedureCallMementoImpl

extends Object
implements ProcedureCallMemento
Class Inheritance
All Implemented Interfaces
org.hibernate.procedure.ProcedureCallMemento
Imports
java.util.List, .Map, .Set, javax.persistence.ParameterMode, org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.procedure.ProcedureCall, .ProcedureCallMemento, org.hibernate.procedure.spi.ParameterRegistrationImplementor, .ParameterStrategy, org.hibernate.type.Type

Implementation of ProcedureCallMemento
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ProcedureCallMementoImpl.ParameterMemento

A "disconnected" copy of the metadata for a parameter, that can be used in ProcedureCallMementoImpl.

Field Summary

Modifier and TypeField and Description
private final Map<String, Object>
private final List<ProcedureCallMementoImpl.ParameterMemento>
private final ParameterStrategy
private final String
private final NativeSQLQueryReturn[]
private final Set<String>

Constructor Summary

AccessConstructor and Description
public
ProcedureCallMementoImpl(String
The name of the procedure to be called
procedureName
,
NativeSQLQueryReturn[]
The result mappings
queryReturns
,
ParameterStrategy
Are parameters named or positional?
parameterStrategy
,
List<ProcedureCallMementoImpl.ParameterMemento>
The parameters registrations
parameterDeclarations
,
Set<String>
Any query spaces to synchronize on execution
synchronizedQuerySpaces
,
Map<String, Object>
Map of JPA query hints
hintsMap
)

Constructs a ProcedureCallImpl

Method Summary

Modifier and TypeMethod and Description
public Map<String, Object>
getHintsMap()

Implements org.hibernate.procedure.ProcedureCallMemento.getHintsMap.

Access to any hints associated with the memento.
public List<ProcedureCallMementoImpl.ParameterMemento>
public ParameterStrategy
public String
public NativeSQLQueryReturn[]
public Set<String>
public ProcedureCall
makeProcedureCall(SharedSessionContractImplementor
The session to connect the procedure call to
session
)

Implements org.hibernate.procedure.ProcedureCallMemento.makeProcedureCall.

Deprecated as a consequence of ProcedureCall being deprecated.
Convert the memento back into an executable (connected) form.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hintsMapback to summary
private final Map<String, Object> hintsMap
parameterDeclarationsback to summary
private final List<ProcedureCallMementoImpl.ParameterMemento> parameterDeclarations
parameterStrategyback to summary
private final ParameterStrategy parameterStrategy
procedureNameback to summary
private final String procedureName
queryReturnsback to summary
private final NativeSQLQueryReturn[] queryReturns
synchronizedQuerySpacesback to summary
private final Set<String> synchronizedQuerySpaces

Constructor Detail

ProcedureCallMementoImplback to summary
public ProcedureCallMementoImpl(String procedureName, NativeSQLQueryReturn[] queryReturns, ParameterStrategy parameterStrategy, List<ProcedureCallMementoImpl.ParameterMemento> parameterDeclarations, Set<String> synchronizedQuerySpaces, Map<String, Object> hintsMap)

Constructs a ProcedureCallImpl

Parameters
procedureName:String

The name of the procedure to be called

queryReturns:NativeSQLQueryReturn[]

The result mappings

parameterStrategy:ParameterStrategy

Are parameters named or positional?

parameterDeclarations:List<ProcedureCallMementoImpl.ParameterMemento>

The parameters registrations

synchronizedQuerySpaces:Set<String>

Any query spaces to synchronize on execution

hintsMap:Map<String, Object>

Map of JPA query hints

Method Detail

getHintsMapback to summary
public Map<String, Object> getHintsMap()

Implements org.hibernate.procedure.ProcedureCallMemento.getHintsMap.

Doc from org.hibernate.procedure.ProcedureCallMemento.getHintsMap.

Access to any hints associated with the memento.

IMPL NOTE : exposed separately because only HEM needs access to this.

Returns:Map<String, Object>

The hints.

Annotations
@Override
getParameterDeclarationsback to summary
public List<ProcedureCallMementoImpl.ParameterMemento> getParameterDeclarations()
getParameterStrategyback to summary
public ParameterStrategy getParameterStrategy()
getProcedureNameback to summary
public String getProcedureName()
getQueryReturnsback to summary
public NativeSQLQueryReturn[] getQueryReturns()
getSynchronizedQuerySpacesback to summary
public Set<String> getSynchronizedQuerySpaces()
makeProcedureCallback to summary
public ProcedureCall makeProcedureCall(SharedSessionContractImplementor session)

Implements org.hibernate.procedure.ProcedureCallMemento.makeProcedureCall.

Doc from org.hibernate.procedure.ProcedureCallMemento.makeProcedureCall.

Deprecated

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

Convert the memento back into an executable (connected) form.

Parameters
session:SharedSessionContractImplementor

The session to connect the procedure call to

Returns:ProcedureCall

The executable call

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

public Class ProcedureCallMementoImpl.ParameterMemento

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.procedure.internal.ProcedureCallMementoImpl.ParameterMemento

A "disconnected" copy of the metadata for a parameter, that can be used in ProcedureCallMementoImpl.

Field Summary

Modifier and TypeField and Description
private final Type
private final ParameterMode
private final String
private final boolean
private final Integer
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
ParameterMemento(int
The parameter position
position
,
String
The parameter name
name
,
ParameterMode
The parameter mode
mode
,
Class<T>
The Java type of the parameter
type
,
Type
The Hibernate Type.
hibernateType
,
boolean
Should NULL values to passed to the database?
passNulls
)

Create the memento

Method Summary

Modifier and TypeMethod and Description
public static ProcedureCallMementoImpl.ParameterMemento

Returns:

The memento
fromRegistration
(ParameterRegistrationImplementor<T>
The parameter registration from a ProcedureCall
registration
)

Build a ParameterMemento from the given parameter registration

public Type
public ParameterMode
public String
public Integer
public Class<T>
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hibernateTypeback to summary
private final Type hibernateType
modeback to summary
private final ParameterMode mode
nameback to summary
private final String name
passNullsback to summary
private final boolean passNulls
positionback to summary
private final Integer position
typeback to summary
private final Class<T> type

Constructor Detail

ParameterMementoback to summary
public ParameterMemento(int position, String name, ParameterMode mode, Class<T> type, Type hibernateType, boolean passNulls)

Create the memento

Parameters
position:int

The parameter position

name:String

The parameter name

mode:ParameterMode

The parameter mode

type:Class<T>

The Java type of the parameter

hibernateType:Type

The Hibernate Type.

passNulls:boolean

Should NULL values to passed to the database?

Method Detail

fromRegistrationback to summary
public static ProcedureCallMementoImpl.ParameterMemento fromRegistration(ParameterRegistrationImplementor<T> registration)

Build a ParameterMemento from the given parameter registration

Parameters
registration:ParameterRegistrationImplementor<T>

The parameter registration from a ProcedureCall

Returns:ProcedureCallMementoImpl.ParameterMemento

The memento

getHibernateTypeback to summary
public Type getHibernateType()
getModeback to summary
public ParameterMode getMode()
getNameback to summary
public String getName()
getPositionback to summary
public Integer getPosition()
getTypeback to summary
public Class<T> getType()
isPassNullsEnabledback to summary
public boolean isPassNullsEnabled()