Class FeatureColumn

    • Constructor Detail

      • FeatureColumn

        public FeatureColumn​(FeatureColumn featureColumn)
        Copy Constructor
        Parameters:
        featureColumn - feature column
        Since:
        3.3.0
    • Method Detail

      • createPrimaryKeyColumn

        public static FeatureColumn createPrimaryKeyColumn​(String name)
        Create a new primary key column
        Parameters:
        name - name
        Returns:
        feature column
        Since:
        3.3.0
      • createPrimaryKeyColumn

        public static FeatureColumn createPrimaryKeyColumn​(String name,
                                                           boolean autoincrement)
        Create a new primary key column
        Parameters:
        name - name
        autoincrement - autoincrement flag
        Returns:
        feature column
        Since:
        4.0.0
      • createPrimaryKeyColumn

        public static FeatureColumn createPrimaryKeyColumn​(int index,
                                                           String name)
        Create a new primary key column
        Parameters:
        index - index
        name - name
        Returns:
        feature column
      • createPrimaryKeyColumn

        public static FeatureColumn createPrimaryKeyColumn​(int index,
                                                           String name,
                                                           boolean autoincrement)
        Create a new primary key column
        Parameters:
        index - index
        name - name
        autoincrement - autoincrement flag
        Returns:
        feature column
        Since:
        4.0.0
      • createGeometryColumn

        public static FeatureColumn createGeometryColumn​(String name,
                                                         GeometryType type)
        Create a new geometry column
        Parameters:
        name - name
        type - geometry type
        Returns:
        feature column
        Since:
        3.3.0
      • createGeometryColumn

        public static FeatureColumn createGeometryColumn​(int index,
                                                         String name,
                                                         GeometryType type)
        Create a new geometry column
        Parameters:
        index - index
        name - name
        type - geometry type
        Returns:
        feature column
        Since:
        3.3.0
      • createGeometryColumn

        public static FeatureColumn createGeometryColumn​(String name,
                                                         GeometryType type,
                                                         boolean notNull,
                                                         Object defaultValue)
        Create a new geometry column
        Parameters:
        name - name
        type - geometry type
        notNull - not null flag
        defaultValue - default value
        Returns:
        feature column
        Since:
        3.3.0
      • createGeometryColumn

        public static FeatureColumn createGeometryColumn​(int index,
                                                         String name,
                                                         GeometryType type,
                                                         boolean notNull,
                                                         Object defaultValue)
        Create a new geometry column
        Parameters:
        index - index
        name - name
        type - geometry type
        notNull - not null flag
        defaultValue - default value
        Returns:
        feature column
      • createColumn

        public static FeatureColumn createColumn​(String name,
                                                 GeoPackageDataType type)
        Create a new column
        Parameters:
        name - name
        type - data type
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(int index,
                                                 String name,
                                                 GeoPackageDataType type)
        Create a new column
        Parameters:
        index - index
        name - name
        type - data type
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(String name,
                                                 GeoPackageDataType type,
                                                 boolean notNull)
        Create a new column
        Parameters:
        name - name
        type - data type
        notNull - not null flag
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(int index,
                                                 String name,
                                                 GeoPackageDataType type,
                                                 boolean notNull)
        Create a new column
        Parameters:
        index - index
        name - name
        type - data type
        notNull - not null flag
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(String name,
                                                 GeoPackageDataType type,
                                                 boolean notNull,
                                                 Object defaultValue)
        Create a new column
        Parameters:
        name - name
        type - data type
        notNull - not null flag
        defaultValue - default value
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(int index,
                                                 String name,
                                                 GeoPackageDataType type,
                                                 boolean notNull,
                                                 Object defaultValue)
        Create a new column
        Parameters:
        index - index
        name - name
        type - data type
        notNull - not null flag
        defaultValue - default value
        Returns:
        feature column
      • createColumn

        public static FeatureColumn createColumn​(String name,
                                                 GeoPackageDataType type,
                                                 Long max)
        Create a new column
        Parameters:
        name - name
        type - data type
        max - max value
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(int index,
                                                 String name,
                                                 GeoPackageDataType type,
                                                 Long max)
        Create a new column
        Parameters:
        index - index
        name - name
        type - data type
        max - max value
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(String name,
                                                 GeoPackageDataType type,
                                                 Long max,
                                                 boolean notNull,
                                                 Object defaultValue)
        Create a new column
        Parameters:
        name - name
        type - data type
        max - max value
        notNull - not null flag
        defaultValue - default value
        Returns:
        feature column
        Since:
        3.3.0
      • createColumn

        public static FeatureColumn createColumn​(int index,
                                                 String name,
                                                 GeoPackageDataType type,
                                                 Long max,
                                                 boolean notNull,
                                                 Object defaultValue)
        Create a new column
        Parameters:
        index - index
        name - name
        type - data type
        max - max value
        notNull - not null flag
        defaultValue - default value
        Returns:
        feature column
      • createColumn

        public static FeatureColumn createColumn​(TableColumn tableColumn)
        Create a new column
        Parameters:
        tableColumn - table column
        Returns:
        feature column
        Since:
        3.3.0
      • getTypeName

        protected static String getTypeName​(String name,
                                            GeoPackageDataType dataType,
                                            GeometryType geometryType)
        Get the type name from the data and geometry type
        Parameters:
        name - column name
        dataType - data type
        geometryType - geometry type
        Returns:
        type name
        Since:
        3.3.0
      • setGeometryType

        protected void setGeometryType​(GeometryType geometryType)
        Set the geometry type
        Parameters:
        geometryType - geometry type
      • isGeometry

        public boolean isGeometry()
        Determine if this column is a geometry
        Returns:
        true if a geometry column
      • getGeometryType

        public GeometryType getGeometryType()
        When a geometry column, gets the geometry type
        Returns:
        geometry type