Package org.hibernate.query.named
Interface NamedQueryMemento
-
- All Known Subinterfaces:
NamedCallableQueryMemento,NamedNativeQueryMemento,NamedSqmQueryMemento
- All Known Implementing Classes:
AbstractNamedQueryMemento,NamedCallableQueryMementoImpl,NamedCriteriaQueryMementoImpl,NamedHqlQueryMementoImpl,NamedNativeQueryMementoImpl
public interface NamedQueryMementoThe runtime representation of named queries. They are stored in and available through the QueryEngine'sNamedObjectRepository. This is the base contract for all specific types of named query mementos
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceNamedQueryMemento.ParameterMemento
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleangetCacheable()CacheModegetCacheMode()StringgetCacheRegion()StringgetComment()IntegergetFetchSize()FlushModegetFlushMode()Map<String,Object>getHints()BooleangetReadOnly()StringgetRegistrationName()The name under which the query is registeredIntegergetTimeout()NamedQueryMementomakeCopy(String name)Makes 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 Detail
-
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()
-
validate
void validate(QueryEngine queryEngine)
-
makeCopy
NamedQueryMemento makeCopy(String name)
Makes a copy of the memento using the specified registration name
-
toQuery
<T> QueryImplementor<T> toQuery(SharedSessionContractImplementor session)
-
toQuery
<T> QueryImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> javaType)
-
-