Direct Known Subclasses:
FieldMetadata

public class ColumnMetadata extends DirectColumnMetadata
INTERNAL: Object to process a JPA column into an EclipseLink database field. 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:
TopLink EJB 3.0 Reference Implementation
  • Constructor Details

    • ColumnMetadata

      public ColumnMetadata()
      INTERNAL: Used for XML loading.
    • ColumnMetadata

      protected ColumnMetadata(String xmlElement)
      INTERNAL: Used for XML loading.
    • ColumnMetadata

      public ColumnMetadata(MetadataAccessor accessor)
      INTERNAL: Used for defaulting.
    • ColumnMetadata

      public ColumnMetadata(MetadataAnnotation column, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class DirectColumnMetadata
    • getDatabaseField

      public DatabaseField getDatabaseField()
      INTERNAL:
      Overrides:
      getDatabaseField in class DirectColumnMetadata
    • getLength

      public Integer getLength()
      INTERNAL: Used for OX mapping.
    • getPrecision

      public Integer getPrecision()
      INTERNAL: Used for OX mapping.
    • getScale

      public Integer getScale()
      INTERNAL: Used for OX mapping.
    • getTable

      public String getTable()
      INTERNAL: Used for OX mapping.
    • getUnique

      public Boolean getUnique()
      INTERNAL: Used for OX mapping.
    • setLength

      public void setLength(Integer length)
      INTERNAL: Used for OX mapping.
    • setPrecision

      public void setPrecision(Integer precision)
      INTERNAL: Used for OX mapping.
    • setScale

      public void setScale(Integer scale)
      INTERNAL: Used for OX mapping.
    • setTable

      public void setTable(String table)
      INTERNAL: Used for OX mapping.
    • setUnique

      public void setUnique(Boolean unique)
      INTERNAL: Used for OX mapping.