Package org.hibernate.query.sql.internal
Class NamedNativeQueryMementoImpl<E>
java.lang.Object
org.hibernate.query.named.AbstractNamedQueryMemento<E>
org.hibernate.query.sql.internal.NamedNativeQueryMementoImpl<E>
- All Implemented Interfaces:
TypedQueryReference<E>
,NamedQueryMemento<E>
,NamedNativeQueryMemento<E>
public class NamedNativeQueryMementoImpl<E>
extends AbstractNamedQueryMemento<E>
implements NamedNativeQueryMemento<E>
Keeps details of a named native SQL query
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento
-
Constructor Summary
ConstructorsConstructorDescriptionNamedNativeQueryMementoImpl
(String name, Class<E> resultClass, String sqlString, String originalSqlString, String resultSetMappingName, Set<String> querySpaces, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, Integer timeout, Integer fetchSize, String comment, Integer firstResult, Integer maxResults, Map<String, Object> hints) -
Method Summary
Modifier and TypeMethodDescriptionThe affected query spaces.An explicit ResultSet mapping by nameInformational access to the SQL query stringMakes a copy of the memento using the specified registration nametoQuery
(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 resultSetMappingName) Convert the memento into a typed executable queryvoid
validate
(QueryEngine queryEngine) Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getResultType, getTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.sql.spi.NamedNativeQueryMemento
getResultMappingClass
Methods inherited from interface org.hibernate.query.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getName, getReadOnly, getRegistrationName, getTimeout
Methods inherited from interface jakarta.persistence.TypedQueryReference
getResultType
-
Constructor Details
-
NamedNativeQueryMementoImpl
public NamedNativeQueryMementoImpl(String name, Class<E> resultClass, String sqlString, String originalSqlString, String resultSetMappingName, Set<String> querySpaces, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, Integer timeout, Integer fetchSize, String comment, Integer firstResult, Integer maxResults, Map<String, Object> hints)
-
-
Method Details
-
getResultSetMappingName
-
getQuerySpaces
Description copied from interface:NamedNativeQueryMemento
The affected query spaces.- Specified by:
getQuerySpaces
in interfaceNamedNativeQueryMemento<E>
-
getSqlString
Description copied from interface:NamedNativeQueryMemento
Informational access to the SQL query string- Specified by:
getSqlString
in interfaceNamedNativeQueryMemento<E>
-
getOriginalSqlString
- Specified by:
getOriginalSqlString
in interfaceNamedNativeQueryMemento<E>
-
getResultMappingName
Description copied from interface:NamedNativeQueryMemento
An explicit ResultSet mapping by name- Specified by:
getResultMappingName
in interfaceNamedNativeQueryMemento<E>
- See Also:
-
getFirstResult
- Specified by:
getFirstResult
in interfaceNamedNativeQueryMemento<E>
-
getMaxResults
- Specified by:
getMaxResults
in interfaceNamedNativeQueryMemento<E>
-
makeCopy
Description copied from interface:NamedQueryMemento
Makes a copy of the memento using the specified registration name- Specified by:
makeCopy
in interfaceNamedNativeQueryMemento<E>
- Specified by:
makeCopy
in interfaceNamedQueryMemento<E>
-
validate
- Specified by:
validate
in interfaceNamedQueryMemento<E>
-