Class ColumnMetadata

  • 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
    Author:
    Guy Pelletier
    • Constructor Detail

      • 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.
    • Method Detail

      • 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.