Package org.hibernate.procedure.internal
Class NamedCallableQueryMementoImpl.ParameterMementoImpl<T>
- java.lang.Object
-
- org.hibernate.procedure.internal.NamedCallableQueryMementoImpl.ParameterMementoImpl<T>
-
- All Implemented Interfaces:
NamedCallableQueryMemento.ParameterMemento,NamedQueryMemento.ParameterMemento
- Enclosing class:
- NamedCallableQueryMementoImpl
public static class NamedCallableQueryMementoImpl.ParameterMementoImpl<T> extends Object implements NamedCallableQueryMemento.ParameterMemento
A "disconnected" copy of the metadata for a parameter, that can be used in ProcedureCallMementoImpl.
-
-
Constructor Summary
Constructors Constructor Description ParameterMementoImpl(int position, String name, ParameterMode mode, Class<T> type, BindableType<T> hibernateType)Create the memento
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <U> NamedCallableQueryMementoImpl.ParameterMementoImpl<U>fromRegistration(ProcedureParameterImplementor<U> registration)Build a ParameterMemento from the given parameter registrationBindableType<T>getHibernateType()ParameterModegetMode()StringgetName()IntegergetPosition()Class<T>getType()ProcedureParameterImplementor<T>resolve(SharedSessionContractImplementor session)
-
-
-
Constructor Detail
-
ParameterMementoImpl
public ParameterMementoImpl(int position, String name, ParameterMode mode, Class<T> type, BindableType<T> hibernateType)Create the memento
-
-
Method Detail
-
getPosition
public Integer getPosition()
-
getName
public String getName()
-
getMode
public ParameterMode getMode()
-
getHibernateType
public BindableType<T> getHibernateType()
-
resolve
public ProcedureParameterImplementor<T> resolve(SharedSessionContractImplementor session)
- Specified by:
resolvein interfaceNamedCallableQueryMemento.ParameterMemento- Specified by:
resolvein interfaceNamedQueryMemento.ParameterMemento
-
fromRegistration
public static <U> NamedCallableQueryMementoImpl.ParameterMementoImpl<U> fromRegistration(ProcedureParameterImplementor<U> registration)
Build a ParameterMemento from the given parameter registration- Parameters:
registration- The parameter registration from a ProcedureCall- Returns:
- The memento
-
-