Package org.hibernate.query.sql.spi
Interface NamedNativeQueryMemento
- All Superinterfaces:
NamedQueryMemento
- All Known Implementing Classes:
NamedNativeQueryMementoImpl
Descriptor for a named native query in the runtime environment
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Delegate used in creating named HQL query mementos.Nested classes/interfaces inherited from interface org.hibernate.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
The affected query spaces.Class<?>
An implicit entity mapping by entity classAn explicit ResultSet mapping by nameInformational access to the SQL query stringMakes a copy of the memento using the specified registration name<T> NativeQueryImplementor<T>
toQuery
(SharedSessionContractImplementor session) Convert the memento into an untyped executable query<T> NativeQueryImplementor<T>
toQuery
(SharedSessionContractImplementor session, Class<T> resultType) Convert the memento into a typed executable query<T> NativeQueryImplementor<T>
toQuery
(SharedSessionContractImplementor session, String resultSetMapping) Convert the memento into a typed executable queryMethods inherited from interface org.hibernate.query.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeout, validate
-
Method Details
-
getSqlString
String getSqlString()Informational access to the SQL query string -
getOriginalSqlString
-
getQuerySpaces
The affected query spaces. -
getResultMappingName
String getResultMappingName()An explicit ResultSet mapping by name- See Also:
-
getResultMappingClass
Class<?> getResultMappingClass()An implicit entity mapping by entity class -
getFirstResult
Integer getFirstResult() -
getMaxResults
Integer getMaxResults() -
makeCopy
Description copied from interface:NamedQueryMemento
Makes a copy of the memento using the specified registration name- Specified by:
makeCopy
in interfaceNamedQueryMemento
-