Class MetadataProject
- Since:
- TopLink EJB 3.0 Reference Implementation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetadataProject(PersistenceUnitInfo puInfo, AbstractSession session, boolean weaveLazy, boolean weaveEager, boolean weaveFetchGroups, boolean multitenantSharedEmf, boolean multitenantSharedCache) INTERNAL: Create and return a new MetadataProject with puInfo as its PersistenceUnitInfo, session as its Session and weavingEnabled as its global dynamic weaving state. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAccessor(ClassAccessor accessor) INTERNAL: This method will add the descriptor to the actual EclipseLink project, if it has not already been added.voidaddAccessorWithCustomizer(ClassAccessor accessor) INTERNAL:voidaddAccessorWithDerivedId(ClassAccessor accessor) INTERNAL:voidaddAlias(String alias, MetadataDescriptor descriptor) INTERNAL:voidINTERNAL: Add the named PLSQL or Oracle complex metadata type.voidaddConverter(AbstractConverterMetadata converter) INTERNAL: Add a abstract converter metadata to the project.voidaddConverterAccessor(ConverterAccessor converterAccessor) INTERNAL: Add a abstract converter metadata to the project.voidaddDefaultListener(EntityListenerMetadata defaultListener) INTERNAL:voidaddDirectCollectionAccessor(MappingAccessor accessor) INTERNAL: Store basic collection accessors for later processing and quick look up.voidaddEmbeddableAccessor(EmbeddableAccessor accessor) INTERNAL: Add an embeddable accessor to this project.voidaddEmbeddableMappingAccessor(MappingAccessor accessor) INTERNAL:voidaddEntityAccessor(EntityAccessor accessor) INTERNAL: Add an entity accessor to this project.voidaddEntityGraph(AttributeGroup entityGraph) INTERNAL: Add the given entity graph (internal attribute group).voidaddEntityMappings(XMLEntityMappings entityMappings) INTERNAL: The avoid processing the same mapping file twice (e.g.voidaddGeneratedValue(GeneratedValueMetadata generatedvalue, MetadataClass entityClass) INTERNAL:voidaddIdClass(String idClassName) INTERNAL: Add EmbeddedId and IdClass ids to the projectvoidaddInterfaceAccessor(InterfaceAccessor accessor) INTERNAL: Add a InterfaceAccessor to this project.voidaddMappedSuperclass(MappedSuperclassAccessor mappedSuperclass) INTERNAL: Add a mapped superclass accessor to this project.voidaddMetamodelMappedSuperclass(MappedSuperclassAccessor accessor, MetadataDescriptor childDescriptor) INTERNAL: The metamodel API requires that descriptors exist for mappedSuperclasses in order to obtain their mappings.voidINTERNAL: Add the partitioning policy by name.voidaddQuery(NamedQueryMetadata query) INTERNAL: Add a query to the project overriding where necessary.voidaddRelationshipAccessor(RelationshipAccessor accessor) INTERNAL:voidaddRootEmbeddableAccessor(EmbeddableAccessor accessor) INTERNAL: Add a root level embeddable accessor.voidaddSequenceGenerator(SequenceGeneratorMetadata sequenceGenerator, String defaultCatalog, String defaultSchema) INTERNAL: Add a sequence generator metadata to the project.voidaddSQLResultSetMapping(SQLResultSetMappingMetadata sqlResultSetMapping) INTERNAL: Add an sql results set mapping to the project overriding where necessary.voidaddStaticMetamodelClass(MetadataAnnotation annotation, MetadataClass metamodelClass) INTERNAL: Add a discovered metamodel class to the session.voidaddTableGenerator(TableGeneratorMetadata tableGenerator, String defaultCatalog, String defaultSchema) INTERNAL: Add a table generator metadata to the project.voidaddUuidGenerator(UuidGeneratorMetadata uuidGenerator) INTERNAL: Add a UUID generator metadata to the project.voidaddVirtualClass(ClassAccessor accessor) INTERNAL: Add virtual class accessor to the project.protected voidcreateDynamicClass(MetadataDescriptor descriptor, Map<String, MetadataDescriptor> virtualEntities, DynamicClassLoader dcl) INTERNAL: Create the dynamic class using JPA metadata processed descriptors.voidcreateDynamicClasses(ClassLoader loader) INTERNAL: Create the dynamic class using JPA metadata processed descriptors.protected voidcreateDynamicType(MetadataDescriptor descriptor, Map<String, DynamicType> dynamicTypes, DynamicClassLoader dcl) INTERNAL: Create the dynamic types using JPA metadata processed descriptors.voidINTERNAL: Set if the project should use indirection for lazy relationships.booleanINTERNAL: Return true if an exclude-default-mappings setting have been set for this persistence unit.getAccessor(String className) INTERNAL: Return the accessor for the given class.INTERNAL:INTERNAL:Return the converter for the auto apply class type.getComplexTypeMetadata(String name) INTERNAL: Return the named PLSQL or Oracle complex metadata type.INTERNAL:getConverter(String name) INTERNAL:INTERNAL:INTERNAL:INTERNAL:getEmbeddableAccessor(String className) INTERNAL: Return the embeddable accessor with the given classname.INTERNAL: This method will attempt to look up the embeddable accessor for the reference class provided.getEmbeddableAccessor(MetadataClass cls, boolean checkIsIdClass) INTERNAL: This method will attempt to look up the embeddable accessor for the reference class provided.INTERNAL: Return the embeddable accessor with the given classname.getEntityAccessor(String className) INTERNAL: Return the entity accessor for the given class name.INTERNAL: Return the entity accessor for the given class name.INTERNAL:INTERNAL:getInterfaceAccessor(String className) INTERNAL: Return the entity accessor for the given class.INTERNAL: Return the logger used by the processor.getMappedSuperclassAccessor(String className) INTERNAL:INTERNAL:INTERNAL:INTERNAL: Returns the collection of metamodel MappedSuperclassAccessors.getPartitioningPolicy(String name) INTERNAL: Return the named partitioning policy.protected StringINTERNAL: Return the persistence unit default catalog.protected StringINTERNAL: Return the persistence unit default schema.INTERNAL:INTERNAL:INTERNAL: Return the core API Project associated with this MetadataProject.INTERNAL: Add a root level embeddable accessor.INTERNAL:protected StringINTERNAL: This method will return the name of the SharedCacheMode if specified in the persistence.xml file.booleanINTERNAL: Used to uppercase default and user defined column field namesINTERNAL:INTERNAL: Returns all those classes in this project that are available for weaving.booleanReturn true if there is an auto-apply converter for the given cls.booleanhasConverter(String name) INTERNAL:booleanINTERNAL:booleanhasEmbeddable(String className) INTERNAL:booleanINTERNAL:booleanINTERNAL:booleanhasEntity(MetadataClass cls) INTERNAL:booleanhasEntityGraph(String name) INTERNAL: Return true is there exist and entity graph already for the given name.booleanhasEntityThatImplementsInterface(String interfaceName) INTERNAL:booleanINTERNAL:booleanhasMappedSuperclass(String className) INTERNAL:booleanINTERNAL:booleanINTERNAL:booleanINTERNAL: Return true if the entity manager factory for this project has any virtual classesbooleanisIdClass(MetadataClass idClass) INTERNAL:booleanINTERNAL: Return true if the caching has been specified as ALL in the persistence.xml.booleanINTERNAL: Return true if the caching has been specified as DISABLE_SELECTIVE in the persistence.xml.booleanINTERNAL: Return true if the caching has been specified as ENABLE_SELECTIVE in the persistence.xml.booleanINTERNAL: Return true if the caching has been specified as NONE in the persistence.xml.booleanINTERNAL: Return true if the caching has been specified as UNSPECIFIED in the persistence.xml.booleanINTERNAL: Return if the project should use indirection for eager relationships.booleanINTERNAL: Return if the project should process fetch groups.booleanINTERNAL: Return if the project should use indirection for lazy relationships.booleanINTERNAL: Return true if an xml-mapping-metadata-complete setting has been set for this persistence unit.protected voidINTERNAL: Process descriptors with IDs derived from relationships.voidINTERNAL: Process any BasicCollection annotation and/or BasicMap annotation that were found.protected voidINTERNAL: Process the embeddable mapping accessors.protected voidINTERNAL: This method will iterate through all the entities in the PU and check if we should add them to a variable one to one mapping that was either defined (incompletely) or defaulted.protected voidINTERNAL: Process the non-owning relationship accessors.protected voidINTERNAL: Process the owning relationship accessors.protected voidProcess the partitioning metedata and add the PartitioningPolicys to the project.protected voidprocessPersistenceUnitMetadata(MetadataDescriptor descriptor) INTERNAL: Process any and all persistence unit metadata and defaults to the given descriptor.voidINTERNAL: Process the named native queries we found and add them to the given session.protected voidINTERNAL: Process the sequencing information.voidINTERNAL: Stage 1 processing is a pre-processing stage that will perform the following tasks: - gather a list of mapping accessors for all entities and embeddables.voidINTERNAL: Stage 2 processing will perform the following tasks: - process all direct mapping accessors from entities, embeddables and mapped superclasses.voidINTERNAL: Stage 3 processing does all the extra processing that couldn't be completed in the first two stages of processing.voidprocessTable(TableMetadata table, String defaultName, String defaultCatalog, String defaultSchema, ORMetadata owner) INTERNAL: Common table processing for table, secondary table, join table, collection table and table generatorsvoidremoveEmbeddableAccessor(MetadataClass metadataClass) INTERNAL: Used from the canonical model generator.voidremoveEntityAccessor(MetadataClass metadataClass) INTERNAL: Used from the canonical model generator.voidremoveMappedSuperclassAccessor(MetadataClass metadataClass) INTERNAL: Used from the canonical model generator.voidsetAllowNativeSQLQueries(boolean allowNativeSQLQueries) INTERNAL: When at least one entity is found that is multitenant, we turn off native SQL queries.voidsetCompositeProcessor(MetadataProcessor compositeProcessor) INTERNAL: set compositeProcessor that owns this and pear MetadataProcessors used to create composite persistence unit.voidsetPersistenceUnitMetadata(XMLPersistenceUnitMetadata persistenceUnitMetadata) INTERNAL:voidsetSharedCacheMode(SharedCacheMode m_sharedCacheMode) INTERNAL: Sets the SharedCacheMode value.voidsetShouldForceFieldNamesToUpperCase(boolean shouldForceFieldNamesToUpperCase) INTERNAL: Used to uppercase default and user defined column field namestoString()INTERNAL:booleanINTERNAL:booleanINTERNAL: Return true if the entity manager factory cache for this project is intended to be shared amongst multitenants.booleanINTERNAL: Return true if the entity manager factory for this project is intended to be shared amongst multitenants.
-
Field Details
-
DEFAULT_AUTO_GENERATOR
- See Also:
-
DEFAULT_TABLE_GENERATOR
- See Also:
-
DEFAULT_SEQUENCE_GENERATOR
- See Also:
-
DEFAULT_IDENTITY_GENERATOR
- See Also:
-
DEFAULT_UUID_GENERATOR
- See Also:
-
-
Constructor Details
-
MetadataProject
public MetadataProject(PersistenceUnitInfo puInfo, AbstractSession session, boolean weaveLazy, boolean weaveEager, boolean weaveFetchGroups, boolean multitenantSharedEmf, boolean multitenantSharedCache) INTERNAL: Create and return a new MetadataProject with puInfo as its PersistenceUnitInfo, session as its Session and weavingEnabled as its global dynamic weaving state.- Parameters:
puInfo- - the PersistenceUnitInfosession- - the Session
-
-
Method Details
-
addAccessor
INTERNAL: This method will add the descriptor to the actual EclipseLink project, if it has not already been added. This method if called for entities and embeddable classes (which are both weavable classes). -
addAccessorWithCustomizer
INTERNAL: -
addAccessorWithDerivedId
INTERNAL: -
addAlias
INTERNAL: -
addConverter
INTERNAL: Add a abstract converter metadata to the project. The actual processing isn't done until an accessor referencing the converter is processed. -
addConverterAccessor
INTERNAL: Add a abstract converter metadata to the project. The actual processing isn't done until an accessor referencing the converter is processed. -
addDefaultListener
INTERNAL: -
addDirectCollectionAccessor
INTERNAL: Store basic collection accessors for later processing and quick look up. -
addEmbeddableAccessor
INTERNAL: Add an embeddable accessor to this project. Assumes the embeddable needs to be added. That is, does not check if it already exists and cause a merge. The caller is responsible for that. -
addEmbeddableMappingAccessor
INTERNAL: -
addEntityAccessor
INTERNAL: Add an entity accessor to this project. Assumes the entity needs to be added. That is, does not check if it already exists and cause a merge. The caller is responsible for that. -
addEntityGraph
INTERNAL: Add the given entity graph (internal attribute group). -
addEntityMappings
INTERNAL: The avoid processing the same mapping file twice (e.g. user may explicitly specify the orm.xml file) we store the list of entity mappings in a map keyed on their URL. -
addGeneratedValue
INTERNAL: -
addIdClass
INTERNAL: Add EmbeddedId and IdClass ids to the project -
addInterfaceAccessor
INTERNAL: Add a InterfaceAccessor to this project. -
addMappedSuperclass
INTERNAL: Add a mapped superclass accessor to this project. Assumes the mapped superclass needs to be added. That is, does not check if it already exists and cause a merge. The caller is responsible for that. At runtime, this map will contain mapped superclasses from XML only. The canonical model processor will populate all mapped superclasses in this map. -
addMetamodelMappedSuperclass
public void addMetamodelMappedSuperclass(MappedSuperclassAccessor accessor, MetadataDescriptor childDescriptor) INTERNAL: The metamodel API requires that descriptors exist for mappedSuperclasses in order to obtain their mappings.In order to accomplish this, this method that is called from EntityAccessor will ensure that the descriptors on all mappedSuperclass accessors are setup so that they can be specially processed later in MetadataProject.processStage2() - where the m_mappedSuperclassAccessors Map is required.
We do not use the non-persisting MAPPED_SUPERCLASS_RESERVED_PK_NAME PK field. Normally when the MappedSuperclass is part of an inheritance hierarchy of the form MS->MS->E, where there is an PK Id on the root Entity E, we need to add the MAPPED_SUPERCLASS_RESERVED_PK_NAME PK field solely for metadata processing to complete. Why? because even though we treat MappedSuperclass objects as a RelationalDescriptor - we only persist RelationalDescriptor objects that relate to concrete Entities.
This method is referenced by EntityAccessor.addPotentialMappedSuperclass() during an initial predeploy() and later during a deploy()
- Parameters:
accessor- - The mappedSuperclass accessor for the field on the mappedSuperclass- Since:
- EclipseLink 1.2 for the JPA 2.0 Reference Implementation
-
addPartitioningPolicy
INTERNAL: Add the partitioning policy by name. -
addComplexMetadataType
INTERNAL: Add the named PLSQL or Oracle complex metadata type. -
addQuery
INTERNAL: Add a query to the project overriding where necessary. -
addRelationshipAccessor
INTERNAL: -
addRootEmbeddableAccessor
INTERNAL: Add a root level embeddable accessor. -
addSequenceGenerator
public void addSequenceGenerator(SequenceGeneratorMetadata sequenceGenerator, String defaultCatalog, String defaultSchema) INTERNAL: Add a sequence generator metadata to the project. The actual processing isn't done till processSequencing is called. -
addUuidGenerator
INTERNAL: Add a UUID generator metadata to the project. The actual processing isn't done till processSequencing is called. -
addSQLResultSetMapping
INTERNAL: Add an sql results set mapping to the project overriding where necessary. -
addStaticMetamodelClass
INTERNAL: Add a discovered metamodel class to the session. -
addTableGenerator
public void addTableGenerator(TableGeneratorMetadata tableGenerator, String defaultCatalog, String defaultSchema) INTERNAL: Add a table generator metadata to the project. The actual processing isn't done till processSequencing is called. -
addVirtualClass
INTERNAL: Add virtual class accessor to the project. A virtual class is one that has VIRTUAL access and the class does not exist on the classpath. -
createDynamicClass
protected void createDynamicClass(MetadataDescriptor descriptor, Map<String, MetadataDescriptor> virtualEntities, DynamicClassLoader dcl) INTERNAL: Create the dynamic class using JPA metadata processed descriptors. Called at deploy time after all metadata processing has completed. -
createDynamicClasses
INTERNAL: Create the dynamic class using JPA metadata processed descriptors. Called at deploy time after all metadata processing has completed. -
createDynamicType
protected void createDynamicType(MetadataDescriptor descriptor, Map<String, DynamicType> dynamicTypes, DynamicClassLoader dcl) INTERNAL: Create the dynamic types using JPA metadata processed descriptors. Called at deploy time after all metadata processing has completed. -
disableWeaving
public void disableWeaving()INTERNAL: Set if the project should use indirection for lazy relationships. -
excludeDefaultMappings
public boolean excludeDefaultMappings()INTERNAL: Return true if an exclude-default-mappings setting have been set for this persistence unit. -
getAccessor
INTERNAL: Return the accessor for the given class. Could be an entity or an embeddable. Note: It may return null. -
getAccessorsWithCustomizer
INTERNAL: -
getAllAccessors
INTERNAL: -
getAutoApplyConverter
Return the converter for the auto apply class type. -
getCompositeProcessor
INTERNAL: -
getConverter
INTERNAL: -
getConverterAccessor
INTERNAL: -
getConverterAccessors
INTERNAL: -
getDefaultListeners
INTERNAL: -
getEmbeddableAccessor
INTERNAL: This method will attempt to look up the embeddable accessor for the reference class provided. If no accessor is found, null is returned. -
getEmbeddableAccessor
INTERNAL: This method will attempt to look up the embeddable accessor for the reference class provided. If no accessor is found, null is returned. -
getEmbeddableAccessor
INTERNAL: Return the embeddable accessor with the given classname. -
getEmbeddableAccessors
INTERNAL: Return the embeddable accessor with the given classname. -
getEntityAccessor
INTERNAL: Return the entity accessor for the given class name. -
getEntityAccessor
INTERNAL: Return the entity accessor for the given class name. -
getEntityAccessors
INTERNAL: -
getEntityMappings
INTERNAL: -
getInterfaceAccessor
INTERNAL: Return the entity accessor for the given class. -
getLogger
INTERNAL: Return the logger used by the processor. -
getMappedSuperclassAccessor
INTERNAL: -
getMappedSuperclassAccessor
INTERNAL: -
getMappedSuperclasses
INTERNAL: -
getMetamodelMappedSuperclasses
INTERNAL: Returns the collection of metamodel MappedSuperclassAccessors. This collection is NOT and should NOT be used for any deployment descriptor metadata processing. It is used solely with the metamodel.- Since:
- EclipseLink 1.2 for the JPA 2.0 Reference Implementation
- See Also:
-
getPartitioningPolicy
INTERNAL: Return the named partitioning policy. -
getPersistenceUnitDefaultCatalog
INTERNAL: Return the persistence unit default catalog. -
getPersistenceUnitDefaultSchema
INTERNAL: Return the persistence unit default schema. -
getPersistenceUnitInfo
INTERNAL: -
getPersistenceUnitMetadata
INTERNAL: -
getComplexTypeMetadata
INTERNAL: Return the named PLSQL or Oracle complex metadata type. -
getProject
INTERNAL: Return the core API Project associated with this MetadataProject.- Since:
- EclipseLink 1.2 for the JPA 2.0 Reference Implementation
-
getRootEmbeddableAccessors
INTERNAL: Add a root level embeddable accessor. Nested embeddables will be pre-processed from their roots down.- See Also:
-
getSession
INTERNAL: -
getShouldForceFieldNamesToUpperCase
public boolean getShouldForceFieldNamesToUpperCase()INTERNAL: Used to uppercase default and user defined column field names -
getStructConverters
INTERNAL: -
getWeavableClassNames
INTERNAL: Returns all those classes in this project that are available for weaving. This list currently includes entity, embeddables and mappedsuperclass with no children classes. -
hasAutoApplyConverter
Return true if there is an auto-apply converter for the given cls. -
hasConverter
INTERNAL: -
hasConverterAccessor
INTERNAL: -
hasEmbeddable
INTERNAL: -
hasEmbeddable
INTERNAL: -
hasEntity
INTERNAL: -
hasEntity
INTERNAL: -
hasEntityGraph
INTERNAL: Return true is there exist and entity graph already for the given name. -
hasEntityThatImplementsInterface
INTERNAL: -
hasInterface
INTERNAL: -
hasMappedSuperclass
INTERNAL: -
hasMappedSuperclass
INTERNAL: -
isIdClass
INTERNAL: -
isWeavingEagerEnabled
public boolean isWeavingEagerEnabled()INTERNAL: Return if the project should use indirection for eager relationships. -
isWeavingFetchGroupsEnabled
public boolean isWeavingFetchGroupsEnabled()INTERNAL: Return if the project should process fetch groups. -
isWeavingLazyEnabled
public boolean isWeavingLazyEnabled()INTERNAL: Return if the project should use indirection for lazy relationships. -
isXMLMappingMetadataComplete
public boolean isXMLMappingMetadataComplete()INTERNAL: Return true if an xml-mapping-metadata-complete setting has been set for this persistence unit. -
processEmbeddableMappingAccessors
protected void processEmbeddableMappingAccessors()INTERNAL: Process the embeddable mapping accessors. -
processAccessorsWithDerivedIDs
protected void processAccessorsWithDerivedIDs()INTERNAL: Process descriptors with IDs derived from relationships. This will also complete unfinished validation as well as secondary table processing on entity accessors. This method will fast track some relationship mappings which is ok since simple primary keys will already have been discovered and processed whereas any derived id's and their fast tracking to be processed will be handled now. -
processDirectCollectionAccessors
public void processDirectCollectionAccessors()INTERNAL: Process any BasicCollection annotation and/or BasicMap annotation that were found. They are not processed till after an id has been processed since they rely on one to map the collection table. -
processInterfaceAccessors
protected void processInterfaceAccessors()INTERNAL: This method will iterate through all the entities in the PU and check if we should add them to a variable one to one mapping that was either defined (incompletely) or defaulted. -
processNonOwningRelationshipAccessors
protected void processNonOwningRelationshipAccessors()INTERNAL: Process the non-owning relationship accessors. All owning relationshuip accessors should be processed. Some non-owning relationships may have already been fast tracked to from an element collection containing an embeddable (with a non-owning relationship). -
processOwningRelationshipAccessors
protected void processOwningRelationshipAccessors()INTERNAL: Process the owning relationship accessors. Some may have already been processed through the processing of derived id's therefore don't process them again. -
processPersistenceUnitMetadata
INTERNAL: Process any and all persistence unit metadata and defaults to the given descriptor. This method for will called for every descriptor belonging to this project/persistence unit. -
processQueries
public void processQueries()INTERNAL: Process the named native queries we found and add them to the given session. -
processSequencingAccessors
protected void processSequencingAccessors()INTERNAL: Process the sequencing information. At this point, through validation, it is not possible to have: 1 - a table generator with the generator name equal to DEFAULT_SEQUENCE_GENERATOR or DEFAULT_IDENTITY_GENERATOR 2 - a sequence generator with the name eqaul to DEFAULT_TABLE_GENERATOR or DEFAULT_IDENTITY_GENERATOR 3 - you can't have both a sequence generator and a table generator with the same DEFAULT_AUTO_GENERATOR name.- See Also:
-
processPartitioning
protected void processPartitioning()Process the partitioning metedata and add the PartitioningPolicys to the project. -
processStage1
public void processStage1()INTERNAL: Stage 1 processing is a pre-processing stage that will perform the following tasks: - gather a list of mapping accessors for all entities and embeddables. - discover all global converter specifications. - discover mapped superclasses and inheritance parents. NOTE: This method should only perform any preparatory work like, class discovery, flag settings etc. Hard processing will begin in stage 2.- See Also:
-
processStage2
public void processStage2()INTERNAL: Stage 2 processing will perform the following tasks: - process all direct mapping accessors from entities, embeddables and mapped superclasses. - gather a list of relationship accessors and any other special interest accessors to be processed in stage 3.- See Also:
-
processStage3
INTERNAL: Stage 3 processing does all the extra processing that couldn't be completed in the first two stages of processing. The biggest thing being that all entities will have processed an id by now and we can process those accessors that rely on them. NOTE: The order of invocation here is very important here, see the comments. -
processTable
public void processTable(TableMetadata table, String defaultName, String defaultCatalog, String defaultSchema, ORMetadata owner) INTERNAL: Common table processing for table, secondary table, join table, collection table and table generators -
removeEmbeddableAccessor
INTERNAL: Used from the canonical model generator. Specifically when the user removes the embeddable designation or changes the embeddable to either a mapped superclass or entity. -
removeEntityAccessor
INTERNAL: Used from the canonical model generator. Specifically when the user removes the entity designation or changes the entity to either a mapped superclass or embeddable. -
removeMappedSuperclassAccessor
INTERNAL: Used from the canonical model generator. Specifically when the user removes the mapped superclass designation or changes the mapped superclass to either an entity or embeddable. -
setAllowNativeSQLQueries
public void setAllowNativeSQLQueries(boolean allowNativeSQLQueries) INTERNAL: When at least one entity is found that is multitenant, we turn off native SQL queries. -
setCompositeProcessor
INTERNAL: set compositeProcessor that owns this and pear MetadataProcessors used to create composite persistence unit. -
setPersistenceUnitMetadata
INTERNAL: -
setShouldForceFieldNamesToUpperCase
public void setShouldForceFieldNamesToUpperCase(boolean shouldForceFieldNamesToUpperCase) INTERNAL: Used to uppercase default and user defined column field names -
toString
INTERNAL: -
useDelimitedIdentifier
public boolean useDelimitedIdentifier()INTERNAL: -
hasVirtualClasses
public boolean hasVirtualClasses()INTERNAL: Return true if the entity manager factory for this project has any virtual classes
-