Module org.eclipse.persistence.jpa
Class AssociationOverrideMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.OverrideMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.AssociationOverrideMetadata
Object to hold onto an association override meta data.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- when loading from annotations, the constructor accepts the metadata
accessor this metadata was loaded from. Used it to look up any
'companion' annotation needed for processing.
- methods should be preserved in alphabetical order.
- Since:
- EclipseLink 1.0
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.AssociationOverrideMetadata
(MetadataAnnotation associationOverride, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:void
setForeignKey
(ForeignKeyMetadata foreignKey) INTERNAL: Used for OX mapping.void
setJoinColumns
(List<JoinColumnMetadata> joinColumns) INTERNAL: Used for OX mapping.void
setJoinTable
(JoinTableMetadata joinTable) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.columns.OverrideMetadata
getIdentifier, getName, setName, shouldOverride
Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
AssociationOverrideMetadata
public AssociationOverrideMetadata()INTERNAL: Used for XML loading. -
AssociationOverrideMetadata
public AssociationOverrideMetadata(MetadataAnnotation associationOverride, MetadataAccessor accessor) INTERNAL: Used for annotation loading.
-
-
Method Details
-
equals
INTERNAL:- Overrides:
equals
in classOverrideMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classOverrideMetadata
-
getIgnoreMappedSuperclassContext
INTERNAL:- Specified by:
getIgnoreMappedSuperclassContext
in classOverrideMetadata
-
getForeignKey
INTERNAL: Used for OX mapping. -
getJoinColumns
INTERNAL: Used for OX mapping. -
getJoinTable
INTERNAL: Used for OX mapping. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
setForeignKey
INTERNAL: Used for OX mapping. -
setJoinColumns
INTERNAL: Used for OX mapping. -
setJoinTable
INTERNAL: Used for OX mapping.
-