Class XMLContext
- java.lang.Object
-
- org.hibernate.boot.model.internal.XMLContext
-
- All Implemented Interfaces:
Serializable
public class XMLContext extends Object implements Serializable
A helper for consuming orm.xml mappings.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMLContext.Default
-
Constructor Summary
Constructors Constructor Description XMLContext(BootstrapContext bootstrapContext)XMLContext(ClassLoaderAccess classLoaderAccess, ClassmateContext classmateContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>addDocument(JaxbEntityMappings entityMappings)Add the JAXB binding to this context and return the list of added class names.voidapplyDiscoveredAttributeConverters(ConverterRegistry converterRegistry)static StringbuildSafeClassName(String className, String defaultPackageName)static StringbuildSafeClassName(String className, XMLContext.Default defaults)List<JaxbEntityMappings>getAllDocuments()List<String>getDefaultEntityListeners()XMLContext.DefaultgetDefaultWithGlobalCatalogAndSchema()XMLContext.DefaultgetDefaultWithoutGlobalCatalogAndSchema(String className)JaxbEntityListenergetEntityListenerOverride(String className)ManagedTypegetManagedTypeOverride(String className)booleanhasContext()
-
-
-
Constructor Detail
-
XMLContext
public XMLContext(BootstrapContext bootstrapContext)
-
XMLContext
public XMLContext(ClassLoaderAccess classLoaderAccess, ClassmateContext classmateContext)
-
-
Method Detail
-
addDocument
public List<String> addDocument(JaxbEntityMappings entityMappings)
Add the JAXB binding to this context and return the list of added class names.
-
buildSafeClassName
public static String buildSafeClassName(String className, String defaultPackageName)
-
buildSafeClassName
public static String buildSafeClassName(String className, XMLContext.Default defaults)
-
getDefaultWithoutGlobalCatalogAndSchema
public XMLContext.Default getDefaultWithoutGlobalCatalogAndSchema(String className)
-
getDefaultWithGlobalCatalogAndSchema
public XMLContext.Default getDefaultWithGlobalCatalogAndSchema()
-
getManagedTypeOverride
public ManagedType getManagedTypeOverride(String className)
-
getEntityListenerOverride
public JaxbEntityListener getEntityListenerOverride(String className)
-
getAllDocuments
public List<JaxbEntityMappings> getAllDocuments()
-
hasContext
public boolean hasContext()
-
applyDiscoveredAttributeConverters
public void applyDiscoveredAttributeConverters(ConverterRegistry converterRegistry)
-
-