Package org.hibernate.query.named
Interface NamedQueryMemento
- All Known Subinterfaces:
NamedCallableQueryMemento,NamedNativeQueryMemento,NamedSqmQueryMemento
- All Known Implementing Classes:
AbstractNamedQueryMemento,NamedCallableQueryMementoImpl,NamedCriteriaQueryMementoImpl,NamedHqlQueryMementoImpl,NamedNativeQueryMementoImpl
public interface NamedQueryMemento
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- Author:
- Steve Ebersole
-
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 name<T> QueryImplementor<T>toQuery(SharedSessionContractImplementor session) <T> QueryImplementor<T>toQuery(SharedSessionContractImplementor session, Class<T> javaType) voidvalidate(QueryEngine queryEngine)
-
Method Details
-
getRegistrationName
String getRegistrationName()The name under which the query is registered -
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
-
validate
-
makeCopy
Makes a copy of the memento using the specified registration name
-