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'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 interface
NamedQueryMemento.ParameterMemento
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
getCacheable()
CacheMode
getCacheMode()
String
getCacheRegion()
String
getComment()
Integer
getFetchSize()
FlushMode
getFlushMode()
Map<String,Object>
getHints()
Boolean
getReadOnly()
String
getRegistrationName()
The name under which the query is registeredInteger
getTimeout()
NamedQueryMemento
makeCopy(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)
void
validate(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)
-
-