Package org.hibernate.query.hql.internal
Class NamedHqlQueryMementoImpl<R>
java.lang.Object
org.hibernate.query.named.AbstractNamedQueryMemento<R>
org.hibernate.query.hql.internal.NamedHqlQueryMementoImpl<R>
- All Implemented Interfaces:
TypedQueryReference<R>
,Serializable
,NamedQueryMemento<R>
,NamedSqmQueryMemento<R>
public class NamedHqlQueryMementoImpl<R>
extends AbstractNamedQueryMemento<R>
implements NamedSqmQueryMemento<R>, Serializable
Definition of a named query, defined in the mapping metadata.
Additionally, as of JPA 2.1, named query definition can also come
from a compiled query.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento
-
Constructor Summary
ConstructorsConstructorDescriptionNamedHqlQueryMementoImpl
(String name, @Nullable Class<R> resultType, String hqlString, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String, String> parameterTypes, Map<String, Object> hints) -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy of the memento using the specified registration nametoQuery
(SharedSessionContractImplementor session) Convert the memento into an untyped executable query<T> SqmQueryImplementor<T>
toQuery
(SharedSessionContractImplementor session, Class<T> resultType) <T> SqmSelectionQuery<T>
toSelectionQuery
(Class<T> resultType, SharedSessionContractImplementor session) void
validate
(QueryEngine queryEngine) Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getResultType, 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.query.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getName, getReadOnly, getRegistrationName, getTimeout
Methods inherited from interface jakarta.persistence.TypedQueryReference
getResultType
-
Constructor Details
-
NamedHqlQueryMementoImpl
public NamedHqlQueryMementoImpl(String name, @Nullable Class<R> resultType, String hqlString, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String, String> parameterTypes, Map<String, Object> hints)
-
-
Method Details
-
getHqlString
- Specified by:
getHqlString
in interfaceNamedSqmQueryMemento<R>
-
getFirstResult
- Specified by:
getFirstResult
in interfaceNamedSqmQueryMemento<R>
-
getMaxResults
- Specified by:
getMaxResults
in interfaceNamedSqmQueryMemento<R>
-
getLockOptions
- Specified by:
getLockOptions
in interfaceNamedSqmQueryMemento<R>
-
getParameterTypes
- Specified by:
getParameterTypes
in interfaceNamedSqmQueryMemento<R>
-
makeCopy
Description copied from interface:NamedQueryMemento
Makes a copy of the memento using the specified registration name- Specified by:
makeCopy
in interfaceNamedQueryMemento<R>
- Specified by:
makeCopy
in interfaceNamedSqmQueryMemento<R>
-
validate
- Specified by:
validate
in interfaceNamedQueryMemento<R>
-
getSqmStatement
- Specified by:
getSqmStatement
in interfaceNamedSqmQueryMemento<R>
-