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:
getSqmQueryMemento
in interfaceNamedObjectRepository
-
visitSqmQueryMementos
public void visitSqmQueryMementos(Consumer<NamedSqmQueryMemento> action)
- Specified by:
visitSqmQueryMementos
in interfaceNamedObjectRepository
-
registerSqmQueryMemento
public void registerSqmQueryMemento(String name, NamedSqmQueryMemento descriptor)
- Specified by:
registerSqmQueryMemento
in interfaceNamedObjectRepository
-
getNativeQueryMemento
public NamedNativeQueryMemento getNativeQueryMemento(String queryName)
- Specified by:
getNativeQueryMemento
in interfaceNamedObjectRepository
-
visitNativeQueryMementos
public void visitNativeQueryMementos(Consumer<NamedNativeQueryMemento> action)
- Specified by:
visitNativeQueryMementos
in interfaceNamedObjectRepository
-
registerNativeQueryMemento
public void registerNativeQueryMemento(String name, NamedNativeQueryMemento descriptor)
- Specified by:
registerNativeQueryMemento
in interfaceNamedObjectRepository
-
getCallableQueryMemento
public NamedCallableQueryMemento getCallableQueryMemento(String name)
- Specified by:
getCallableQueryMemento
in interfaceNamedObjectRepository
-
visitCallableQueryMementos
public void visitCallableQueryMementos(Consumer<NamedCallableQueryMemento> action)
- Specified by:
visitCallableQueryMementos
in interfaceNamedObjectRepository
-
registerCallableQueryMemento
public void registerCallableQueryMemento(String name, NamedCallableQueryMemento memento)
- Specified by:
registerCallableQueryMemento
in interfaceNamedObjectRepository
-
getResultSetMappingMemento
public NamedResultSetMappingMemento getResultSetMappingMemento(String mappingName)
- Specified by:
getResultSetMappingMemento
in interfaceNamedObjectRepository
-
visitResultSetMappingMementos
public void visitResultSetMappingMementos(Consumer<NamedResultSetMappingMemento> action)
- Specified by:
visitResultSetMappingMementos
in interfaceNamedObjectRepository
-
registerResultSetMappingMemento
public void registerResultSetMappingMemento(String name, NamedResultSetMappingMemento memento)
- Specified by:
registerResultSetMappingMemento
in interfaceNamedObjectRepository
-
resolve
public NamedQueryMemento resolve(SessionFactoryImplementor sessionFactory, MetadataImplementor bootMetamodel, String registrationName)
Description copied from interface:NamedObjectRepository
Resolve the named query with the given name.- Specified by:
resolve
in interfaceNamedObjectRepository
-
prepare
public void prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)
Description copied from interface:NamedObjectRepository
Prepare for runtime use- Specified by:
prepare
in interfaceNamedObjectRepository
-
validateNamedQueries
public void validateNamedQueries(QueryEngine queryEngine)
Description copied from interface:NamedObjectRepository
Validate the named queries and throw an exception if any are broken- Specified by:
validateNamedQueries
in interfaceNamedObjectRepository
-
checkNamedQueries
public Map<String,HibernateException> checkNamedQueries(QueryEngine queryEngine)
Description copied from interface:NamedObjectRepository
Perform a validity check on all named queries- Specified by:
checkNamedQueries
in interfaceNamedObjectRepository
-
close
public void close()
Description copied from interface:NamedObjectRepository
Release any held resources- Specified by:
close
in interfaceNamedObjectRepository
-
-