java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings

public class XMLEntityMappings extends ORMetadata
Object to hold onto the XML entity mappings metadata.
Since:
EclipseLink 1.0
  • Constructor Details

    • XMLEntityMappings

      public XMLEntityMappings()
      INTERNAL:
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Specified by:
      equals in class ORMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAccess

      public String getAccess()
      INTERNAL: Used for OX mapping.
    • getAccessMethods

      public AccessMethodsMetadata getAccessMethods()
      INTERNAL: Used for OX mapping.
    • getCatalog

      public String getCatalog()
      INTERNAL: Used for OX mapping.
    • getConverterAccessors

      public List<ConverterAccessor> getConverterAccessors()
      INTERNAL:
    • getConverters

      public List<ConverterMetadata> getConverters()
      INTERNAL:
    • getDefaultCatalog

      protected String getDefaultCatalog()
      INTERNAL: Returns the default catalog. Either from entity-mappings or persistence unit defaults. Note, null could be returned.
    • getDefaultSchema

      protected String getDefaultSchema()
      INTERNAL: Returns the default schema. Either from entity-mappings or persistence unit defaults. Note, null could be returned.
    • getDescription

      public String getDescription()
      INTERNAL: Used for OX mapping.
    • getEmbeddables

      public List<EmbeddableAccessor> getEmbeddables()
      INTERNAL: Used for OX mapping.
    • getEntities

      public List<EntityAccessor> getEntities()
      INTERNAL: Used for OX mapping.
    • getPackageQualifiedClassName

      public String getPackageQualifiedClassName(String className)
      INTERNAL: This convenience method will attempt to fully qualify a class name if required. This assumes that the className value is non-null, and a "qualified" class name contains at least one '.' Future: What about Enum support? Employee.Enum currently would not qualify with the package since there is a dot.
    • getLogger

      public MetadataLogger getLogger()
      INTERNAL: Return the logger from the project.
      Overrides:
      getLogger in class ORMetadata
    • getHashPartitioning

      public List<HashPartitioningMetadata> getHashPartitioning()
      INTERNAL: Used for OX mapping.
    • getMappedSuperclasses

      public List<MappedSuperclassAccessor> getMappedSuperclasses()
      INTERNAL: Used for OX mapping.
    • getMappingFileOrURL

      public String getMappingFileOrURL()
      INTERNAL:
    • getMetadataFactory

      public MetadataFactory getMetadataFactory()
      INTERNAL:
      Overrides:
      getMetadataFactory in class ORMetadata
    • getMixedConverters

      public List<MixedConverterMetadata> getMixedConverters()
      INTERNAL: Used for OX mapping.
    • getNamedNativeQueries

      public List<NamedNativeQueryMetadata> getNamedNativeQueries()
      INTERNAL: Used for OX mapping.
    • getNamedPLSQLStoredFunctionQueries

      public List<NamedPLSQLStoredFunctionQueryMetadata> getNamedPLSQLStoredFunctionQueries()
      INTERNAL: Used for OX mapping.
    • getNamedPLSQLStoredProcedureQueries

      public List<NamedPLSQLStoredProcedureQueryMetadata> getNamedPLSQLStoredProcedureQueries()
      INTERNAL: Used for OX mapping.
    • getNamedQueries

      public List<NamedQueryMetadata> getNamedQueries()
      INTERNAL: Used for OX mapping.
    • getNamedStoredFunctionQueries

      public List<NamedStoredFunctionQueryMetadata> getNamedStoredFunctionQueries()
      INTERNAL: Used for OX mapping.
    • getNamedStoredProcedureQueries

      public List<NamedStoredProcedureQueryMetadata> getNamedStoredProcedureQueries()
      INTERNAL: Used for OX mapping.
    • getObjectTypeConverters

      public List<ObjectTypeConverterMetadata> getObjectTypeConverters()
      INTERNAL: Used for OX mapping.
    • getPackage

      public String getPackage()
      INTERNAL: Used for OX mapping.
    • getPartitioning

      public List<PartitioningMetadata> getPartitioning()
      INTERNAL: Used for OX mapping.
    • getPersistenceUnitMetadata

      public XMLPersistenceUnitMetadata getPersistenceUnitMetadata()
      INTERNAL: Used for OX mapping.
    • getPinnedPartitioning

      public List<PinnedPartitioningMetadata> getPinnedPartitioning()
      INTERNAL: Used for OX mapping.
    • getOracleArrayTypes

      public List<OracleArrayTypeMetadata> getOracleArrayTypes()
      INTERNAL: Used for OX mapping.
    • getOracleObjectTypes

      public List<OracleObjectTypeMetadata> getOracleObjectTypes()
      INTERNAL: Used for OX mapping.
    • getPLSQLRecords

      public List<PLSQLRecordMetadata> getPLSQLRecords()
    • getPLSQLTables

      public List<PLSQLTableMetadata> getPLSQLTables()
      INTERNAL: Used for OX mapping.
    • getProject

      public MetadataProject getProject()
      INTERNAL:
      Overrides:
      getProject in class ORMetadata
    • getRangePartitioning

      public List<RangePartitioningMetadata> getRangePartitioning()
      INTERNAL: Used for OX mapping.
    • getReplicationPartitioning

      public List<ReplicationPartitioningMetadata> getReplicationPartitioning()
      INTERNAL: Used for OX mapping.
    • getRoundRobinPartitioning

      public List<RoundRobinPartitioningMetadata> getRoundRobinPartitioning()
      INTERNAL: Used for OX mapping.
    • getSchema

      public String getSchema()
      INTERNAL: Used for OX mapping.
    • getSequenceGenerators

      public List<SequenceGeneratorMetadata> getSequenceGenerators()
      INTERNAL: Used for OX mapping.
    • getSqlResultSetMappings

      public List<SQLResultSetMappingMetadata> getSqlResultSetMappings()
      INTERNAL: Used for OX mapping.
    • getStructConverters

      public List<StructConverterMetadata> getStructConverters()
      INTERNAL: Used for OX mapping.
    • getTableGenerators

      public List<TableGeneratorMetadata> getTableGenerators()
      INTERNAL: Used for OX mapping.
    • getTenantDiscriminatorColumns

      public List<TenantDiscriminatorColumnMetadata> getTenantDiscriminatorColumns()
      INTERNAL: Used for OX mapping.
    • getTypeConverters

      public List<TypeConverterMetadata> getTypeConverters()
      INTERNAL: Used for OX mapping.
    • getSerializedConverters

      public List<SerializedConverterMetadata> getSerializedConverters()
      INTERNAL: Used for OX mapping.
    • getUnionPartitioning

      public List<UnionPartitioningMetadata> getUnionPartitioning()
      INTERNAL: Used for OX mapping.
    • getUuidGenerators

      public List<UuidGeneratorMetadata> getUuidGenerators()
      INTERNAL: Used for OX mapping.
    • getValuePartitioning

      public List<ValuePartitioningMetadata> getValuePartitioning()
      INTERNAL: Used for OX mapping.
    • getVersion

      public String getVersion()
      INTERNAL: Used for OX mapping.
    • initPersistenceUnitClasses

      public void initPersistenceUnitClasses(HashMap<String,EntityAccessor> allEntities, HashMap<String,EmbeddableAccessor> allEmbeddables)
      INTERNAL: Assumes the correct class loader has been set before calling this method.
    • isEclipseLinkORMFile

      public boolean isEclipseLinkORMFile()
      INTERNAL:
    • loadedForCanonicalModel

      public boolean loadedForCanonicalModel()
      INTERNAL:
    • newXMLEntityMappingsObject

      protected XMLEntityMappings newXMLEntityMappingsObject()
      INTERNAL: Return a new XMLEntityMappings instance. Used for reloading entities and mapped superclasses.
    • process

      public void process()
      INTERNAL: Process the metadata from the <entity-mappings> level except for the classes themselves. They will be processed afterwards and controlled by the MetadataProcessor. Note: this method does a few things of interest. It not only adds metadata to the project but it will also override (that is EclipseLink-ORM-XML-->JPA-XML && JPA-XML-->Annotation) the necessary metadata and log messages to the user. A validation exception could also be thrown. See the related processing methods for more details. Any XML metadata of the types processed below should call these methods. That is, as an example, a converter can be found at the entity-mappings and entity level. Therefore you must ensure that those from levels other than the entity-mappings call these methods as well to ensure consistent metadata processing (and behavior).
    • processEntityMappingsDefaults

      public void processEntityMappingsDefaults(ClassAccessor accessor)
      INTERNAL: Set any entity-mappings defaults if specified. Do not blindly set them since a global setting from the persistence-unit-metadata/defaults may have been set and you do not want to risk removing the global value.
    • processPersistenceUnitMetadata

      public void processPersistenceUnitMetadata()
      INTERNAL: Process the persistence metadata if specified. Any conflicts in elements defined in multiple documents will cause an exception to be thrown (unless an override needs to occur from an eclipselink-orm.xml file). The one exception to this rule is default listeners: all default listeners found will be added to a list in the order that they are read from the instance document(s).
    • reloadEntity

      public EntityAccessor reloadEntity(EntityAccessor accessor, MetadataDescriptor descriptor)
      INTERNAL: We clone/reload an entity class by writing it out to XML and reload it through OX.
      Overrides:
      reloadEntity in class ORMetadata
    • reloadMappedSuperclass

      public MappedSuperclassAccessor reloadMappedSuperclass(MappedSuperclassAccessor accessor, MetadataDescriptor descriptor)
      INTERNAL: We clone/reload a mapped-superclass by writing it out to XML and reload it through OX.
      Overrides:
      reloadMappedSuperclass in class ORMetadata
    • reloadXMLEntityMappingsObject

      protected XMLEntityMappings reloadXMLEntityMappingsObject(XMLEntityMappings xmlEntityMappings)
      INTERNAL:
    • setAccess

      public void setAccess(String access)
      INTERNAL: Used for OX mapping.
    • setAccessMethods

      public void setAccessMethods(AccessMethodsMetadata accessMethods)
      INTERNAL: Used for OX mapping.
    • setCatalog

      public void setCatalog(String catalog)
      INTERNAL: Used for OX mapping.
    • setConverterAccessors

      public void setConverterAccessors(List<ConverterAccessor> converterAccessors)
      INTERNAL:
    • setConverters

      public void setConverters(List<ConverterMetadata> converters)
      INTERNAL:
    • setDescription

      public void setDescription(String description)
      INTERNAL: Used for OX mapping.
    • setEmbeddables

      public void setEmbeddables(List<EmbeddableAccessor> embeddables)
      INTERNAL: Used for OX mapping.
    • setEntities

      public void setEntities(List<EntityAccessor> entities)
      INTERNAL: Used for OX mapping.
    • setHashPartitioning

      public void setHashPartitioning(List<HashPartitioningMetadata> hashPartitioning)
      INTERNAL: Used for OX mapping.
    • setIsEclipseLinkORMFile

      public void setIsEclipseLinkORMFile(boolean isEclipseLinkORMFile)
      INTERNAL:
    • setLoadedForCanonicalModel

      public void setLoadedForCanonicalModel(boolean loadedForCanonicalModel)
      INTERNAL:
    • setLoader

      public void setLoader(ClassLoader loader)
      INTERNAL:
    • setMappedSuperclasses

      public void setMappedSuperclasses(List<MappedSuperclassAccessor> mappedSuperclasses)
      INTERNAL: Used for OX mapping.
    • setMappingFile

      public void setMappingFile(String mappingFileNameOrURL)
      INTERNAL:
    • setMetadataFactory

      public void setMetadataFactory(MetadataFactory factory)
      INTERNAL:
    • setMixedConverters

      public void setMixedConverters(List<MixedConverterMetadata> mixedConverters)
      INTERNAL: Used for OX mapping.
    • setNamedNativeQueries

      public void setNamedNativeQueries(List<NamedNativeQueryMetadata> namedNativeQueries)
      INTERNAL: Used for OX mapping.
    • setNamedPLSQLStoredFunctionQueries

      public void setNamedPLSQLStoredFunctionQueries(List<NamedPLSQLStoredFunctionQueryMetadata> namedPLSQLStoredFunctionQueries)
      INTERNAL: Used for OX mapping.
    • setNamedPLSQLStoredProcedureQueries

      public void setNamedPLSQLStoredProcedureQueries(List<NamedPLSQLStoredProcedureQueryMetadata> namedPLSQLStoredProcedureQueries)
      INTERNAL: Used for OX mapping.
    • setNamedQueries

      public void setNamedQueries(List<NamedQueryMetadata> namedQueries)
      INTERNAL: Used for OX mapping.
    • setNamedStoredFunctionQueries

      public void setNamedStoredFunctionQueries(List<NamedStoredFunctionQueryMetadata> namedStoredFunctionQueries)
      INTERNAL: Used for OX mapping.
    • setNamedStoredProcedureQueries

      public void setNamedStoredProcedureQueries(List<NamedStoredProcedureQueryMetadata> namedStoredProcedureQueries)
      INTERNAL: Used for OX mapping.
    • setObjectTypeConverters

      public void setObjectTypeConverters(List<ObjectTypeConverterMetadata> objectTypeConverters)
      INTERNAL: Used for OX mapping.
    • setPackage

      public void setPackage(String pkg)
      INTERNAL: Used for OX mapping.
    • setPartitioning

      public void setPartitioning(List<PartitioningMetadata> partitioning)
      INTERNAL: Used for OX mapping.
    • setPersistenceUnitMetadata

      public void setPersistenceUnitMetadata(XMLPersistenceUnitMetadata persistenceUnitMetadata)
      INTERNAL: Used for OX mapping.
    • setPinnedPartitioning

      public void setPinnedPartitioning(List<PinnedPartitioningMetadata> pinnedPartitioning)
      INTERNAL: Used for OX mapping.
    • setOracleArrayTypes

      public void setOracleArrayTypes(List<OracleArrayTypeMetadata> arrayTypes)
      INTERNAL: Used for OX mapping.
    • setOracleObjectTypes

      public void setOracleObjectTypes(List<OracleObjectTypeMetadata> objectTypes)
      INTERNAL: Used for OX mapping.
    • setPLSQLRecords

      public void setPLSQLRecords(List<PLSQLRecordMetadata> records)
      INTERNAL: Used for OX mapping.
    • setPLSQLTables

      public void setPLSQLTables(List<PLSQLTableMetadata> tables)
      INTERNAL: Used for OX mapping.
    • setProject

      public void setProject(MetadataProject project)
      INTERNAL: Set the project reference for this EntityMappings object.
      Overrides:
      setProject in class ORMetadata
    • setRangePartitioning

      public void setRangePartitioning(List<RangePartitioningMetadata> rangePartitioning)
      INTERNAL: Used for OX mapping.
    • setReplicationPartitioning

      public void setReplicationPartitioning(List<ReplicationPartitioningMetadata> replicationPartitioning)
      INTERNAL: Used for OX mapping.
    • setRoundRobinPartitioning

      public void setRoundRobinPartitioning(List<RoundRobinPartitioningMetadata> roundRobinPartitioning)
      INTERNAL: Used for OX mapping.
    • setSchema

      public void setSchema(String schema)
      INTERNAL: Used for OX mapping.
    • setSequenceGenerators

      public void setSequenceGenerators(List<SequenceGeneratorMetadata> sequenceGenerators)
      INTERNAL: Used for OX mapping.
    • setSqlResultSetMappings

      public void setSqlResultSetMappings(List<SQLResultSetMappingMetadata> sqlResultSetMappings)
      INTERNAL: Used for OX mapping.
    • setStructConverters

      public void setStructConverters(List<StructConverterMetadata> structConverters)
      INTERNAL: Used for OX mapping.
    • setTableGenerators

      public void setTableGenerators(List<TableGeneratorMetadata> tableGenerators)
      INTERNAL: Used for OX mapping.
    • setTenantDiscriminatorColumns

      public void setTenantDiscriminatorColumns(List<TenantDiscriminatorColumnMetadata> tenantDiscriminatorColumns)
      INTERNAL: Used for OX mapping.
    • setTypeConverters

      public void setTypeConverters(List<TypeConverterMetadata> typeConverters)
      INTERNAL: Used for OX mapping.
    • setSerializedConverters

      public void setSerializedConverters(List<SerializedConverterMetadata> serializedConverters)
      INTERNAL: Used for OX mapping.
    • setUnionPartitioning

      public void setUnionPartitioning(List<UnionPartitioningMetadata> unionPartitioning)
      INTERNAL: Used for OX mapping.
    • setUuidGenerators

      public void setUuidGenerators(List<UuidGeneratorMetadata> uuidGenerators)
      INTERNAL: Used for OX mapping.
    • setValuePartitioning

      public void setValuePartitioning(List<ValuePartitioningMetadata> valuePartitioning)
      INTERNAL: Used for OX mapping.
    • setVersion

      public void setVersion(String version)
      INTERNAL: Used for OX mapping.