Class DataStructureTableColumnModel

java.lang.Object
org.eclipse.dirigible.database.ds.model.DataStructureTableColumnModel

public class DataStructureTableColumnModel
extends Object
The column element of the table model.
  • Constructor Details

    • DataStructureTableColumnModel

      public DataStructureTableColumnModel()
      The default constructor.
    • DataStructureTableColumnModel

      public DataStructureTableColumnModel​(String name, String type, String length, boolean nullable, boolean primaryKey, String defaultValue, String precision, String scale, boolean unique)
      The constructor from the fields.
      Parameters:
      name - the name
      type - the type
      length - the length
      nullable - whether null values are allowed
      primaryKey - whether it is a primary key
      defaultValue - the default value
      precision - the precision value for floating point types
      scale - the scale value for floating point types
      unique - the unique
  • Method Details

    • getName

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

      public void setName​(String name)
      Setter for the name.
      Parameters:
      name - the name
    • getType

      public String getType()
      Getter for the type.
      Returns:
      the type
    • setType

      public void setType​(String type)
      Setter for the type.
      Parameters:
      type - the type
    • getLength

      public String getLength()
      Getter for the length.
      Returns:
      the length
    • setLength

      public void setLength​(String length)
      Setter for the length.
      Parameters:
      length - the length
    • isNullable

      public boolean isNullable()
      Check for nullable.
      Returns:
      true if can be null
    • setNullable

      public void setNullable​(boolean nullable)
      Setter for the nullable.
      Parameters:
      nullable - whether null values are allowed
    • isPrimaryKey

      public boolean isPrimaryKey()
      Check for primary key.
      Returns:
      true if primary key
    • setPrimaryKey

      public void setPrimaryKey​(boolean primaryKey)
      Setter for the primary key.
      Parameters:
      primaryKey - whether it is a primary key
    • getDefaultValue

      public String getDefaultValue()
      Getter for the default value.
      Returns:
      the default value
    • setDefaultValue

      public void setDefaultValue​(String defaultValue)
      Setter for the default value.
      Parameters:
      defaultValue - the default value
    • getPrecision

      public String getPrecision()
      Getter for the precision value.
      Returns:
      the precision value
    • setPrecision

      public void setPrecision​(String precision)
      Setter for the precision value.
      Parameters:
      precision - the precision value
    • getScale

      public String getScale()
      Getter for the scale value.
      Returns:
      the scale value
    • setScale

      public void setScale​(String scale)
      Setter for the scale value.
      Parameters:
      scale - the scale value
    • isUnique

      public boolean isUnique()
      Check for unique.
      Returns:
      true if unique
    • setUnique

      public void setUnique​(boolean unique)
      Setter for the unique.
      Parameters:
      unique - the unique value