Class ColumnDef

  • All Implemented Interfaces:
    java.lang.Comparable<ColumnDef>

    public class ColumnDef
    extends java.lang.Object
    implements java.lang.Comparable<ColumnDef>
    Represents a column definition in a table
    • Constructor Detail

      • ColumnDef

        public ColumnDef​(java.lang.String name)
        Public constructor
        Parameters:
        name -
    • Method Detail

      • getName

        public java.lang.String getName()
      • isNullable

        public boolean isNullable()
      • setNullable

        public void setNullable​(boolean nullable)
      • getColumnType

        public ColumnType getColumnType()
      • setColumnType

        public void setColumnType​(ColumnType columnType)
      • getSize

        public long getSize()
      • setSize

        public void setSize​(long size)
      • getPrecision

        public java.lang.Integer getPrecision()
      • setPrecision

        public void setPrecision​(int precision)
      • getDefaultVal

        public java.lang.String getDefaultVal()
      • setDefaultVal

        public void setDefaultVal​(java.lang.String defaultVal)
        Parameters:
        defaultVal - this value is NOT auto-quoted, you must pass the single-quote (') within the string value for literal strings
      • compareTo

        public int compareTo​(ColumnDef that)
        Specified by:
        compareTo in interface java.lang.Comparable<ColumnDef>
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getInlineSize

        public int getInlineSize()
      • setInlineSize

        public void setInlineSize​(int inlineSize)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object