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

public Class NamedCallableQueryMementoImpl

extends AbstractNamedQueryMemento
implements NamedCallableQueryMemento
Class Inheritance
All Implemented Interfaces
org.hibernate.procedure.spi.NamedCallableQueryMemento, org.hibernate.query.named.NamedQueryMemento
Imports
java.util.List, .Map, .Set, jakarta.persistence.ParameterMode, org.hibernate.CacheMode, .FlushMode, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.query.BindableType, org.hibernate.procedure.ProcedureCall, org.hibernate.procedure.spi.NamedCallableQueryMemento, .ParameterStrategy, .ProcedureCallImplementor, .ProcedureParameterImplementor, org.hibernate.query.named.AbstractNamedQueryMemento, .NamedQueryMemento, org.hibernate.query.spi.QueryEngine, .QueryImplementor

Implementation of NamedCallableQueryMemento
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NamedCallableQueryMementoImpl.ParameterMementoImpl<T>

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

Field Summary

Modifier and TypeField and Description
private final String
private final List<NamedCallableQueryMemento.ParameterMemento>
private final ParameterStrategy
private final Set<String>
private final Class<?>[]
private final String[]

Constructor Summary

AccessConstructor and Description
public
NamedCallableQueryMementoImpl(String name, String callableName, ParameterStrategy parameterStrategy, List<NamedCallableQueryMemento.ParameterMemento> parameterMementos, String[] resultSetMappingNames, Class<?>[] resultSetMappingClasses, Set<String> querySpaces, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, Integer timeout, Integer fetchSize, String comment, Map<String, Object> hints)

Constructs a ProcedureCallImpl

Method Summary

Modifier and TypeMethod and Description
public String
getCallableName()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getCallableName.

Informational access to the name of the database function or procedure
public List<NamedCallableQueryMemento.ParameterMemento>
public ParameterStrategy
public Set<String>
public Class<?>[]
public String[]
public NamedQueryMemento
makeCopy(String name)

Implements org.hibernate.query.named.NamedQueryMemento.makeCopy.

Makes a copy of the memento using the specified registration name
public ProcedureCallImplementor<?>
makeProcedureCall(SharedSessionContractImplementor
The session to connect the procedure call to
session
)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

Convert the memento back into an executable (connected) form.
public ProcedureCall
makeProcedureCall(SharedSessionContractImplementor
The session to connect the procedure call to
session
,
String... resultSetMappingNames)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

Convert the memento back into an executable (connected) form.
public ProcedureCall
makeProcedureCall(SharedSessionContractImplementor
The session to connect the procedure call to
session
,
Class<?>... resultSetJavaTypes)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

Convert the memento back into an executable (connected) form.
public <T> QueryImplementor<T>
public <T> ProcedureCallImplementor<T>
public void
Inherited from org.hibernate.query.named.AbstractNamedQueryMemento:
getCacheablegetCacheModegetCacheRegiongetCommentgetFetchSizegetFlushModegetHintsgetReadOnlygetRegistrationNamegetTimeout

Field Detail

callableNameback to summary
private final String callableName
parameterMementosback to summary
private final List<NamedCallableQueryMemento.ParameterMemento> parameterMementos
parameterStrategyback to summary
private final ParameterStrategy parameterStrategy
querySpacesback to summary
private final Set<String> querySpaces
resultSetMappingClassesback to summary
private final Class<?>[] resultSetMappingClasses
resultSetMappingNamesback to summary
private final String[] resultSetMappingNames

Constructor Detail

NamedCallableQueryMementoImplback to summary
public NamedCallableQueryMementoImpl(String name, String callableName, ParameterStrategy parameterStrategy, List<NamedCallableQueryMemento.ParameterMemento> parameterMementos, String[] resultSetMappingNames, Class<?>[] resultSetMappingClasses, Set<String> querySpaces, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, Integer timeout, Integer fetchSize, String comment, Map<String, Object> hints)

Constructs a ProcedureCallImpl

Method Detail

getCallableNameback to summary
public String getCallableName()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getCallableName.

Doc from org.hibernate.procedure.spi.NamedCallableQueryMemento.getCallableName.

Informational access to the name of the database function or procedure

