Package org.hibernate.procedure.internal
Class NamedCallableQueryMementoImpl
- java.lang.Object
-
- org.hibernate.query.named.AbstractNamedQueryMemento
-
- org.hibernate.procedure.internal.NamedCallableQueryMementoImpl
-
- All Implemented Interfaces:
NamedCallableQueryMemento
,NamedQueryMemento
public class NamedCallableQueryMementoImpl extends AbstractNamedQueryMemento implements NamedCallableQueryMemento
Implementation of NamedCallableQueryMemento
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NamedCallableQueryMementoImpl.ParameterMementoImpl<T>
A "disconnected" copy of the metadata for a parameter, that can be used in ProcedureCallMementoImpl.-
Nested classes/interfaces inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
AbstractNamedQueryMemento.AbstractBuilder<T extends AbstractNamedQueryMemento.AbstractBuilder>
-
Nested classes/interfaces inherited from interface org.hibernate.procedure.spi.NamedCallableQueryMemento
NamedCallableQueryMemento.ParameterMemento
-
Nested classes/interfaces inherited from interface org.hibernate.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento
-
-
Constructor Summary
Constructors Constructor Description 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
-
Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.procedure.spi.NamedCallableQueryMemento
makeProcedureCall, makeProcedureCall
-
Methods inherited from interface org.hibernate.query.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeout
-
-
-
-
Constructor Detail
-
NamedCallableQueryMementoImpl
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
-
getCallableName
public String getCallableName()
Description copied from interface:NamedCallableQueryMemento
Informational access to the name of the database function or procedure- Specified by:
getCallableName
in interfaceNamedCallableQueryMemento
-
getParameterMementos
public List<NamedCallableQueryMemento.ParameterMemento> getParameterMementos()
- Specified by:
getParameterMementos
in interfaceNamedCallableQueryMemento
-
getParameterStrategy
public ParameterStrategy getParameterStrategy()
- Specified by:
getParameterStrategy
in interfaceNamedCallableQueryMemento
-
getResultSetMappingNames
public String[] getResultSetMappingNames()
- Specified by:
getResultSetMappingNames
in interfaceNamedCallableQueryMemento
-
getResultSetMappingClasses
public Class<?>[] getResultSetMappingClasses()
- Specified by:
getResultSetMappingClasses
in interfaceNamedCallableQueryMemento
-
getQuerySpaces
public Set<String> getQuerySpaces()
- Specified by:
getQuerySpaces
in interfaceNamedCallableQueryMemento
-
makeProcedureCall
public ProcedureCallImplementor<?> makeProcedureCall(SharedSessionContractImplementor session)
Description copied from interface:NamedCallableQueryMemento
Convert the memento back into an executable (connected) form.- Specified by:
makeProcedureCall
in interfaceNamedCallableQueryMemento
- Parameters:
session
- The session to connect the procedure call to- Returns:
- The executable call
-
makeProcedureCall
public ProcedureCall makeProcedureCall(SharedSessionContractImplementor session, String... resultSetMappingNames)
Description copied from interface:NamedCallableQueryMemento
Convert the memento back into an executable (connected) form.- Specified by:
makeProcedureCall
in interfaceNamedCallableQueryMemento
- Parameters:
session
- The session to connect the procedure call to- Returns:
- The executable call
-
makeProcedureCall
public ProcedureCall makeProcedureCall(SharedSessionContractImplementor session, Class<?>... resultSetJavaTypes)
Description copied from interface:NamedCallableQueryMemento
Convert the memento back into an executable (connected) form.- Specified by:
makeProcedureCall
in interfaceNamedCallableQueryMemento
- Parameters:
session
- The session to connect the procedure call to- Returns:
- The executable call
-
toQuery
public <T> QueryImplementor<T> toQuery(SharedSessionContractImplementor session)
- Specified by:
toQuery
in interfaceNamedQueryMemento
-
toQuery
public <T> ProcedureCallImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> javaType)
- Specified by:
toQuery
in interfaceNamedQueryMemento
-
makeCopy
public NamedQueryMemento makeCopy(String name)
Description copied from interface:NamedQueryMemento
Makes a copy of the memento using the specified registration name- Specified by:
makeCopy
in interfaceNamedQueryMemento
-
validate
public void validate(QueryEngine queryEngine)
- Specified by:
validate
in interfaceNamedQueryMemento
-
-