Package org.hibernate.query.hql.internal
Class NamedHqlQueryMementoImpl
java.lang.Object
org.hibernate.query.named.AbstractNamedQueryMemento
org.hibernate.query.hql.internal.NamedHqlQueryMementoImpl
- All Implemented Interfaces:
Serializable,NamedQueryMemento,NamedSqmQueryMemento
public class NamedHqlQueryMementoImpl
extends AbstractNamedQueryMemento
implements NamedSqmQueryMemento, 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.
- Author:
- Gavin King, Steve Ebersole
- See Also:
-
Nested Class Summary
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.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento -
Constructor Summary
ConstructorsConstructorDescriptionNamedHqlQueryMementoImpl(String name, 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 TypeMethodDescriptionSqmStatement<?>Makes a copy of the memento using the specified registration name<T> SqmQueryImplementor<T>toQuery(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) voidvalidate(QueryEngine queryEngine) Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeout
-
Constructor Details
-
NamedHqlQueryMementoImpl
public NamedHqlQueryMementoImpl(String name, 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:
getHqlStringin interfaceNamedSqmQueryMemento
-
getFirstResult
- Specified by:
getFirstResultin interfaceNamedSqmQueryMemento
-
getMaxResults
- Specified by:
getMaxResultsin interfaceNamedSqmQueryMemento
-
getLockOptions
- Specified by:
getLockOptionsin interfaceNamedSqmQueryMemento
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceNamedSqmQueryMemento
-
makeCopy
Description copied from interface:NamedQueryMementoMakes a copy of the memento using the specified registration name- Specified by:
makeCopyin interfaceNamedQueryMemento- Specified by:
makeCopyin interfaceNamedSqmQueryMemento
-
validate
- Specified by:
validatein interfaceNamedQueryMemento
-
getSqmStatement
- Specified by:
getSqmStatementin interfaceNamedSqmQueryMemento
-