Top Fields Constructors Methods
org.hibernate.query.internal

public Class NamedObjectRepositoryImpl

extends Object
implements NamedObjectRepository
Class Inheritance
All Implemented Interfaces
org.hibernate.query.named.NamedObjectRepository
Imports
java.util.HashMap, .Map, java.util.function.Consumer, org.hibernate.HibernateException, .QueryException, org.hibernate.boot.Metadata, org.hibernate.boot.query.NamedHqlQueryDefinition, .NamedNativeQueryDefinition, .NamedProcedureCallDefinition, org.hibernate.boot.spi.MetadataImplementor, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.procedure.spi.NamedCallableQueryMemento, org.hibernate.query.sqm.EntityTypeException, .PathElementException, .TerminalPathException, .UnknownEntityException, .UnknownPathException, org.hibernate.query.NamedQueryValidationException, org.hibernate.query.named.NamedObjectRepository, .NamedQueryMemento, .NamedResultSetMappingMemento, org.hibernate.query.spi.QueryEngine, .QueryInterpretationCache, org.hibernate.query.sql.spi.NamedNativeQueryMemento, org.hibernate.query.sqm.spi.NamedSqmQueryMemento, org.jboss.logging.Logger

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Map<String, NamedCallableQueryMemento>
private static final Logger
private final Map<String, NamedResultSetMappingMemento>
private final Map<String, NamedNativeQueryMemento>
private final Map<String, NamedSqmQueryMemento>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Map<String, HibernateException>
checkNamedQueries(QueryEngine queryEngine)

Implements org.hibernate.query.named.NamedObjectRepository.checkNamedQueries.

Perform a validity check on all named queries
public void
close()

Implements org.hibernate.query.named.NamedObjectRepository.close.

Release any held resources
public NamedCallableQueryMemento
public NamedNativeQueryMemento
public NamedResultSetMappingMemento
public NamedSqmQueryMemento
public void
prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)

Implements org.hibernate.query.named.NamedObjectRepository.prepare.

Deprecated as a consequence of SessionFactoryImplementor and Metadata being deprecated.
Prepare for runtime use
public synchronized void
public synchronized void
public void
public void
public NamedQueryMemento
resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName)

Implements org.hibernate.query.named.NamedObjectRepository.resolve.

Deprecated as a consequence of SessionFactoryImplementor and MetadataImplementor being deprecated.
Resolve the named query with the given name.
public void
validateNamedQueries(QueryEngine queryEngine)

Implements org.hibernate.query.named.NamedObjectRepository.validateNamedQueries.

Validate the named queries and throw an exception if any are broken
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

callableMementoMapback to summary
private final Map<String, NamedCallableQueryMemento> callableMementoMap
logback to summary
private static final Logger log
resultSetMappingMementoMapback to summary
private final Map<String, NamedResultSetMappingMemento> resultSetMappingMementoMap
sqlMementoMapback to summary
private final Map<String, NamedNativeQueryMemento> sqlMementoMap
sqmMementoMapback to summary
private final Map<String, NamedSqmQueryMemento> sqmMementoMap

Constructor Detail

NamedObjectRepositoryImplback to summary
public NamedObjectRepositoryImpl(Map<String, NamedSqmQueryMemento> sqmMementoMap, Map<String, NamedNativeQueryMemento> sqlMementoMap, Map<String, NamedCallableQueryMemento> callableMementoMap, Map<String, NamedResultSetMappingMemento> resultSetMappingMementoMap)

Method Detail

checkNamedQueriesback to summary
public Map<String, HibernateException> checkNamedQueries(QueryEngine queryEngine)

Implements org.hibernate.query.named.NamedObjectRepository.checkNamedQueries.

Doc from org.hibernate.query.named.NamedObjectRepository.checkNamedQueries.

Perform a validity check on all named queries

Annotations
@Override
closeback to summary
public void close()

Implements org.hibernate.query.named.NamedObjectRepository.close.

Doc from org.hibernate.query.named.NamedObjectRepository.close.

