Class ColumnBase

    • Constructor Detail

      • ColumnBase

        protected ColumnBase​(String name,
                             boolean nullable)
        Protected constructor - for use by subclasses
        Parameters:
        name -
        nullable -
      • ColumnBase

        protected ColumnBase​(String name,
                             boolean nullable,
                             String defaultVal)
        Protected constructor - for use by subclasses
        Parameters:
        name -
        nullable -
        defaultVal -
    • Method Detail

      • resetDefaultValue

        public void resetDefaultValue()
        resets the default value.
      • getName

        public String getName()
        Getter for the name
        Returns:
      • isNullable

        public boolean isNullable()
        Getter for the null flag
        Returns:
      • getDefaultVal

        public String getDefaultVal()
        Getter for the default value of this column
        Returns:
        possibly null
      • getTypeInfo

        public abstract String getTypeInfo​(IDatabaseTypeAdapter adapter)
        Get the type info string
        Parameters:
        adapter -
        Returns:
      • getTypeDef

        public String getTypeDef​(IDatabaseTypeAdapter adapter)
        Get the definition of this column as used in create table and create type statements. Simply the name followed by the data type
        Parameters:
        adapter -
        Returns: