Class TableColumn


  • public class TableColumn
    extends Object
    Table Column from Table Info
    Since:
    3.3.0
    Author:
    osbornb
    • Method Detail

      • getIndex

        public int getIndex()
        Get the column index
        Returns:
        column index
      • getName

        public String getName()
        Get the column name
        Returns:
        column name
      • getType

        public String getType()
        Get the column type
        Returns:
        column type
      • getDataType

        public GeoPackageDataType getDataType()
        Get the column data type
        Returns:
        column data type, may be null
      • isDataType

        public boolean isDataType​(GeoPackageDataType dataType)
        Is the column the data type
        Parameters:
        dataType - data type
        Returns:
        true if the data type
      • getMax

        public Long getMax()
        Get the column max value
        Returns:
        max value or null if no max
      • isNotNull

        public boolean isNotNull()
        Is this a not null column?
        Returns:
        true if not nullable
      • getDefaultValueString

        public String getDefaultValueString()
        Get the default value as a string
        Returns:
        default value as a string
      • getDefaultValue

        public Object getDefaultValue()
        Get the default value
        Returns:
        default value
      • isPrimarykey

        public boolean isPrimarykey()
        Is this a primary key column?
        Returns:
        true if primary key column