Annotations
@Override
getParameterMementosback to summary
public List<NamedCallableQueryMemento.ParameterMemento> getParameterMementos()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getParameterMementos.

Annotations
@Override
getParameterStrategyback to summary
public ParameterStrategy getParameterStrategy()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getParameterStrategy.

Annotations
@Override
getQuerySpacesback to summary
public Set<String> getQuerySpaces()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getQuerySpaces.

Annotations
@Override
getResultSetMappingClassesback to summary
public Class<?>[] getResultSetMappingClasses()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getResultSetMappingClasses.

Annotations
@Override
getResultSetMappingNamesback to summary
public String[] getResultSetMappingNames()

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.getResultSetMappingNames.

Annotations
@Override
makeCopyback to summary
public NamedQueryMemento makeCopy(String name)

Implements org.hibernate.query.named.NamedQueryMemento.makeCopy.

Doc from org.hibernate.query.named.NamedQueryMemento.makeCopy.

Makes a copy of the memento using the specified registration name

Annotations
@Override
makeProcedureCallback to summary
public ProcedureCallImplementor<?> makeProcedureCall(SharedSessionContractImplementor session)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

Doc from org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

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

Parameters
session:SharedSessionContractImplementor

The session to connect the procedure call to

Returns:ProcedureCallImplementor<?>

The executable call

Annotations
@Override
makeProcedureCallback to summary
public ProcedureCall makeProcedureCall(SharedSessionContractImplementor session, String... resultSetMappingNames)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

Doc from org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

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
makeProcedureCallback to summary
public ProcedureCall makeProcedureCall(SharedSessionContractImplementor session, Class<?>... resultSetJavaTypes)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

Doc from org.hibernate.procedure.spi.NamedCallableQueryMemento.makeProcedureCall.

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
toQueryback to summary
public <T> QueryImplementor<T> toQuery(SharedSessionContractImplementor session)

Implements org.hibernate.query.named.NamedQueryMemento.toQuery.

Annotations
@Override
toQueryback to summary
public <T> ProcedureCallImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> javaType)

Implements org.hibernate.query.named.NamedQueryMemento.toQuery.

Annotations
@Override
validateback to summary
public void validate(QueryEngine queryEngine)

Implements org.hibernate.query.named.NamedQueryMemento.validate.

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

public Class NamedCallableQueryMementoImpl.ParameterMementoImpl<T>

extends Object
implements ParameterMemento
Class Inheritance
  • java.lang.Object
  • org.hibernate.procedure.internal.NamedCallableQueryMementoImpl.ParameterMementoImpl
All Implemented Interfaces
org.hibernate.procedure.spi.NamedCallableQueryMemento.ParameterMemento, org.hibernate.query.named.NamedQueryMemento.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 BindableType<T>
private final ParameterMode
private final String
private final Integer
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
ParameterMementoImpl(int position, String name, ParameterMode mode, Class<T> type, BindableType<T> hibernateType)

Create the memento

Method Summary

Modifier and TypeMethod and Description
public static <U> NamedCallableQueryMementoImpl.ParameterMementoImpl<U>

Returns:

The memento
fromRegistration
(ProcedureParameterImplementor<U>
The parameter registration from a ProcedureCall
registration
)

Build a ParameterMemento from the given parameter registration

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

Field Detail

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

Constructor Detail

ParameterMementoImplback to summary
public ParameterMementoImpl(int position, String name, ParameterMode mode, Class<T> type, BindableType<T> hibernateType)

Create the memento

Method Detail

fromRegistrationback to summary
public static <U> NamedCallableQueryMementoImpl.ParameterMementoImpl<U> fromRegistration(ProcedureParameterImplementor<U> registration)

Build a ParameterMemento from the given parameter registration

Parameters
registration:ProcedureParameterImplementor<U>

The parameter registration from a ProcedureCall

Returns:NamedCallableQueryMementoImpl.ParameterMementoImpl<U>

The memento

getHibernateTypeback to summary
public BindableType<T> 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()
resolveback to summary
public ProcedureParameterImplementor<T> resolve(SharedSessionContractImplementor session)

Implements org.hibernate.procedure.spi.NamedCallableQueryMemento.ParameterMemento.resolve.

Annotations
@Override