| Modifier and Type | Field and Description |
|---|---|
| protected Set | |
| protected MetadataProcessor | |
| protected MetadataFactory | |
| protected ClassLoader | |
| protected MetadataSource | |
| protected Map | |
| protected MetadataProject | |
| protected AbstractSession |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MetadataProcessor(PersistenceUnitInfo puInfo, AbstractSession session, ClassLoader loader, boolean weaveLazy, boolean weaveEager, boolean weaveFetchGroups, boolean multitenantSharedEmf, boolean multitenantSharedCache, Map<String, Object> predeployProperties, MetadataProcessor compositeProcessor)
INTERNAL: Called from EntityManagerSetupImpl. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCompositeMemberProcessor(MetadataProcessor compositeMemberProcessor)
INTERNAL: Add containedProcessor to compositeProcessor. |
| public void | addEntityListeners()
INTERNAL: Method to place EntityListener's on the descriptors from the given session. |
| public void | addNamedQueries()
INTERNAL: Method to place NamedQueries and NamedNativeQueries on the given session. |
| public void | addStructConverterNames()
INTERNAL: Adds a list of StructConverter string names that were defined in the metadata of this project to the native EclipseLink project. |
| public void | createDynamicClasses()
INTERNAL: During EntityManagerSetup deploy, using the real class loader we must create our dynamic classes. |
| public MetadataProcessor | |
| public MetadataFactory | |
| public MetadataSource | |
| public Set | getPearProjects(MetadataProject project)
INTERNAL: Returns projects owned by compositeProcessor minus the passed project. |
| public Set | getPersistenceUnitClassSetFromMappingFiles()
INTERNAL: Return a set of class names for each entity, embeddable and mapped superclass found in the mapping files to be processed by the MetadataProcessor. |
| public MetadataProject | |
| protected SessionLog | |
| protected void | handleORMException(RuntimeException e, String mappingFile, boolean throwException)
INTERNAL: Handle an exception that occurred while processing ORM xml. |
| protected void | initPersistenceUnitClasses()
INTERNAL: This method is responsible for discovering all the entity classes for this PU and adding corresponding MetadataDescriptor in the MetadataProject. |
| public void | loadMappingFiles(boolean throwExceptionOnFail)
INTERNAL: This method is responsible for figuring out list of mapping files to read into XMLEntityMappings objects and store on the project. |
| private void | loadMappingFiles(String
null to load all mapping files referenced from the persistence unit (ie custom.xml),
specific value to load particular mapping file (ie orm.xml) mappingFile, boolean false to log warning if referenced mapping file is not found,
true to throw an Exception instead throwExceptionOnFail)
|
| protected void | |
| protected void | |
| public void | processCustomizers()
INTERNAL: Process the customizer for those entities and embeddables that have one defined. |
| public void | processEntityMappings(PersistenceUnitProcessor.
INTERNAL: Performs the initialization of the persistence unit classes and then processes the xml metadata. |
| public void | processORMMetadata(PersistenceUnitProcessor.
INTERNAL: Process the ORM metadata on this processors metadata project (representing a single persistence-unit) |
| public void | setClassLoader(ClassLoader loader)
INTERNAL: Use this method to set the correct class loader that should be used during processing. |
| public void | setMetadataSource(MetadataSource source)
INTERNAL: Use this method to set the MetadataSource class to use for loading extensible mappings |
| m_compositeMemberProcessors | back to summary |
|---|---|
| protected Set<MetadataProcessor> m_compositeMemberProcessors | |
| m_compositeProcessor | back to summary |
|---|---|
| protected MetadataProcessor m_compositeProcessor | |
| m_factory | back to summary |
|---|---|
| protected MetadataFactory m_factory | |
| m_loader | back to summary |
|---|---|
| protected ClassLoader m_loader | |
| m_metadataSource | back to summary |
|---|---|
| protected MetadataSource m_metadataSource | |
| m_predeployProperties | back to summary |
|---|---|
| protected Map<String, Object> m_predeployProperties | |
| m_project | back to summary |
|---|---|
| protected MetadataProject m_project | |
| m_session | back to summary |
|---|---|
| protected AbstractSession m_session | |
| MetadataProcessor | back to summary |
|---|---|
| public MetadataProcessor() INTERNAL: Empty processor to be used as a composite processor. | |
| MetadataProcessor | back to summary |
|---|---|
| public MetadataProcessor(PersistenceUnitInfo puInfo, AbstractSession session, ClassLoader loader, boolean weaveLazy, boolean weaveEager, boolean weaveFetchGroups, boolean multitenantSharedEmf, boolean multitenantSharedCache, Map<String, Object> predeployProperties, MetadataProcessor compositeProcessor) INTERNAL: Called from EntityManagerSetupImpl. The 'real' EJB 3.0 processing that includes XML and annotations. | |
| addCompositeMemberProcessor | back to summary |
|---|---|
| public void addCompositeMemberProcessor(MetadataProcessor compositeMemberProcessor) INTERNAL: Add containedProcessor to compositeProcessor. | |
| addEntityListeners | back to summary |
|---|---|
| public void addEntityListeners() INTERNAL: Method to place EntityListener's on the descriptors from the given session. This call is made from the EntityManagerSetup deploy call. | |
| addNamedQueries | back to summary |
|---|---|
| public void addNamedQueries() INTERNAL: Method to place NamedQueries and NamedNativeQueries on the given session. This call is made from the EntityManagerSetup deploy call. | |
| addStructConverterNames | back to summary |
|---|---|
| public void addStructConverterNames() INTERNAL: Adds a list of StructConverter string names that were defined in the metadata of this project to the native EclipseLink project. These StructConverters can be added to the Project to be processed later | |
| createDynamicClasses | back to summary |
|---|---|
| public void createDynamicClasses() INTERNAL: During EntityManagerSetup deploy, using the real class loader we must create our dynamic classes. | |
| getCompositeProcessor | back to summary |
|---|---|
| public MetadataProcessor getCompositeProcessor() INTERNAL: Return compositeProcessor. | |
| getMetadataFactory | back to summary |
|---|---|
| public MetadataFactory getMetadataFactory() INTERNAL: | |
| getMetadataSource | back to summary |
|---|---|
| public MetadataSource getMetadataSource() INTERNAL: | |
| getPearProjects | back to summary |
|---|---|
| public Set INTERNAL: Returns projects owned by compositeProcessor minus the passed project. | |
| getPersistenceUnitClassSetFromMappingFiles | back to summary |
|---|---|
| public Set INTERNAL: Return a set of class names for each entity, embeddable and mapped superclass found in the mapping files to be processed by the MetadataProcessor. | |
| getProject | back to summary |
|---|---|
| public MetadataProject getProject() INTERNAL: | |
| getSessionLog | back to summary |
|---|---|
| protected SessionLog getSessionLog() INTERNAL: Return the SessionLog from the Session. If the session is null, return the AbstractSessionLog's SessionLog.
| |
| handleORMException | back to summary |
|---|---|
| protected void handleORMException(RuntimeException e, String mappingFile, boolean throwException) INTERNAL: Handle an exception that occurred while processing ORM xml. | |
| initPersistenceUnitClasses | back to summary |
|---|---|
| protected void initPersistenceUnitClasses() INTERNAL: This method is responsible for discovering all the entity classes for this PU and adding corresponding MetadataDescriptor in the MetadataProject. This method will also gather all the weavable classes for this PU. Currently, entity and embeddable classes are weavable. Note The order of processing should not be changed as the steps are dependent on one another. | |
| loadMappingFiles | back to summary |
|---|---|
| public void loadMappingFiles(boolean throwExceptionOnFail) INTERNAL: This method is responsible for figuring out list of mapping files to read into XMLEntityMappings objects and store on the project. Note, the order the files are discovered and read is very important so do not change the order of invocation. | |
| loadMappingFiles | back to summary |
|---|---|
private void loadMappingFiles(String mappingFile, boolean throwExceptionOnFail)
| |
| loadSpecifiedMappingFiles | back to summary |
|---|---|
| protected void loadSpecifiedMappingFiles(boolean throwExceptionOnFail) INTERNAL: | |
| loadStandardMappingFiles | back to summary |
|---|---|
| protected void loadStandardMappingFiles(String ormXMLFile) INTERNAL: | |
| processCustomizers | back to summary |
|---|---|
| public void processCustomizers() INTERNAL: Process the customizer for those entities and embeddables that have one defined. This must be the last thing called on this processor before cleanup. | |
| processEntityMappings | back to summary |
|---|---|
| public void processEntityMappings(PersistenceUnitProcessor. INTERNAL: Performs the initialization of the persistence unit classes and then processes the xml metadata. Note Do not change the order of invocation of various methods. | |
| processORMMetadata | back to summary |
|---|---|
| public void processORMMetadata(PersistenceUnitProcessor. INTERNAL: Process the ORM metadata on this processors metadata project (representing a single persistence-unit) | |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader loader) INTERNAL: Use this method to set the correct class loader that should be used during processing. Currently, the class loader should only change once, from preDeploy to deploy. | |
| setMetadataSource | back to summary |
|---|---|
| public void setMetadataSource(MetadataSource source) INTERNAL: Use this method to set the MetadataSource class to use for loading extensible mappings | |