Interface NamedQueryMemento<T>
- All Superinterfaces:
JpaReference
- All Known Subinterfaces:
NamedCallableQueryMemento, NamedMutationMemento<T>, NamedNativeQueryMemento<E>, NamedSelectionMemento<T>, NamedSqmQueryMemento<E>
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()The name under which the query is registeredMakes a copy of the memento using the specified registration nameCreate a mutation queries based on this memento's definition.<X> MutationQueryImplementor<X> toMutationQuery(SharedSessionContractImplementor session, Class<X> targetType) Create a mutation queries based on this memento's definition.toQuery(SharedSessionContractImplementor session) Create aQueryImplementorreference.<X> QueryImplementor<X> toQuery(SharedSessionContractImplementor session, Class<X> javaType) Create aQueryImplementorreference.Create a selection queries based on this reference's definition.<X> SelectionQueryImplementor<X> toSelectionQuery(SharedSessionContractImplementor session, Class<X> javaType) Create a selection queries based on this reference's definition with the give result type.voidvalidate(QueryEngine queryEngine) Methods inherited from interface JpaReference
getName
-
Method Details
-
getRegistrationName
String getRegistrationName()The name under which the query is registered -
getFlushMode
FlushMode getFlushMode() -
getTimeout
Timeout getTimeout()- Specified by:
getTimeoutin interfaceJpaReference
-
getComment
String getComment() -
getHints
- Specified by:
getHintsin interfaceJpaReference
-
validate
-
makeCopy
Makes a copy of the memento using the specified registration name
-