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.
- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptioncheckNamedQueries(QueryEngine queryPlanCache) Perform a validity check on all named queriesvoidclose()Release any held resourcesgetNativeQueryMemento(String queryName) getResultSetMappingMemento(String mappingName) getSqmQueryMemento(String queryName) voidprepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel) Prepare for runtime usevoidregisterCallableQueryMemento(String name, NamedCallableQueryMemento memento) voidregisterNativeQueryMemento(String name, NamedNativeQueryMemento descriptor) voidregisterResultSetMappingMemento(String name, NamedResultSetMappingMemento memento) voidregisterSqmQueryMemento(String name, NamedSqmQueryMemento descriptor) resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName) Resolve the named query with the given name.voidvalidateNamedQueries(QueryEngine queryEngine) Validate the named queries and throw an exception if any are brokenvoidvoidvoidvoid
-
Method Details
-
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
-