Package org.hibernate.query.named
Interface NamedQueryMemento<E>
- All Superinterfaces:
TypedQueryReference<E>
- All Known Subinterfaces:
NamedCallableQueryMemento,NamedNativeQueryMemento<E>,NamedSqmQueryMemento<E>
- All Known Implementing Classes:
AbstractNamedQueryMemento,NamedCallableQueryMementoImpl,NamedCriteriaQueryMementoImpl,NamedHqlQueryMementoImpl,NamedNativeQueryMementoImpl
The runtime representation of named queries. They are stored in and
available through the QueryEngine's
NamedObjectRepository.
This is the base contract for all specific types of named query mementos-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetHints()default StringgetName()The name under which the query is registeredMakes a copy of the memento using the specified registration nametoQuery(SharedSessionContractImplementor session) <T> QueryImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> javaType) voidvalidate(QueryEngine queryEngine) Methods inherited from interface jakarta.persistence.TypedQueryReference
getResultType
-
Method Details
-
getRegistrationName
String getRegistrationName()The name under which the query is registered -
getName
- Specified by:
getNamein interfaceTypedQueryReference<E>
-
getCacheable
Boolean getCacheable() -
getCacheRegion
String getCacheRegion() -
getCacheMode
CacheMode getCacheMode() -
getFlushMode
FlushMode getFlushMode() -
getReadOnly
Boolean getReadOnly() -
getTimeout
Integer getTimeout() -
getFetchSize
Integer getFetchSize() -
getComment
String getComment() -
getHints
- Specified by:
getHintsin interfaceTypedQueryReference<E>
-
validate
-
makeCopy
Makes a copy of the memento using the specified registration name
-