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 classNamedNativeQueryMemento.BuilderDelegate 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 IntegergetFirstResult()IntegergetMaxResults()default StringgetOriginalSqlString()Set<String>getQuerySpaces()The affected query spaces.Class<?>getResultMappingClass()An implicit entity mapping by entity classStringgetResultMappingName()An explicit ResultSet mapping by nameStringgetSqlString()Informational access to the SQL query stringNamedNativeQueryMementomakeCopy(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:
toQueryin interfaceNamedQueryMemento
-
toQuery
<T> NativeQueryImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> resultType)
Convert the memento into a typed executable query- Specified by:
toQueryin 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:NamedQueryMementoMakes a copy of the memento using the specified registration name- Specified by:
makeCopyin interfaceNamedQueryMemento
-
-