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