Class RelationalColumnMetadata

  • Direct Known Subclasses:
    JoinColumnMetadata, PrimaryKeyJoinColumnMetadata

    public abstract class RelationalColumnMetadata
    extends MetadataColumn
    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
    Author:
    Guy Pelletier
    • Constructor Detail

      • RelationalColumnMetadata

        protected RelationalColumnMetadata​(java.lang.String xmlElement)
        INTERNAL: Used for XML loading.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL:
        Overrides:
        equals in class MetadataColumn
      • getForeignKey

        public ForeignKeyMetadata getForeignKey()
        INTERNAL: Used for OX mapping.
      • getForeignKeyField

        protected org.eclipse.persistence.internal.helper.DatabaseField getForeignKeyField()
        INTERNAL:
      • getForeignKeyField

        public org.eclipse.persistence.internal.helper.DatabaseField getForeignKeyField​(org.eclipse.persistence.internal.helper.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.
      • getReferencedColumnName

        public java.lang.String 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

        public void setForeignKey​(ForeignKeyMetadata foreignKey)
        INTERNAL: Used for OX mapping.
      • setReferencedColumnName

        public void setReferencedColumnName​(java.lang.String referencedColumnName)
        INTERNAL: Used for OX mapping.