Module org.eclipse.persistence.jpa
Class XMLEntityMappings
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings
Object to hold onto the XML entity mappings metadata.
- Since:
- EclipseLink 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL:INTERNAL:protected String
INTERNAL: Returns the default catalog.protected String
INTERNAL: Returns the default schema.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Return the logger from the project.INTERNAL: Used for OX mapping.INTERNAL:INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getPackageQualifiedClassName
(String className) INTERNAL: This convenience method will attempt to fully qualify a class name if required.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
void
initPersistenceUnitClasses
(HashMap<String, EntityAccessor> allEntities, HashMap<String, EmbeddableAccessor> allEmbeddables) INTERNAL: Assumes the correct class loader has been set before calling this method.boolean
INTERNAL:boolean
INTERNAL:protected XMLEntityMappings
INTERNAL: Return a new XMLEntityMappings instance.void
process()
INTERNAL: Process the metadata from the <entity-mappings> level except for the classes themselves.void
processEntityMappingsDefaults
(ClassAccessor accessor) INTERNAL: Set any entity-mappings defaults if specified.void
INTERNAL: Process the persistence metadata if specified.reloadEntity
(EntityAccessor accessor, MetadataDescriptor descriptor) INTERNAL: We clone/reload an entity class by writing it out to XML and reload it through OX.reloadMappedSuperclass
(MappedSuperclassAccessor accessor, MetadataDescriptor descriptor) INTERNAL: We clone/reload a mapped-superclass by writing it out to XML and reload it through OX.protected XMLEntityMappings
reloadXMLEntityMappingsObject
(XMLEntityMappings xmlEntityMappings) INTERNAL:void
INTERNAL: Used for OX mapping.void
setAccessMethods
(AccessMethodsMetadata accessMethods) INTERNAL: Used for OX mapping.void
setCatalog
(String catalog) INTERNAL: Used for OX mapping.void
setConverterAccessors
(List<ConverterAccessor> converterAccessors) INTERNAL:void
setConverters
(List<ConverterMetadata> converters) INTERNAL:void
setDescription
(String description) INTERNAL: Used for OX mapping.void
setEmbeddables
(List<EmbeddableAccessor> embeddables) INTERNAL: Used for OX mapping.void
setEntities
(List<EntityAccessor> entities) INTERNAL: Used for OX mapping.void
setHashPartitioning
(List<HashPartitioningMetadata> hashPartitioning) INTERNAL: Used for OX mapping.void
setIsEclipseLinkORMFile
(boolean isEclipseLinkORMFile) INTERNAL:void
setLoadedForCanonicalModel
(boolean loadedForCanonicalModel) INTERNAL:void
setLoader
(ClassLoader loader) INTERNAL:void
setMappedSuperclasses
(List<MappedSuperclassAccessor> mappedSuperclasses) INTERNAL: Used for OX mapping.void
setMappingFile
(String mappingFileNameOrURL) INTERNAL:void
setMetadataFactory
(MetadataFactory factory) INTERNAL:void
setMixedConverters
(List<MixedConverterMetadata> mixedConverters) INTERNAL: Used for OX mapping.void
setNamedNativeQueries
(List<NamedNativeQueryMetadata> namedNativeQueries) INTERNAL: Used for OX mapping.void
setNamedPLSQLStoredFunctionQueries
(List<NamedPLSQLStoredFunctionQueryMetadata> namedPLSQLStoredFunctionQueries) INTERNAL: Used for OX mapping.void
setNamedPLSQLStoredProcedureQueries
(List<NamedPLSQLStoredProcedureQueryMetadata> namedPLSQLStoredProcedureQueries) INTERNAL: Used for OX mapping.void
setNamedQueries
(List<NamedQueryMetadata> namedQueries) INTERNAL: Used for OX mapping.void
setNamedStoredFunctionQueries
(List<NamedStoredFunctionQueryMetadata> namedStoredFunctionQueries) INTERNAL: Used for OX mapping.void
setNamedStoredProcedureQueries
(List<NamedStoredProcedureQueryMetadata> namedStoredProcedureQueries) INTERNAL: Used for OX mapping.void
setObjectTypeConverters
(List<ObjectTypeConverterMetadata> objectTypeConverters) INTERNAL: Used for OX mapping.void
setOracleArrayTypes
(List<OracleArrayTypeMetadata> arrayTypes) INTERNAL: Used for OX mapping.void
setOracleObjectTypes
(List<OracleObjectTypeMetadata> objectTypes) INTERNAL: Used for OX mapping.void
setPackage
(String pkg) INTERNAL: Used for OX mapping.void
setPartitioning
(List<PartitioningMetadata> partitioning) INTERNAL: Used for OX mapping.void
setPersistenceUnitMetadata
(XMLPersistenceUnitMetadata persistenceUnitMetadata) INTERNAL: Used for OX mapping.void
setPinnedPartitioning
(List<PinnedPartitioningMetadata> pinnedPartitioning) INTERNAL: Used for OX mapping.void
setPLSQLRecords
(List<PLSQLRecordMetadata> records) INTERNAL: Used for OX mapping.void
setPLSQLTables
(List<PLSQLTableMetadata> tables) INTERNAL: Used for OX mapping.void
setProject
(MetadataProject project) INTERNAL: Set the project reference for this EntityMappings object.void
setRangePartitioning
(List<RangePartitioningMetadata> rangePartitioning) INTERNAL: Used for OX mapping.void
setReplicationPartitioning
(List<ReplicationPartitioningMetadata> replicationPartitioning) INTERNAL: Used for OX mapping.void
setRoundRobinPartitioning
(List<RoundRobinPartitioningMetadata> roundRobinPartitioning) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
setSequenceGenerators
(List<SequenceGeneratorMetadata> sequenceGenerators) INTERNAL: Used for OX mapping.void
setSerializedConverters
(List<SerializedConverterMetadata> serializedConverters) INTERNAL: Used for OX mapping.void
setSqlResultSetMappings
(List<SQLResultSetMappingMetadata> sqlResultSetMappings) INTERNAL: Used for OX mapping.void
setStructConverters
(List<StructConverterMetadata> structConverters) INTERNAL: Used for OX mapping.void
setTableGenerators
(List<TableGeneratorMetadata> tableGenerators) INTERNAL: Used for OX mapping.void
setTenantDiscriminatorColumns
(List<TenantDiscriminatorColumnMetadata> tenantDiscriminatorColumns) INTERNAL: Used for OX mapping.void
setTypeConverters
(List<TypeConverterMetadata> typeConverters) INTERNAL: Used for OX mapping.void
setUnionPartitioning
(List<UnionPartitioningMetadata> unionPartitioning) INTERNAL: Used for OX mapping.void
setUuidGenerators
(List<UuidGeneratorMetadata> uuidGenerators) INTERNAL: Used for OX mapping.void
setValuePartitioning
(List<ValuePartitioningMetadata> valuePartitioning) INTERNAL: Used for OX mapping.void
setVersion
(String version) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getMetadataClass, getMetadataClass, getMetadataClass, getName, getPrimitiveClassForName, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
XMLEntityMappings
public XMLEntityMappings()INTERNAL:
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getAccess
INTERNAL: Used for OX mapping. -
getAccessMethods
INTERNAL: Used for OX mapping. -
getCatalog
INTERNAL: Used for OX mapping. -
getConverterAccessors
INTERNAL: -
getConverters
INTERNAL: -
getDefaultCatalog
INTERNAL: Returns the default catalog. Either from entity-mappings or persistence unit defaults. Note, null could be returned. -
getDefaultSchema
INTERNAL: Returns the default schema. Either from entity-mappings or persistence unit defaults. Note, null could be returned. -
getDescription
INTERNAL: Used for OX mapping. -
getEmbeddables
INTERNAL: Used for OX mapping. -
getEntities
INTERNAL: Used for OX mapping. -
getPackageQualifiedClassName
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
INTERNAL: Return the logger from the project.- Overrides:
getLogger
in classORMetadata
-
getHashPartitioning
INTERNAL: Used for OX mapping. -
getMappedSuperclasses
INTERNAL: Used for OX mapping. -
getMappingFileOrURL
INTERNAL: -
getMetadataFactory
INTERNAL:- Overrides:
getMetadataFactory
in classORMetadata
-
getMixedConverters
INTERNAL: Used for OX mapping. -
getNamedNativeQueries
INTERNAL: Used for OX mapping. -
getNamedPLSQLStoredFunctionQueries
INTERNAL: Used for OX mapping. -
getNamedPLSQLStoredProcedureQueries
INTERNAL: Used for OX mapping. -
getNamedQueries
INTERNAL: Used for OX mapping. -
getNamedStoredFunctionQueries
INTERNAL: Used for OX mapping. -
getNamedStoredProcedureQueries
INTERNAL: Used for OX mapping. -
getObjectTypeConverters
INTERNAL: Used for OX mapping. -
getPackage
INTERNAL: Used for OX mapping. -
getPartitioning
INTERNAL: Used for OX mapping. -
getPersistenceUnitMetadata
INTERNAL: Used for OX mapping. -
getPinnedPartitioning
INTERNAL: Used for OX mapping. -
getOracleArrayTypes
INTERNAL: Used for OX mapping. -
getOracleObjectTypes
INTERNAL: Used for OX mapping. -
getPLSQLRecords
-
getPLSQLTables
INTERNAL: Used for OX mapping. -
getProject
INTERNAL:- Overrides:
getProject
in classORMetadata
-
getRangePartitioning
INTERNAL: Used for OX mapping. -
getReplicationPartitioning
INTERNAL: Used for OX mapping. -
getRoundRobinPartitioning
INTERNAL: Used for OX mapping. -
getSchema
INTERNAL: Used for OX mapping. -
getSequenceGenerators
INTERNAL: Used for OX mapping. -
getSqlResultSetMappings
INTERNAL: Used for OX mapping. -
getStructConverters
INTERNAL: Used for OX mapping. -
getTableGenerators
INTERNAL: Used for OX mapping. -
getTenantDiscriminatorColumns
INTERNAL: Used for OX mapping. -
getTypeConverters
INTERNAL: Used for OX mapping. -
getSerializedConverters
INTERNAL: Used for OX mapping. -
getUnionPartitioning
INTERNAL: Used for OX mapping. -
getUuidGenerators
INTERNAL: Used for OX mapping. -
getValuePartitioning
INTERNAL: Used for OX mapping. -
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
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
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
INTERNAL: We clone/reload an entity class by writing it out to XML and reload it through OX.- Overrides:
reloadEntity
in classORMetadata
-
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 classORMetadata
-
reloadXMLEntityMappingsObject
INTERNAL: -
setAccess
INTERNAL: Used for OX mapping. -
setAccessMethods
INTERNAL: Used for OX mapping. -
setCatalog
INTERNAL: Used for OX mapping. -
setConverterAccessors
INTERNAL: -
setConverters
INTERNAL: -
setDescription
INTERNAL: Used for OX mapping. -
setEmbeddables
INTERNAL: Used for OX mapping. -
setEntities
INTERNAL: Used for OX mapping. -
setHashPartitioning
INTERNAL: Used for OX mapping. -
setIsEclipseLinkORMFile
public void setIsEclipseLinkORMFile(boolean isEclipseLinkORMFile) INTERNAL: -
setLoadedForCanonicalModel
public void setLoadedForCanonicalModel(boolean loadedForCanonicalModel) INTERNAL: -
setLoader
INTERNAL: -
setMappedSuperclasses
INTERNAL: Used for OX mapping. -
setMappingFile
INTERNAL: -
setMetadataFactory
INTERNAL: -
setMixedConverters
INTERNAL: Used for OX mapping. -
setNamedNativeQueries
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
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
INTERNAL: Used for OX mapping. -
setPackage
INTERNAL: Used for OX mapping. -
setPartitioning
INTERNAL: Used for OX mapping. -
setPersistenceUnitMetadata
INTERNAL: Used for OX mapping. -
setPinnedPartitioning
INTERNAL: Used for OX mapping. -
setOracleArrayTypes
INTERNAL: Used for OX mapping. -
setOracleObjectTypes
INTERNAL: Used for OX mapping. -
setPLSQLRecords
INTERNAL: Used for OX mapping. -
setPLSQLTables
INTERNAL: Used for OX mapping. -
setProject
INTERNAL: Set the project reference for this EntityMappings object.- Overrides:
setProject
in classORMetadata
-
setRangePartitioning
INTERNAL: Used for OX mapping. -
setReplicationPartitioning
public void setReplicationPartitioning(List<ReplicationPartitioningMetadata> replicationPartitioning) INTERNAL: Used for OX mapping. -
setRoundRobinPartitioning
INTERNAL: Used for OX mapping. -
setSchema
INTERNAL: Used for OX mapping. -
setSequenceGenerators
INTERNAL: Used for OX mapping. -
setSqlResultSetMappings
INTERNAL: Used for OX mapping. -
setStructConverters
INTERNAL: Used for OX mapping. -
setTableGenerators
INTERNAL: Used for OX mapping. -
setTenantDiscriminatorColumns
public void setTenantDiscriminatorColumns(List<TenantDiscriminatorColumnMetadata> tenantDiscriminatorColumns) INTERNAL: Used for OX mapping. -
setTypeConverters
INTERNAL: Used for OX mapping. -
setSerializedConverters
INTERNAL: Used for OX mapping. -
setUnionPartitioning
INTERNAL: Used for OX mapping. -
setUuidGenerators
INTERNAL: Used for OX mapping. -
setValuePartitioning
INTERNAL: Used for OX mapping. -
setVersion
INTERNAL: Used for OX mapping.
-