java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.MetadataColumn
Direct Known Subclasses:
DirectColumnMetadata, DiscriminatorColumnMetadata, RelationalColumnMetadata

public abstract class MetadataColumn extends ORMetadata
INTERNAL: Object to process JPA column type 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

    • MetadataColumn

      protected MetadataColumn(MetadataAccessor accessor)
      INTERNAL: Used for defaulting.
    • MetadataColumn

      protected MetadataColumn(MetadataAnnotation column, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
    • MetadataColumn

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

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Specified by:
      equals in class ORMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getColumnDefinition

      public String getColumnDefinition()
      INTERNAL: Used for OX mapping.
    • getDatabaseField

      public DatabaseField getDatabaseField()
      INTERNAL: Those objects that need/want to initialize more meta data should override this method.
    • getName

      public String getName()
      INTERNAL: Used for OX mapping.
    • setColumnDefinition

      public void setColumnDefinition(String columnDefinition)
      INTERNAL: Used for OX mapping.
    • setName

      public void setName(String name)
      INTERNAL: Used for OX mapping.