Class AnnotationMetadataSourceProcessorImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl
-
- All Implemented Interfaces:
MetadataSourceProcessor
public class AnnotationMetadataSourceProcessorImpl extends Object implements MetadataSourceProcessor
-
-
Constructor Summary
Constructors Constructor Description AnnotationMetadataSourceProcessorImpl(ManagedResources managedResources, MetadataBuildingContextRootImpl rootMetadataBuildingContext, org.jboss.jandex.IndexView jandexView)
Normal constructor used while processing mapping sources
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishUp()
General finish up step.void
postProcessEntityHierarchies()
void
prepare()
A general preparation step.void
prepareForEntityHierarchyProcessing()
static void
processAdditionalMappings(List<Class<?>> additionalClasses, List<JaxbEntityMappings> additionalJaxbMappings, MetadataBuildingContextRootImpl rootMetadataBuildingContext)
Used as part of processing AdditionalMappingContributions.contributeEntity(Class) "additional" mappings}void
processAuxiliaryDatabaseObjectDefinitions()
Process allAuxiliaryDatabaseObject
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,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.
-
-
-
Constructor Detail
-
AnnotationMetadataSourceProcessorImpl
public AnnotationMetadataSourceProcessorImpl(ManagedResources managedResources, MetadataBuildingContextRootImpl rootMetadataBuildingContext, org.jboss.jandex.IndexView jandexView)
Normal constructor used while processing mapping sources
-
-
Method Detail
-
processAdditionalMappings
public static void processAdditionalMappings(List<Class<?>> additionalClasses, List<JaxbEntityMappings> additionalJaxbMappings, MetadataBuildingContextRootImpl rootMetadataBuildingContext)
Used as part of processing AdditionalMappingContributions.contributeEntity(Class) "additional" mappings}
-
prepare
public void prepare()
Description copied from interface:MetadataSourceProcessor
A general preparation step. Called first.- Specified by:
prepare
in interfaceMetadataSourceProcessor
-
processTypeDefinitions
public void processTypeDefinitions()
Description copied from interface:MetadataSourceProcessor
Process all custom Type definitions. This step has no prerequisites.- Specified by:
processTypeDefinitions
in interfaceMetadataSourceProcessor
-
processQueryRenames
public void processQueryRenames()
Description copied from interface:MetadataSourceProcessor
Process all explicit query renames (imports). This step has no prerequisites.- Specified by:
processQueryRenames
in interfaceMetadataSourceProcessor
-
processNamedQueries
public void processNamedQueries()
Description copied from interface:MetadataSourceProcessor
Process all "root" named queries. These are named queries not defined on a specific entity (which will be handled later duringMetadataSourceProcessor.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()
.- Specified by:
processNamedQueries
in interfaceMetadataSourceProcessor
-
processAuxiliaryDatabaseObjectDefinitions
public void processAuxiliaryDatabaseObjectDefinitions()
Description copied from interface:MetadataSourceProcessor
Process allAuxiliaryDatabaseObject
definitions.This step has no prerequisites.
- Specified by:
processAuxiliaryDatabaseObjectDefinitions
in interfaceMetadataSourceProcessor
-
processIdentifierGenerators
public void processIdentifierGenerators()
Description copied from interface:MetadataSourceProcessor
Process all custom identifier generator declarations,- Specified by:
processIdentifierGenerators
in interfaceMetadataSourceProcessor
-
processFilterDefinitions
public void processFilterDefinitions()
Description copied from interface:MetadataSourceProcessor
Process all filter definitions.This step depends on
MetadataSourceProcessor.processTypeDefinitions()
- Specified by:
processFilterDefinitions
in interfaceMetadataSourceProcessor
-
processFetchProfiles
public void processFetchProfiles()
Description copied from interface:MetadataSourceProcessor
Process all fetch profiles.todo : does this step depend on any others??
- Specified by:
processFetchProfiles
in interfaceMetadataSourceProcessor
-
prepareForEntityHierarchyProcessing
public void prepareForEntityHierarchyProcessing()
- Specified by:
prepareForEntityHierarchyProcessing
in interfaceMetadataSourceProcessor
-
processEntityHierarchies
public void processEntityHierarchies(Set<String> processedEntityNames)
- Specified by:
processEntityHierarchies
in interfaceMetadataSourceProcessor
-
postProcessEntityHierarchies
public void postProcessEntityHierarchies()
- Specified by:
postProcessEntityHierarchies
in interfaceMetadataSourceProcessor
-
processResultSetMappings
public void processResultSetMappings()
Description copied from interface:MetadataSourceProcessor
Process ResultSet mappings for native queries. At the moment, this step hasMetadataSourceProcessor.processEntityHierarchies(java.util.Set<java.lang.String>)
as a prerequisite because the parsing of the returns access the entity bindings.- Specified by:
processResultSetMappings
in interfaceMetadataSourceProcessor
-
finishUp
public void finishUp()
Description copied from interface:MetadataSourceProcessor
General finish up step. Called last.- Specified by:
finishUp
in interfaceMetadataSourceProcessor
-
-