Package org.hibernate.query.internal
Class NamedObjectRepositoryImpl
- java.lang.Object
-
- org.hibernate.query.internal.NamedObjectRepositoryImpl
-
- All Implemented Interfaces:
NamedObjectRepository
public class NamedObjectRepositoryImpl extends Object implements NamedObjectRepository
-
-
Constructor Summary
Constructors Constructor Description NamedObjectRepositoryImpl(Map<String,NamedSqmQueryMemento> sqmMementoMap, Map<String,NamedNativeQueryMemento> sqlMementoMap, Map<String,NamedCallableQueryMemento> callableMementoMap, Map<String,NamedResultSetMappingMemento> resultSetMappingMementoMap)
-
Method Summary
-
-
-
Constructor Detail
-
NamedObjectRepositoryImpl
public NamedObjectRepositoryImpl(Map<String,NamedSqmQueryMemento> sqmMementoMap, Map<String,NamedNativeQueryMemento> sqlMementoMap, Map<String,NamedCallableQueryMemento> callableMementoMap, Map<String,NamedResultSetMappingMemento> resultSetMappingMementoMap)
-
-
Method Detail
-
getSqmQueryMemento
public NamedSqmQueryMemento getSqmQueryMemento(String queryName)
- Specified by:
getSqmQueryMementoin interfaceNamedObjectRepository
-
visitSqmQueryMementos
public void visitSqmQueryMementos(Consumer<NamedSqmQueryMemento> action)
- Specified by:
visitSqmQueryMementosin interfaceNamedObjectRepository
-
registerSqmQueryMemento
public void registerSqmQueryMemento(String name, NamedSqmQueryMemento descriptor)
- Specified by:
registerSqmQueryMementoin interfaceNamedObjectRepository
-
getNativeQueryMemento
public NamedNativeQueryMemento getNativeQueryMemento(String queryName)
- Specified by:
getNativeQueryMementoin interfaceNamedObjectRepository
-
visitNativeQueryMementos
public void visitNativeQueryMementos(Consumer<NamedNativeQueryMemento> action)
- Specified by:
visitNativeQueryMementosin interfaceNamedObjectRepository
-
registerNativeQueryMemento
public void registerNativeQueryMemento(String name, NamedNativeQueryMemento descriptor)
- Specified by:
registerNativeQueryMementoin interfaceNamedObjectRepository
-
getCallableQueryMemento
public NamedCallableQueryMemento getCallableQueryMemento(String name)
- Specified by:
getCallableQueryMementoin interfaceNamedObjectRepository
-
visitCallableQueryMementos
public void visitCallableQueryMementos(Consumer<NamedCallableQueryMemento> action)
- Specified by:
visitCallableQueryMementosin interfaceNamedObjectRepository
-
registerCallableQueryMemento
public void registerCallableQueryMemento(String name, NamedCallableQueryMemento memento)
- Specified by:
registerCallableQueryMementoin interfaceNamedObjectRepository
-
getResultSetMappingMemento
public NamedResultSetMappingMemento getResultSetMappingMemento(String mappingName)
- Specified by:
getResultSetMappingMementoin interfaceNamedObjectRepository
-
visitResultSetMappingMementos
public void visitResultSetMappingMementos(Consumer<NamedResultSetMappingMemento> action)
- Specified by:
visitResultSetMappingMementosin interfaceNamedObjectRepository
-
registerResultSetMappingMemento
public void registerResultSetMappingMemento(String name, NamedResultSetMappingMemento memento)
- Specified by:
registerResultSetMappingMementoin interfaceNamedObjectRepository
-
resolve
public NamedQueryMemento resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName)
Description copied from interface:NamedObjectRepositoryResolve the named query with the given name.- Specified by:
resolvein interfaceNamedObjectRepository
-
prepare
public void prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)
Description copied from interface:NamedObjectRepositoryPrepare for runtime use- Specified by:
preparein interfaceNamedObjectRepository
-
validateNamedQueries
public void validateNamedQueries(QueryEngine queryEngine)
Description copied from interface:NamedObjectRepositoryValidate the named queries and throw an exception if any are broken- Specified by:
validateNamedQueriesin interfaceNamedObjectRepository
-
checkNamedQueries
public Map<String,HibernateException> checkNamedQueries(QueryEngine queryEngine)
Description copied from interface:NamedObjectRepositoryPerform a validity check on all named queries- Specified by:
checkNamedQueriesin interfaceNamedObjectRepository
-
close
public void close()
Description copied from interface:NamedObjectRepositoryRelease any held resources- Specified by:
closein interfaceNamedObjectRepository
-
-