Package org.hibernate.query.named
Interface NamedObjectRepository
-
- All Known Implementing Classes:
NamedObjectRepositoryImpl
@Incubating public interface NamedObjectRepository
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
-
-
-
Method Detail
-
getSqmQueryMemento
NamedSqmQueryMemento getSqmQueryMemento(String queryName)
-
visitSqmQueryMementos
void visitSqmQueryMementos(Consumer<NamedSqmQueryMemento> action)
-
registerSqmQueryMemento
void registerSqmQueryMemento(String name, NamedSqmQueryMemento descriptor)
-
getNativeQueryMemento
NamedNativeQueryMemento getNativeQueryMemento(String queryName)
-
visitNativeQueryMementos
void visitNativeQueryMementos(Consumer<NamedNativeQueryMemento> action)
-
registerNativeQueryMemento
void registerNativeQueryMemento(String name, NamedNativeQueryMemento descriptor)
-
getCallableQueryMemento
NamedCallableQueryMemento getCallableQueryMemento(String name)
-
visitCallableQueryMementos
void visitCallableQueryMementos(Consumer<NamedCallableQueryMemento> action)
-
registerCallableQueryMemento
void registerCallableQueryMemento(String name, NamedCallableQueryMemento memento)
-
getResultSetMappingMemento
NamedResultSetMappingMemento getResultSetMappingMemento(String mappingName)
-
visitResultSetMappingMementos
void visitResultSetMappingMementos(Consumer<NamedResultSetMappingMemento> action)
-
registerResultSetMappingMemento
void registerResultSetMappingMemento(String name, NamedResultSetMappingMemento memento)
-
checkNamedQueries
Map<String,HibernateException> checkNamedQueries(QueryEngine queryPlanCache)
Perform a validity check on all named queries
-
validateNamedQueries
void validateNamedQueries(QueryEngine queryEngine)
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
void prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)
Prepare for runtime use
-
close
void close()
Release any held resources
-
-