Release any held resources

Annotations
@Override
getCallableQueryMementoback to summary
public NamedCallableQueryMemento getCallableQueryMemento(String name)

Implements org.hibernate.query.named.NamedObjectRepository.getCallableQueryMemento.

Annotations
@Override
getNativeQueryMementoback to summary
public NamedNativeQueryMemento getNativeQueryMemento(String queryName)

Implements org.hibernate.query.named.NamedObjectRepository.getNativeQueryMemento.

Annotations
@Override
getResultSetMappingMementoback to summary
public NamedResultSetMappingMemento getResultSetMappingMemento(String mappingName)

Implements org.hibernate.query.named.NamedObjectRepository.getResultSetMappingMemento.

Annotations
@Override
getSqmQueryMementoback to summary
public NamedSqmQueryMemento getSqmQueryMemento(String queryName)

Implements org.hibernate.query.named.NamedObjectRepository.getSqmQueryMemento.

Annotations
@Override
prepareback to summary
public void prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)

Implements org.hibernate.query.named.NamedObjectRepository.prepare.

Doc from org.hibernate.query.named.NamedObjectRepository.prepare.

Deprecated

as a consequence of SessionFactoryImplementor and Metadata being deprecated. See corresponding docs for further information.

Prepare for runtime use

Annotations
@Override
registerCallableQueryMementoback to summary
public synchronized void registerCallableQueryMemento(String name, NamedCallableQueryMemento memento)

Implements org.hibernate.query.named.NamedObjectRepository.registerCallableQueryMemento.

Annotations
@Override
registerNativeQueryMementoback to summary
public synchronized void registerNativeQueryMemento(String name, NamedNativeQueryMemento descriptor)

Implements org.hibernate.query.named.NamedObjectRepository.registerNativeQueryMemento.

Annotations
@Override
registerResultSetMappingMementoback to summary
public void registerResultSetMappingMemento(String name, NamedResultSetMappingMemento memento)

Implements org.hibernate.query.named.NamedObjectRepository.registerResultSetMappingMemento.

Annotations
@Override
registerSqmQueryMementoback to summary
public void registerSqmQueryMemento(String name, NamedSqmQueryMemento descriptor)

Implements org.hibernate.query.named.NamedObjectRepository.registerSqmQueryMemento.

Annotations
@Override
resolveback to summary
public NamedQueryMemento resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName)

Implements org.hibernate.query.named.NamedObjectRepository.resolve.

Doc from org.hibernate.query.named.NamedObjectRepository.resolve.

Deprecated

as a consequence of SessionFactoryImplementor and MetadataImplementor being deprecated. See corresponding docs for further information.

Resolve the named query with the given name.

Annotations
@Override
validateNamedQueriesback to summary
public void validateNamedQueries(QueryEngine queryEngine)

Implements org.hibernate.query.named.NamedObjectRepository.validateNamedQueries.

Doc from org.hibernate.query.named.NamedObjectRepository.validateNamedQueries.

Validate the named queries and throw an exception if any are broken

Annotations
@Override
visitCallableQueryMementosback to summary
public void visitCallableQueryMementos(Consumer<NamedCallableQueryMemento> action)

Implements org.hibernate.query.named.NamedObjectRepository.visitCallableQueryMementos.

Annotations
@Override
visitNativeQueryMementosback to summary
public void visitNativeQueryMementos(Consumer<NamedNativeQueryMemento> action)

Implements org.hibernate.query.named.NamedObjectRepository.visitNativeQueryMementos.

Annotations
@Override
visitResultSetMappingMementosback to summary
public void visitResultSetMappingMementos(Consumer<NamedResultSetMappingMemento> action)

Implements org.hibernate.query.named.NamedObjectRepository.visitResultSetMappingMementos.

Annotations
@Override
visitSqmQueryMementosback to summary
public void visitSqmQueryMementos(Consumer<NamedSqmQueryMemento> action)

Implements org.hibernate.query.named.NamedObjectRepository.visitSqmQueryMementos.

Annotations
@Override