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

public Class NamedHqlQueryMementoImpl

extends AbstractNamedQueryMemento
implements NamedSqmQueryMemento, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.sqm.spi.NamedSqmQueryMemento, org.hibernate.query.named.NamedQueryMemento
Imports
java.io.Serializable, java.util.Map, org.hibernate.CacheMode, .FlushMode, .LockOptions, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.query.hql.spi.SqmQueryImplementor, org.hibernate.query.named.AbstractNamedQueryMemento, org.hibernate.query.spi.QueryEngine, org.hibernate.query.sqm.SqmSelectionQuery, org.hibernate.query.sqm.internal.QuerySqmImpl, .SqmSelectionQueryImpl, org.hibernate.query.sqm.spi.NamedSqmQueryMemento, org.hibernate.query.sqm.tree.SqmStatement, org.jboss.logging.Logger

Definition of a named query, defined in the mapping metadata. Additionally, as of JPA 2.1, named query definition can also come from a compiled query.
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Integer
private final String
private final LockOptions
private static final Logger
private final Integer
private final Map<String, String>

Constructor Summary

AccessConstructor and Description
public
NamedHqlQueryMementoImpl(String name, String hqlString, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String, String> parameterTypes, Map<String, Object> hints)

Method Summary

Modifier and TypeMethod and Description
public Integer
public String
public LockOptions
public Integer
public Map<String, String>
public SqmStatement<?>
public NamedSqmQueryMemento
makeCopy(String name)

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.makeCopy, org.hibernate.query.named.NamedQueryMemento.makeCopy.

Makes a copy of the memento using the specified registration name
public <T> SqmQueryImplementor<T>
public <T> SqmQueryImplementor<T>
public <T> SqmSelectionQuery<T>
public void
Inherited from org.hibernate.query.named.AbstractNamedQueryMemento:
getCacheablegetCacheModegetCacheRegiongetCommentgetFetchSizegetFlushModegetHintsgetReadOnlygetRegistrationNamegetTimeout

Field Detail

firstResultback to summary
private final Integer firstResult
hqlStringback to summary
private final String hqlString
lockOptionsback to summary
private final LockOptions lockOptions
logback to summary
private static final Logger log
maxResultsback to summary
private final Integer maxResults
parameterTypesback to summary
private final Map<String, String> parameterTypes

Constructor Detail

NamedHqlQueryMementoImplback to summary
public NamedHqlQueryMementoImpl(String name, String hqlString, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String, String> parameterTypes, Map<String, Object> hints)

Method Detail

getFirstResultback to summary
public Integer getFirstResult()

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.getFirstResult.

Annotations
@Override
getHqlStringback to summary
public String getHqlString()

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.getHqlString.

Annotations
@Override
getLockOptionsback to summary
public LockOptions getLockOptions()

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.getLockOptions.

Annotations
@Override
getMaxResultsback to summary
public Integer getMaxResults()

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.getMaxResults.

Annotations
@Override
getParameterTypesback to summary
public Map<String, String> getParameterTypes()

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.getParameterTypes.

Annotations
@Override
getSqmStatementback to summary
public SqmStatement<?> getSqmStatement()

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.getSqmStatement.

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

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.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> SqmQueryImplementor<T> toQuery(SharedSessionContractImplementor session)

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.toQuery, org.hibernate.query.named.NamedQueryMemento.toQuery.

Doc from org.hibernate.query.sqm.spi.NamedSqmQueryMemento.toQuery.

Convert the memento into an untyped executable query

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

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.toQuery, org.hibernate.query.named.NamedQueryMemento.toQuery.

Annotations
@Override
toSelectionQueryback to summary
public <T> SqmSelectionQuery<T> toSelectionQuery(Class<T> resultType, SharedSessionContractImplementor session)

Implements org.hibernate.query.sqm.spi.NamedSqmQueryMemento.toSelectionQuery.

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

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

Annotations
@Override