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​(java.lang.String xmlElement)
        INTERNAL: Used for XML loading.
      • ColumnMetadata

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

      • equals

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

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

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

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

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

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

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

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

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

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

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