public class MappingDocument extends Object implements HbmLocalMetadataBuildingContext, MetadataSourceProcessor
Constructor and Description |
---|
MappingDocument(JaxbHbmHibernateMapping documentRoot,
Origin origin,
MetadataBuildingContext rootBuildingContext) |
Modifier and Type | Method and Description |
---|---|
String |
determineEntityName(EntityInfo entityElement) |
String |
determineEntityName(String entityName,
String clazz) |
PersistentClass |
findEntityBinding(String entityName,
String clazz) |
void |
finishUp()
General finish up step.
|
BootstrapContext |
getBootstrapContext() |
MetadataBuildingOptions |
getBuildingOptions()
Access to the options specified by the
MetadataBuilder |
ClassLoaderAccess |
getClassLoaderAccess()
Provides access to ClassLoader services when needed during binding
|
JaxbHbmHibernateMapping |
getDocumentRoot() |
MappingDefaults |
getMappingDefaults()
Access to mapping defaults in effect for this context
|
InFlightMetadataCollector |
getMetadataCollector()
Access to the collector of metadata as we build it.
|
ObjectNameNormalizer |
getObjectNameNormalizer()
Not sure how I feel about this exposed here
|
Origin |
getOrigin()
Obtain the origin for this context
|
ToolingHintContext |
getToolingHintContext() |
void |
postProcessEntityHierarchies() |
void |
prepare()
A general preparation step.
|
void |
prepareForEntityHierarchyProcessing() |
void |
processAuxiliaryDatabaseObjectDefinitions()
Process all
AuxiliaryDatabaseObject definitions. |
void |
processEntityHierarchies(Set<String> processedEntityNames) |
void |
processFetchProfiles()
Process all fetch profiles.
|
void |
processFilterDefinitions()
Process all filter definitions.
|
void |
processIdentifierGenerators()
Process all custom identifier generator declarations,
Depends on
MetadataSourceProcessor.processTypeDefinitions() |
void |
processNamedQueries()
Process all "root" named queries.
|
void |
processQueryRenames()
Process all explicit query renames (imports).
|
void |
processResultSetMappings()
Process ResultSet mappings for native queries.
|
void |
processTypeDefinitions()
Process all custom Type definitions.
|
String |
qualifyClassName(String name) |
public MappingDocument(JaxbHbmHibernateMapping documentRoot, Origin origin, MetadataBuildingContext rootBuildingContext)
public JaxbHbmHibernateMapping getDocumentRoot()
public ToolingHintContext getToolingHintContext()
getToolingHintContext
in interface HbmLocalMetadataBuildingContext
public String determineEntityName(EntityInfo entityElement)
determineEntityName
in interface HbmLocalMetadataBuildingContext
public String determineEntityName(String entityName, String clazz)
determineEntityName
in interface HbmLocalMetadataBuildingContext
public String qualifyClassName(String name)
qualifyClassName
in interface HbmLocalMetadataBuildingContext
public PersistentClass findEntityBinding(String entityName, String clazz)
findEntityBinding
in interface HbmLocalMetadataBuildingContext
public Origin getOrigin()
LocalMetadataBuildingContext
getOrigin
in interface LocalMetadataBuildingContext
public BootstrapContext getBootstrapContext()
getBootstrapContext
in interface MetadataBuildingContext
public MetadataBuildingOptions getBuildingOptions()
MetadataBuildingContext
MetadataBuilder
getBuildingOptions
in interface MetadataBuildingContext
public MappingDefaults getMappingDefaults()
MetadataBuildingContext
getMappingDefaults
in interface MetadataBuildingContext
public InFlightMetadataCollector getMetadataCollector()
MetadataBuildingContext
getMetadataCollector
in interface MetadataBuildingContext
public ClassLoaderAccess getClassLoaderAccess()
MetadataBuildingContext
getClassLoaderAccess
in interface MetadataBuildingContext
public ObjectNameNormalizer getObjectNameNormalizer()
MetadataBuildingContext
getObjectNameNormalizer
in interface MetadataBuildingContext
public void prepare()
MetadataSourceProcessor
prepare
in interface MetadataSourceProcessor
public void processTypeDefinitions()
MetadataSourceProcessor
processTypeDefinitions
in interface MetadataSourceProcessor
public void processQueryRenames()
MetadataSourceProcessor
processQueryRenames
in interface MetadataSourceProcessor
public void processFilterDefinitions()
MetadataSourceProcessor
MetadataSourceProcessor.processTypeDefinitions()
processFilterDefinitions
in interface MetadataSourceProcessor
public void processFetchProfiles()
MetadataSourceProcessor
processFetchProfiles
in interface MetadataSourceProcessor
public void processAuxiliaryDatabaseObjectDefinitions()
MetadataSourceProcessor
AuxiliaryDatabaseObject
definitions.
This step has no prerequisites.processAuxiliaryDatabaseObjectDefinitions
in interface MetadataSourceProcessor
public void processNamedQueries()
MetadataSourceProcessor
MetadataSourceProcessor.processEntityHierarchies(java.util.Set<java.lang.String>)
.
This step has no prerequisites. The returns associated with named native
queries can depend on entity binding being complete, but those are handled
later during MetadataSourceProcessor.processResultSetMappings()
.processNamedQueries
in interface MetadataSourceProcessor
public void processIdentifierGenerators()
MetadataSourceProcessor
MetadataSourceProcessor.processTypeDefinitions()
processIdentifierGenerators
in interface MetadataSourceProcessor
public void prepareForEntityHierarchyProcessing()
prepareForEntityHierarchyProcessing
in interface MetadataSourceProcessor
public void processEntityHierarchies(Set<String> processedEntityNames)
processEntityHierarchies
in interface MetadataSourceProcessor
public void postProcessEntityHierarchies()
postProcessEntityHierarchies
in interface MetadataSourceProcessor
public void processResultSetMappings()
MetadataSourceProcessor
MetadataSourceProcessor.processEntityHierarchies(java.util.Set<java.lang.String>)
as a prerequisite because
the parsing of the returns access the entity bindings.processResultSetMappings
in interface MetadataSourceProcessor
public void finishUp()
MetadataSourceProcessor
finishUp
in interface MetadataSourceProcessor
Copyright © 2021 JBoss by Red Hat. All rights reserved.