Top Description Methods
org.hibernate.query.named

public Interface NamedObjectRepository

Known Direct Implementers
org.hibernate.query.internal.NamedObjectRepositoryImpl
Annotations
@Incubating
Imports
java.util.Map, java.util.function.Consumer, org.hibernate.HibernateException, .Incubating, org.hibernate.boot.Metadata, org.hibernate.boot.spi.MetadataImplementor, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.procedure.spi.NamedCallableQueryMemento, org.hibernate.query.spi.QueryEngine, org.hibernate.query.sql.spi.NamedNativeQueryMemento, org.hibernate.query.sqm.spi.NamedSqmQueryMemento

Repository for references to named things related to queries. This includes:
Author
Steve Ebersole

Method Summary

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

Perform a validity check on all named queries

public void
close()

Release any held resources

public NamedCallableQueryMemento
public NamedNativeQueryMemento
public NamedResultSetMappingMemento
public NamedSqmQueryMemento
public void
prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)

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

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

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

public void
public void
public void
public void

Method Detail

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

Perform a validity check on all named queries

closeback to summary
public void close()

Release any held resources

getCallableQueryMementoback to summary
public NamedCallableQueryMemento getCallableQueryMemento(String name)
getNativeQueryMementoback to summary
public NamedNativeQueryMemento getNativeQueryMemento(String queryName)
getResultSetMappingMementoback to summary
public NamedResultSetMappingMemento getResultSetMappingMemento(String mappingName)
getSqmQueryMementoback to summary
public NamedSqmQueryMemento getSqmQueryMemento(String queryName)
prepareback to summary
public void prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)

Deprecated

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

Prepare for runtime use

registerCallableQueryMementoback to summary
public void registerCallableQueryMemento(String name, NamedCallableQueryMemento memento)
registerNativeQueryMementoback to summary
public void registerNativeQueryMemento(String name, NamedNativeQueryMemento descriptor)
registerResultSetMappingMementoback to summary
public void registerResultSetMappingMemento(String name, NamedResultSetMappingMemento memento)
registerSqmQueryMementoback to summary
public void registerSqmQueryMemento(String name, NamedSqmQueryMemento descriptor)
resolveback to summary
public NamedQueryMemento resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName)

Deprecated

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

Resolve the named query with the given name.

validateNamedQueriesback to summary
public void validateNamedQueries(QueryEngine queryEngine)

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

visitCallableQueryMementosback to summary
public void visitCallableQueryMementos(Consumer<NamedCallableQueryMemento> action)
visitNativeQueryMementosback to summary
public void visitNativeQueryMementos(Consumer<NamedNativeQueryMemento> action)
visitResultSetMappingMementosback to summary
public void visitResultSetMappingMementos(Consumer<NamedResultSetMappingMemento> action)
visitSqmQueryMementosback to summary
public void visitSqmQueryMementos(Consumer<NamedSqmQueryMemento> action)