Class ColumnBase

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ColumnBase​(java.lang.String name, boolean nullable)
      Protected constructor - for use by subclasses
      protected ColumnBase​(java.lang.String name, boolean nullable, java.lang.String defaultVal)
      Protected constructor - for use by subclasses
    • Constructor Detail

      • ColumnBase

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

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

      • resetDefaultValue

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

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

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

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

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

        public java.lang.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: