Module org.eclipse.persistence.jpa
Class RelationalColumnMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.MetadataColumn
org.eclipse.persistence.internal.jpa.metadata.columns.RelationalColumnMetadata
- Direct Known Subclasses:
JoinColumnMetadata,PrimaryKeyJoinColumnMetadata
INTERNAL:
Object to process JPA relational type colummns into EclipseLink database fields.
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.2
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRelationalColumnMetadata(String xmlElement) INTERNAL: Used for XML loading.RelationalColumnMetadata(MetadataAnnotation relationalColumn, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL:INTERNAL: Used for OX mapping.protected DatabaseFieldINTERNAL:getForeignKeyField(DatabaseField primaryKeyField) INTERNAL: By calling this method we will return the foreign key field with the extra metadata from the primary key field that can not be applied to a referenced column.INTERNAL: Used for OX mapping.booleanINTERNAL: Return true if a foreign key has been defined on this column.inthashCode()booleanINTERNAL:booleanINTERNAL:voidsetForeignKey(ForeignKeyMetadata foreignKey) INTERNAL: Used for OX mapping.voidsetReferencedColumnName(String referencedColumnName) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.columns.MetadataColumn
getColumnDefinition, getDatabaseField, getName, setColumnDefinition, setNameMethods 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
-
Constructor Details
-
RelationalColumnMetadata
INTERNAL: Used for annotation loading. -
RelationalColumnMetadata
INTERNAL: Used for XML loading.
-
-
Method Details
-
equals
INTERNAL:- Overrides:
equalsin classMetadataColumn
-
hashCode
public int hashCode()- Overrides:
hashCodein classMetadataColumn
-
getForeignKey
INTERNAL: Used for OX mapping. -
getForeignKeyField
INTERNAL: -
getForeignKeyField
INTERNAL: By calling this method we will return the foreign key field with the extra metadata from the primary key field that can not be applied to a referenced column. -
getReferencedColumnName
INTERNAL: Used for OX mapping. -
hasForeignKey
public boolean hasForeignKey()INTERNAL: Return true if a foreign key has been defined on this column. -
isForeignKeyFieldNotSpecified
public boolean isForeignKeyFieldNotSpecified()INTERNAL: -
isPrimaryKeyFieldNotSpecified
public boolean isPrimaryKeyFieldNotSpecified()INTERNAL: -
setForeignKey
INTERNAL: Used for OX mapping. -
setReferencedColumnName
INTERNAL: Used for OX mapping.
-