public class MetadataProcessor
extends java.lang.Object
Constructor and Description |
---|
MetadataProcessor()
INTERNAL:
Empty processor to be used as a composite processor.
|
MetadataProcessor(javax.persistence.spi.PersistenceUnitInfo puInfo,
AbstractSession session,
java.lang.ClassLoader loader,
boolean weaveLazy,
boolean weaveEager,
boolean weaveFetchGroups,
boolean multitenantSharedEmf,
boolean multitenantSharedCache,
java.util.Map predeployProperties,
MetadataProcessor compositeProcessor)
INTERNAL:
Called from EntityManagerSetupImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
addCompositeMemberProcessor(MetadataProcessor compositeMemberProcessor)
INTERNAL:
Add containedProcessor to compositeProcessor.
|
void |
addEntityListeners()
INTERNAL:
Method to place EntityListener's on the descriptors from the given
session.
|
void |
addNamedQueries()
INTERNAL:
Method to place NamedQueries and NamedNativeQueries on the given session.
|
void |
addStructConverterNames()
INTERNAL:
Adds a list of StructConverter string names that were defined in the
metadata of this project to the native EclipseLink project.
|
void |
createDynamicClasses()
INTERNAL:
During EntityManagerSetup deploy, using the real class loader we must
create our dynamic classes.
|
void |
createRestInterfaces() |
MetadataProcessor |
getCompositeProcessor()
INTERNAL:
Return compositeProcessor.
|
MetadataFactory |
getMetadataFactory()
INTERNAL:
|
MetadataSource |
getMetadataSource()
INTERNAL:
|
java.util.Set<MetadataProject> |
getPearProjects(MetadataProject project)
INTERNAL:
Returns projects owned by compositeProcessor minus the passed project.
|
java.util.Set<java.lang.String> |
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.
|
MetadataProject |
getProject()
INTERNAL:
|
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.
|
void |
processCustomizers()
INTERNAL:
Process the customizer for those entities and embeddables that have one
defined.
|
void |
processEntityMappings(PersistenceUnitProcessor.Mode mode)
INTERNAL:
Performs the initialization of the persistence unit classes and then
processes the xml metadata.
|
void |
processORMMetadata(PersistenceUnitProcessor.Mode mode)
INTERNAL:
Process the ORM metadata on this processors metadata project
(representing a single persistence-unit)
|
void |
setClassLoader(java.lang.ClassLoader loader)
INTERNAL:
Use this method to set the correct class loader that should be used
during processing.
|
void |
setMetadataSource(MetadataSource source)
INTERNAL:
Use this method to set the MetadataSource class to use for loading
extensible mappings
|
public MetadataProcessor()
public MetadataProcessor(javax.persistence.spi.PersistenceUnitInfo puInfo, AbstractSession session, java.lang.ClassLoader loader, boolean weaveLazy, boolean weaveEager, boolean weaveFetchGroups, boolean multitenantSharedEmf, boolean multitenantSharedCache, java.util.Map predeployProperties, MetadataProcessor compositeProcessor)
public void addCompositeMemberProcessor(MetadataProcessor compositeMemberProcessor)
public void addEntityListeners()
public void addNamedQueries()
public void createDynamicClasses()
public void createRestInterfaces()
public MetadataProcessor getCompositeProcessor()
public MetadataFactory getMetadataFactory()
public MetadataSource getMetadataSource()
public java.util.Set<MetadataProject> getPearProjects(MetadataProject project)
public java.util.Set<java.lang.String> getPersistenceUnitClassSetFromMappingFiles()
public MetadataProject getProject()
public void addStructConverterNames()
public void loadMappingFiles(boolean throwExceptionOnFail)
public void processCustomizers()
public void processEntityMappings(PersistenceUnitProcessor.Mode mode)
public void processORMMetadata(PersistenceUnitProcessor.Mode mode)
public void setClassLoader(java.lang.ClassLoader loader)
public void setMetadataSource(MetadataSource source)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference