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 queryvoidvalidate(QueryEngine queryEngine) Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getResultType, getTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sql.spi.NamedNativeQueryMemento
getResultMappingClassMethods inherited from interface org.hibernate.query.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getName, getReadOnly, getRegistrationName, getTimeoutMethods 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:NamedNativeQueryMementoThe affected query spaces.- Specified by:
getQuerySpacesin interfaceNamedNativeQueryMemento<E>
-
getSqlString
Description copied from interface:NamedNativeQueryMementoInformational access to the SQL query string- Specified by:
getSqlStringin interfaceNamedNativeQueryMemento<E>
-
getOriginalSqlString
- Specified by:
getOriginalSqlStringin interfaceNamedNativeQueryMemento<E>
-
getResultMappingName
Description copied from interface:NamedNativeQueryMementoAn explicit ResultSet mapping by name- Specified by:
getResultMappingNamein interfaceNamedNativeQueryMemento<E>- See Also:
-
getFirstResult
- Specified by:
getFirstResultin interfaceNamedNativeQueryMemento<E>
-
getMaxResults
- Specified by:
getMaxResultsin interfaceNamedNativeQueryMemento<E>
-
makeCopy
Description copied from interface:NamedQueryMementoMakes a copy of the memento using the specified registration name- Specified by:
makeCopyin interfaceNamedNativeQueryMemento<E>- Specified by:
makeCopyin interfaceNamedQueryMemento<E>
-
validate
- Specified by:
validatein interfaceNamedQueryMemento<E>
-