Module org.eclipse.persistence.jpa
Class ForeignKeyMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.ForeignKeyMetadata
- Direct Known Subclasses:
PrimaryKeyForeignKeyMetadata
INTERNAL:
Object to process JPA foreign key metadata.
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 2.5
-
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Used for XML loading.ForeignKeyMetadata(String xmlElement) INTERNAL: Used for XML loading.ForeignKeyMetadata(MetadataAnnotation foreignKey, MetadataAccessor accessor) INTERNAL: Used for annotation loading.ForeignKeyMetadata(ForeignKeyMetadata foreignKey) INTERNAL: Used for annotation loading from subclasses of ForeignKeyMetadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getName()INTERNAL: Used for OX mapping.inthashCode()protected booleanINTERNAL:protected booleanINTERNAL:protected booleanINTERNAL:voidprocess(DatabaseTable table) INTERNAL: Process this JPA metadata into an EclipseLink ForeignKeyConstraint.voidprocess(DatabaseTable table, List<String> sourceFields, List<String> targetFields, DatabaseTable targetTable) INTERNAL: Process this JPA metadata into an EclipseLink ForeignKeyConstraint.voidsetConstraintMode(String constraintMode) INTERNAL: Used for OX mapping.voidsetForeignKeyDefinition(String foreignKeyDefinition) INTERNAL: Used for OX mapping.voidINTERNAL: 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, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Field Details
-
m_name
-
m_constraintMode
-
m_foreignKeyDefinition
-
-
Constructor Details
-
ForeignKeyMetadata
public ForeignKeyMetadata()INTERNAL: Used for XML loading. -
ForeignKeyMetadata
INTERNAL: Used for annotation loading from subclasses of ForeignKeyMetadata. -
ForeignKeyMetadata
INTERNAL: Used for annotation loading. -
ForeignKeyMetadata
INTERNAL: Used for XML loading.
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equalsin classORMetadata
-
hashCode
public int hashCode() -
getConstraintMode
INTERNAL: Used for OX mapping. -
getForeignKeyDefinition
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
isConstraintMode
protected boolean isConstraintMode()INTERNAL: -
isNoConstraintMode
protected boolean isNoConstraintMode()INTERNAL: -
isProviderDefaultConstraintMode
protected boolean isProviderDefaultConstraintMode()INTERNAL: -
process
INTERNAL: Process this JPA metadata into an EclipseLink ForeignKeyConstraint. -
process
public void process(DatabaseTable table, List<String> sourceFields, List<String> targetFields, DatabaseTable targetTable) INTERNAL: Process this JPA metadata into an EclipseLink ForeignKeyConstraint. -
setConstraintMode
INTERNAL: Used for OX mapping. -
setForeignKeyDefinition
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping.
-