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 class
XMLContext.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.void
applyDiscoveredAttributeConverters(ConverterRegistry converterRegistry)
static String
buildSafeClassName(String className, String defaultPackageName)
static String
buildSafeClassName(String className, XMLContext.Default defaults)
List<JaxbEntityMappings>
getAllDocuments()
List<String>
getDefaultEntityListeners()
XMLContext.Default
getDefaultWithGlobalCatalogAndSchema()
XMLContext.Default
getDefaultWithoutGlobalCatalogAndSchema(String className)
JaxbEntityListener
getEntityListenerOverride(String className)
ManagedType
getManagedTypeOverride(String className)
boolean
hasContext()
-
-
-
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)
-
-