Class Column

    • Method Detail

      • isForIndex

        public boolean isForIndex()
      • setForIndex

        public void setForIndex​(boolean forIndex)
      • getRelation

        public Relation getRelation()
      • getContainingObjects

        public DatabaseObject[] getContainingObjects()
      • getSchema

        public Schema getSchema()
      • getName

        public String getName()
      • setName

        public Column setName​(String name)
        Description copied from interface: DatabaseObject
        Sets the name for the database object.
        name - the new name for the database object
        a reference to the same object (implementing classes are expected to return a reference to the same object).
      • setName

        public Column setName​(String name,
                              boolean computed)
      • getComputed

        public Boolean getComputed()
      • isNullable

        public Boolean isNullable()
      • getDefaultValue

        public Object getDefaultValue()
      • setDefaultValue

        public Column setDefaultValue​(Object defaultValue)
      • getDefaultValueConstraintName

        public String getDefaultValueConstraintName()
      • setDefaultValueConstraintName

        public Column setDefaultValueConstraintName​(String defaultValueConstraintName)
      • isAutoIncrement

        public boolean isAutoIncrement()
      • getDescending

        public Boolean getDescending()
      • setDescending

        public Column setDescending​(Boolean descending)
      • getValidate

        public boolean getValidate()
        VALIDATE keyword defines whether a all constraints on a column in a table should be checked if it refers to a valid row or not.
        true if ENABLE VALIDATE (this is the default), or false if ENABLE NOVALIDATE.
      • setValidateNullable

        public Column setValidateNullable​(Boolean validateNullable)
        validateNullable - - if validateNullable is set to FALSE then the constraint will be created with the 'ENABLE NOVALIDATE' mode. This means the constraint would be created, but that no check will be done to ensure old data has valid not null constraint - only new data would be checked to see if it complies with the constraint logic. The default state for not null constraint is to have 'ENABLE VALIDATE' set.
      • getValidateNullable

        public boolean getValidateNullable()
        Returns false for Nor null constraints created with ENABLE NOVALIDATE mode, otherwise returns true.
        true if validation is required for nullable constraints, false otherwise
      • toString

        public String toString​(boolean includeRelation)
      • hashCode

        public int hashCode()
        hashCode in class Object
      • isDataTypeDifferent

        public boolean isDataTypeDifferent​(Column otherColumn)
      • isNullabilityDifferent

        public boolean isNullabilityDifferent​(Column otherColumn)
      • isDifferent

        public boolean isDifferent​(Column otherColumn)
      • isCertainDataType

        public boolean isCertainDataType()
      • setCertainDataType

        public Column setCertainDataType​(boolean certainDataType)
      • getRemarks

        public String getRemarks()
      • fromName

        public static Column fromName​(String columnName)
      • getOrder

        public Integer getOrder()
      • arrayFromNames

        public static Column[] arrayFromNames​(String columnNames)
      • listFromNames

        public static List<Column> listFromNames​(String columnNames)