Top Description Fields Constructors Methods
org.hibernate.query.sql.internal

public Class NamedNativeQueryMementoImpl

extends AbstractNamedQueryMemento
implements NamedNativeQueryMemento
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sql.spi.NamedNativeQueryMemento, org.hibernate.query.named.NamedQueryMemento
Imports
java.util.Map, .Set, org.hibernate.CacheMode, .FlushMode, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.query.named.AbstractNamedQueryMemento, org.hibernate.query.spi.QueryEngine, org.hibernate.query.sql.spi.NamedNativeQueryMemento, .NativeQueryImplementor

Keeps details of a named native SQL query
Authors
Max Andersen, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Integer
private final Integer
private final String
private final Set<String>
private final Class<?>
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
NamedNativeQueryMementoImpl(String name, String sqlString, String originalSqlString, String resultSetMappingName, Class<?> resultSetMappingClass, 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 TypeMethod and Description
public Integer
public Integer
public String
public Set<String>
public Class<?>
public String
public Class<?>
public String
public String
getSqlString()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getSqlString.

Informational access to the SQL query string
public NamedNativeQueryMemento
makeCopy(String name)

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.makeCopy, org.hibernate.query.named.NamedQueryMemento.makeCopy.

Makes a copy of the memento using the specified registration name
public <T> NativeQueryImplementor<T>
public <T> NativeQueryImplementor<T>
public <T> NativeQueryImplementor<T>
toQuery(SharedSessionContractImplementor session, String resultSetMappingName)

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery.

Convert the memento into a typed executable query
public void
Inherited from org.hibernate.query.named.AbstractNamedQueryMemento:
getCacheablegetCacheModegetCacheRegiongetCommentgetFetchSizegetFlushModegetHintsgetReadOnlygetRegistrationNamegetTimeout

Field Detail

firstResultback to summary
private final Integer firstResult
maxResultsback to summary
private final Integer maxResults
originalSqlStringback to summary
private final String originalSqlString
querySpacesback to summary
private final Set<String> querySpaces
resultSetMappingClassback to summary
private final Class<?> resultSetMappingClass
resultSetMappingNameback to summary
private final String resultSetMappingName
sqlStringback to summary
private final String sqlString

Constructor Detail

NamedNativeQueryMementoImplback to summary
public NamedNativeQueryMementoImpl(String name, String sqlString, String originalSqlString, String resultSetMappingName, Class<?> resultSetMappingClass, 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 Detail

getFirstResultback to summary
public Integer getFirstResult()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getFirstResult.

Annotations
@Override
getMaxResultsback to summary
public Integer getMaxResults()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getMaxResults.

Annotations
@Override
getOriginalSqlStringback to summary
public String getOriginalSqlString()

Overrides default org.hibernate.query.sql.spi.NamedNativeQueryMemento.getOriginalSqlString.

Annotations
@Override
getQuerySpacesback to summary
public Set<String> getQuerySpaces()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getQuerySpaces.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.getQuerySpaces.

The affected query spaces.

getResultMappingClassback to summary
public Class<?> getResultMappingClass()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getResultMappingClass.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.getResultMappingClass.

An implicit entity mapping by entity class

Annotations
@Override
getResultMappingNameback to summary
public String getResultMappingName()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getResultMappingName.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.getResultMappingName.

An explicit ResultSet mapping by name

Annotations
@Override
getResultSetMappingClassback to summary
public Class<?> getResultSetMappingClass()
getResultSetMappingNameback to summary
public String getResultSetMappingName()
getSqlStringback to summary
public String getSqlString()

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.getSqlString.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.getSqlString.

Informational access to the SQL query string

Annotations
@Override
makeCopyback to summary
public NamedNativeQueryMemento makeCopy(String name)

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.makeCopy, org.hibernate.query.named.NamedQueryMemento.makeCopy.

Doc from org.hibernate.query.named.NamedQueryMemento.makeCopy.

Makes a copy of the memento using the specified registration name

Annotations
@Override
toQueryback to summary
public <T> NativeQueryImplementor<T> toQuery(SharedSessionContractImplementor session)

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery, org.hibernate.query.named.NamedQueryMemento.toQuery.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery.

Convert the memento into an untyped executable query

Annotations
@Override
toQueryback to summary
public <T> NativeQueryImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> resultType)

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery, org.hibernate.query.named.NamedQueryMemento.toQuery.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery.

Convert the memento into a typed executable query

Annotations
@Override
toQueryback to summary
public <T> NativeQueryImplementor<T> toQuery(SharedSessionContractImplementor session, String resultSetMappingName)

Implements org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery.

Doc from org.hibernate.query.sql.spi.NamedNativeQueryMemento.toQuery.

Convert the memento into a typed executable query

Annotations
@Override
validateback to summary
public void validate(QueryEngine queryEngine)

Implements org.hibernate.query.named.NamedQueryMemento.validate.

Annotations
@Override