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
  • Constructor Details

    • RelationalColumnMetadata

      public RelationalColumnMetadata(MetadataAnnotation relationalColumn, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
    • RelationalColumnMetadata

      protected RelationalColumnMetadata(String xmlElement)
      INTERNAL: Used for XML loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Overrides:
      equals in class MetadataColumn
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MetadataColumn
    • getForeignKey

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

      protected DatabaseField getForeignKeyField()
      INTERNAL:
    • getForeignKeyField

      public DatabaseField 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.
    • getReferencedColumnName

      public 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(String referencedColumnName)
      INTERNAL: Used for OX mapping.