Package org.hibernate.query.named
Interface NamedObjectRepository
- All Known Implementing Classes:
NamedObjectRepositoryImpl
Repository for references to named things related to queries. This includes:
- named HQL, JPQL, native, and procedure queries,
- along with named result set mappings.
-
Method Summary
Modifier and TypeMethodDescriptioncheckNamedQueries
(QueryEngine queryPlanCache) Perform a validity check on all named queriesvoid
close()
Release any held resources<R> Map<String,
TypedQueryReference<R>> getNamedQueries
(Class<R> resultType) getNativeQueryMemento
(String queryName) getResultSetMappingMemento
(String mappingName) getSqmQueryMemento
(String queryName) void
prepare
(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel) Prepare for runtime usevoid
registerCallableQueryMemento
(String name, NamedCallableQueryMemento memento) void
registerNativeQueryMemento
(String name, NamedNativeQueryMemento<?> descriptor) void
registerResultSetMappingMemento
(String name, NamedResultSetMappingMemento memento) void
registerSqmQueryMemento
(String name, NamedSqmQueryMemento<?> descriptor) resolve
(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName) Resolve the named query with the given name.void
validateNamedQueries
(QueryEngine queryEngine) Validate the named queries and throw an exception if any are brokenvoid
void
visitNativeQueryMementos
(Consumer<NamedNativeQueryMemento<?>> action) void
void
visitSqmQueryMementos
(Consumer<NamedSqmQueryMemento<?>> action)
-
Method Details
-
getNamedQueries
-
getSqmQueryMemento
-
visitSqmQueryMementos
-
registerSqmQueryMemento
-
getNativeQueryMemento
-
visitNativeQueryMementos
-
registerNativeQueryMemento
-
getCallableQueryMemento
-
visitCallableQueryMementos
-
registerCallableQueryMemento
-
getResultSetMappingMemento
-
visitResultSetMappingMementos
-
registerResultSetMappingMemento
-
checkNamedQueries
Perform a validity check on all named queries -
validateNamedQueries
Validate the named queries and throw an exception if any are broken -
resolve
NamedQueryMemento resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName) Resolve the named query with the given name. -
prepare
Prepare for runtime use -
close
void close()Release any held resources
-