Class NamedCriteriaQueryMementoImpl<E>
java.lang.Object
org.hibernate.query.named.AbstractNamedQueryMemento<E>
org.hibernate.query.criteria.internal.NamedCriteriaQueryMementoImpl<E>
- All Implemented Interfaces:
TypedQueryReference<E>
,Serializable
,NamedQueryMemento<E>
,NamedSqmQueryMemento<E>
public class NamedCriteriaQueryMementoImpl<E>
extends AbstractNamedQueryMemento<E>
implements NamedSqmQueryMemento<E>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento
-
Constructor Summary
ConstructorsConstructorDescriptionNamedCriteriaQueryMementoImpl
(String name, @Nullable Class<E> resultType, SqmStatement<E> sqmStatement, 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
-
NamedCriteriaQueryMementoImpl
public NamedCriteriaQueryMementoImpl(String name, @Nullable Class<E> resultType, SqmStatement<E> sqmStatement, 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
-
validate
- Specified by:
validate
in interfaceNamedQueryMemento<E>
-
getHqlString
- Specified by:
getHqlString
in interfaceNamedSqmQueryMemento<E>
-
getSqmStatement
- Specified by:
getSqmStatement
in interfaceNamedSqmQueryMemento<E>
-
getFirstResult
- Specified by:
getFirstResult
in interfaceNamedSqmQueryMemento<E>
-
getMaxResults
- Specified by:
getMaxResults
in interfaceNamedSqmQueryMemento<E>
-
getLockOptions
- Specified by:
getLockOptions
in interfaceNamedSqmQueryMemento<E>
-
getParameterTypes
- Specified by:
getParameterTypes
in interfaceNamedSqmQueryMemento<E>
-
makeCopy
Description copied from interface:NamedQueryMemento
Makes a copy of the memento using the specified registration name- Specified by:
makeCopy
in interfaceNamedQueryMemento<E>
- Specified by:
makeCopy
in interfaceNamedSqmQueryMemento<E>
-