Package org.hibernate.models.spi
Interface ClassDetailsRegistry
- All Known Implementing Classes:
AbstractClassDetailsRegistry,ClassDetailsRegistryImmutable,ClassDetailsRegistryStandard
public interface ClassDetailsRegistry
Registry of all
ClassDetails references- Implementation Specification:
- Quite a few methods here are marked to ignore the fact that they are unused. The expectation is that most of these methods are used by consumers (Hibernate ORM, e.g.). DO NOT REMOVE THEM!!!
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceCreate a CLass Details -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassDetails(String name, ClassDetails classDetails) Adds a managed-class descriptor using the givennameas the registration keyvoidaddClassDetails(ClassDetails classDetails) Adds a managed-class descriptor using its name as the registration key.findClassDetails(String name) Find the managed-class with the givenname, if there is one.voidVisit each registered class detailsvoidforEachDirectSubType(String superTypeName, ClassDetailsRegistry.ClassDetailsConsumer consumer) Visit each direct subtype of the named managed-classdefault ClassDetailsgetClassDetails(String name) Form offindClassDetails(java.lang.String)throwing an exception if no registration is foundgetDirectSubTypes(String superTypeName) Get the list of all direct subtypes for the named managed-class.Makes a copy of this registry whose internal state is immutableresolveClassDetails(String name) Resolves a managed-class by name.resolveClassDetails(String name, ClassDetailsBuilder creator) Resolves a managed-class by name.resolveClassDetails(String name, ClassDetailsRegistry.ClassDetailsCreator creator) Resolve (find or create) ClassDetails by name.
-
Method Details
-
findClassDetails
Find the managed-class with the givenname, if there is one. Returnsnullif there are none registered with that name. -
getClassDetails
Form offindClassDetails(java.lang.String)throwing an exception if no registration is found- Throws:
UnknownClassException- If no registration is found with the givenname
-
forEachClassDetails
Visit each registered class details -
getDirectSubTypes
Get the list of all direct subtypes for the named managed-class. Returnsnullif there are none -
forEachDirectSubType
Visit each direct subtype of the named managed-class -
addClassDetails
Adds a managed-class descriptor using its name as the registration key. -
addClassDetails
Adds a managed-class descriptor using the givennameas the registration key -
resolveClassDetails
Resolves a managed-class by name. If there is currently no such registration, one is created. -
resolveClassDetails
Resolves a managed-class by name. If there is currently no such registration, one is created using the specifiedcreator. -
resolveClassDetails
Resolve (find or create) ClassDetails by name. If there is currently no such registration, one is created using the specifiedcreator. -
makeImmutableCopy
ClassDetailsRegistry makeImmutableCopy()Makes a copy of this registry whose internal state is immutable
-