Class ColumnDefinition

java.lang.Object
org.opengis.cite.gpkg10.ColumnDefinition

public class ColumnDefinition extends Object

ColumnDefinition class.

Author:
Luke Lambert
  • Constructor Details

    • ColumnDefinition

      public ColumnDefinition(String sqlType, boolean notNull, boolean primaryKey, boolean unique, String defaultValue)

      Constructor for ColumnDefinition.

      Parameters:
      sqlType - String representing the SQL type of the column, e.g.: TEXT, INTEGER, and so on
      notNull - Indicates that this column may not contain null values
      primaryKey - Indicates that this column is the table's primary key (implicitly unique)
      unique - Indicates that values for this column are unique. If primaryKey is true, this value is ignored
      defaultValue - String representation for the default value of this column
  • Method Details

    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDefaultValue

      public String getDefaultValue()

      Getter for the field defaultValue.

      Returns:
      a String object