| Access | Constructor and Description |
|---|---|
| public | MetadataProject(PersistenceUnitInfo
- the PersistenceUnitInfo puInfo, AbstractSession - the Session 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. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addAccessor(ClassAccessor accessor)
INTERNAL: This method will add the descriptor to the actual EclipseLink project, if it has not already been added. |
| public void | |
| public void | |
| public void | |
| public void | addComplexMetadataType(ComplexTypeMetadata type)
INTERNAL: Add the named PLSQL or Oracle complex metadata type. |
| public void | addConverter(AbstractConverterMetadata converter)
INTERNAL: Add a abstract converter metadata to the project. |
| public void | addConverterAccessor(ConverterAccessor converterAccessor)
INTERNAL: Add a abstract converter metadata to the project. |
| public void | |
| public void | addDirectCollectionAccessor(MappingAccessor accessor)
INTERNAL: Store basic collection accessors for later processing and quick look up. |
| public void | addEmbeddableAccessor(EmbeddableAccessor accessor)
INTERNAL: Add an embeddable accessor to this project. |
| public void | |
| public void | |
| public void | addEntityGraph(AttributeGroup entityGraph)
INTERNAL: Add the given entity graph (internal attribute group). |
| public void | addEntityMappings(XMLEntityMappings entityMappings)
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. |
| public void | |
| public void | |
| public void | |
| public void | addMappedSuperclass(MappedSuperclassAccessor mappedSuperclass)
INTERNAL: Add a mapped superclass accessor to this project. |
| public void | addMetamodelMappedSuperclass(MappedSuperclassAccessor
- The mappedSuperclass accessor for the field on the mappedSuperclass accessor, MetadataDescriptor childDescriptor)INTERNAL: The metamodel API requires that descriptors exist for mappedSuperclasses in order to obtain their mappings. |
| public void | addPartitioningPolicy(AbstractPartitioningMetadata policy)
INTERNAL: Add the partitioning policy by name. |
| public void | |
| public void | |
| public void | addRootEmbeddableAccessor(EmbeddableAccessor accessor)
INTERNAL: Add a root level embeddable accessor. |
| public void | addSequenceGenerator(SequenceGeneratorMetadata sequenceGenerator, String defaultCatalog, String defaultSchema)
INTERNAL: Add a sequence generator metadata to the project. |
| public void | addSQLResultSetMapping(SQLResultSetMappingMetadata sqlResultSetMapping)
INTERNAL: Add an sql results set mapping to the project overriding where necessary. |
| public void | addStaticMetamodelClass(MetadataAnnotation annotation, MetadataClass metamodelClass)
INTERNAL: Add a discovered metamodel class to the session. |
| public void | addTableGenerator(TableGeneratorMetadata tableGenerator, String defaultCatalog, String defaultSchema)
INTERNAL: Add a table generator metadata to the project. |
| public void | addUuidGenerator(UuidGeneratorMetadata uuidGenerator)
INTERNAL: Add a UUID generator metadata to the project. |
| public void | |
| protected void | createDynamicClass(MetadataDescriptor descriptor, Map<String, MetadataDescriptor> virtualEntities, DynamicClassLoader dcl)
INTERNAL: Create the dynamic class using JPA metadata processed descriptors. |
| public void | createDynamicClasses(ClassLoader loader)
INTERNAL: Create the dynamic class using JPA metadata processed descriptors. |
| protected void | createDynamicType(MetadataDescriptor descriptor, Map<String, DynamicType> dynamicTypes, DynamicClassLoader dcl)
INTERNAL: Create the dynamic types using JPA metadata processed descriptors. |
| private void | |
| public void | |
| public boolean | excludeDefaultMappings()
INTERNAL: Return true if an exclude-default-mappings setting have been set for this persistence unit. |
| public ClassAccessor | |
| public List | |
| public Collection | |
| public ConverterAccessor | |
| public ComplexTypeMetadata | getComplexTypeMetadata(String name)
INTERNAL: Return the named PLSQL or Oracle complex metadata type. |
| public MetadataProcessor | |
| public AbstractConverterMetadata | |
| public ConverterAccessor | |
| public Map | |
| public Set | |
| public EmbeddableAccessor | getEmbeddableAccessor(MetadataClass cls)
INTERNAL: This method will attempt to look up the embeddable accessor for the reference class provided. |
| public EmbeddableAccessor | getEmbeddableAccessor(MetadataClass cls, boolean checkIsIdClass)
INTERNAL: This method will attempt to look up the embeddable accessor for the reference class provided. |
| public EmbeddableAccessor | getEmbeddableAccessor(String className)
INTERNAL: Return the embeddable accessor with the given classname. |
| public Collection | |
| public EntityAccessor | |
| public EntityAccessor | |
| public Collection | |
| public Collection | |
| public InterfaceAccessor | |
| public MetadataLogger | |
| public MappedSuperclassAccessor | |
| public MappedSuperclassAccessor | |
| public Collection | |
| public Collection | getMetamodelMappedSuperclasses()
INTERNAL: Returns the collection of metamodel MappedSuperclassAccessors. |
| public AbstractPartitioningMetadata | |
| protected String | |
| protected String | |
| public PersistenceUnitInfo | |
| public XMLPersistenceUnitMetadata | |
| public Project | |
| public Collection | |
| public AbstractSession | |
| protected String | getSharedCacheModeName()
INTERNAL: This method will return the name of the SharedCacheMode if specified in the persistence.xml file. |
| public boolean | getShouldForceFieldNamesToUpperCase()
INTERNAL: Used to uppercase default and user defined column field names |
| public List | |
| public Collection | getWeavableClassNames()
INTERNAL: Returns all those classes in this project that are available for weaving. |
| public boolean | hasAutoApplyConverter(MetadataClass cls)
Return true if there is an auto-apply converter for the given cls. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | hasEntityGraph(String name)
INTERNAL: Return true is there exist and entity graph already for the given name. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | hasVirtualClasses()
INTERNAL: Return true if the entity manager factory for this project has any virtual classes |
| public boolean | |
| public boolean | isSharedCacheModeAll()
INTERNAL: Return true if the caching has been specified as ALL in the persistence.xml. |
| public boolean | isSharedCacheModeDisableSelective()
INTERNAL: Return true if the caching has been specified as DISABLE_SELECTIVE in the persistence.xml. |
| public boolean | isSharedCacheModeEnableSelective()
INTERNAL: Return true if the caching has been specified as ENABLE_SELECTIVE in the persistence.xml. |
| public boolean | isSharedCacheModeNone()
INTERNAL: Return true if the caching has been specified as NONE in the persistence.xml. |
| public boolean | isSharedCacheModeUnspecified()
INTERNAL: Return true if the caching has been specified as UNSPECIFIED in the persistence.xml. |
| public boolean | isWeavingEagerEnabled()
INTERNAL: Return if the project should use indirection for eager relationships. |
| public boolean | |
| public boolean | isWeavingLazyEnabled()
INTERNAL: Return if the project should use indirection for lazy relationships. |
| public boolean | isXMLMappingMetadataComplete()
INTERNAL: Return true if an xml-mapping-metadata-complete setting has been set for this persistence unit. |
| protected void | |
| public void | processDirectCollectionAccessors()
INTERNAL: Process any BasicCollection annotation and/or BasicMap annotation that were found. |
| protected void | |
| 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. |
| protected void | |
| protected void | |
| protected void | processPartitioning()
Process the partitioning metedata and add the PartitioningPolicys to the project. |
| protected void | processPersistenceUnitMetadata(MetadataDescriptor descriptor)
INTERNAL: Process any and all persistence unit metadata and defaults to the given descriptor. |
| public void | processQueries()
INTERNAL: Process the named native queries we found and add them to the given session. |
| protected void | |
| 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. |
| public void | processStage2()
INTERNAL: Stage 2 processing will perform the following tasks: - process all direct mapping accessors from entities, embeddables and mapped superclasses. |
| public void | processStage3(PersistenceUnitProcessor.
INTERNAL: Stage 3 processing does all the extra processing that couldn't be completed in the first two stages of processing. |
| 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 |
| public void | removeEmbeddableAccessor(MetadataClass metadataClass)
INTERNAL: Used from the canonical model generator. |
| public void | |
| public void | removeMappedSuperclassAccessor(MetadataClass metadataClass)
INTERNAL: Used from the canonical model generator. |
| private String | |
| public void | setAllowNativeSQLQueries(boolean allowNativeSQLQueries)
INTERNAL: When at least one entity is found that is multitenant, we turn off native SQL queries. |
| public void | setCompositeProcessor(MetadataProcessor compositeProcessor)
INTERNAL: set compositeProcessor that owns this and pear MetadataProcessors used to create composite persistence unit. |
| public void | |
| public void | |
| public void | setShouldForceFieldNamesToUpperCase(boolean shouldForceFieldNamesToUpperCase)
INTERNAL: Used to uppercase default and user defined column field names |
| public String | |
| public boolean | |
| public boolean | usesMultitenantSharedCache()
INTERNAL: Return true if the entity manager factory cache for this project is intended to be shared amongst multitenants. |
| public boolean | usesMultitenantSharedEmf()
INTERNAL: Return true if the entity manager factory for this project is intended to be shared amongst multitenants. |