Package mil.nga.geopackage.features.user
Class FeatureColumns
- java.lang.Object
-
- mil.nga.geopackage.user.UserColumns<FeatureColumn>
-
- mil.nga.geopackage.features.user.FeatureColumns
-
public class FeatureColumns extends UserColumns<FeatureColumn>
Collection of feature columns- Since:
- 3.5.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description FeatureColumns(String tableName, String geometryColumn, List<FeatureColumn> columns)
ConstructorFeatureColumns(String tableName, String geometryColumn, List<FeatureColumn> columns, boolean custom)
ConstructorFeatureColumns(FeatureColumns featureColumns)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureColumns
copy()
Copy the user columnsFeatureColumn
getGeometryColumn()
Get the geometry columnString
getGeometryColumnName()
Get the geometry column nameint
getGeometryIndex()
Get the geometry indexboolean
hasGeometryColumn()
Check if the table has a geometry columnvoid
setGeometryColumnName(String geometryColumn)
Set the geometry column namevoid
setGeometryIndex(int geometryIndex)
Set the geometry indexprotected void
updateColumns()
Update the table columns-
Methods inherited from class mil.nga.geopackage.user.UserColumns
addColumn, alterColumn, columnCount, columnsOfType, dropColumn, dropColumn, dropColumn, duplicateCheck, getColumn, getColumn, getColumnIndex, getColumnIndex, getColumnName, getColumnNames, getColumns, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasPkColumn, hasSchema, isCustom, isPkModifiable, isValueValidation, missingCheck, renameColumn, renameColumn, renameColumn, setCustom, setPkModifiable, setTableName, setValueValidation, typeCheck
-
-
-
-
Constructor Detail
-
FeatureColumns
public FeatureColumns(String tableName, String geometryColumn, List<FeatureColumn> columns)
Constructor- Parameters:
tableName
- table namegeometryColumn
- geometry columncolumns
- columns
-
FeatureColumns
public FeatureColumns(String tableName, String geometryColumn, List<FeatureColumn> columns, boolean custom)
Constructor- Parameters:
tableName
- table namegeometryColumn
- geometry columncolumns
- columnscustom
- custom column specification
-
FeatureColumns
public FeatureColumns(FeatureColumns featureColumns)
Copy Constructor- Parameters:
featureColumns
- feature columns
-
-
Method Detail
-
copy
public FeatureColumns copy()
Copy the user columns- Specified by:
copy
in classUserColumns<FeatureColumn>
- Returns:
- copied user columns
-
updateColumns
protected void updateColumns()
Update the table columns- Overrides:
updateColumns
in classUserColumns<FeatureColumn>
-
getGeometryColumnName
public String getGeometryColumnName()
Get the geometry column name- Returns:
- geometry column name
-
setGeometryColumnName
public void setGeometryColumnName(String geometryColumn)
Set the geometry column name- Parameters:
geometryColumn
- geometry column name
-
getGeometryIndex
public int getGeometryIndex()
Get the geometry index- Returns:
- geometry index
-
setGeometryIndex
public void setGeometryIndex(int geometryIndex)
Set the geometry index- Parameters:
geometryIndex
- geometry index
-
hasGeometryColumn
public boolean hasGeometryColumn()
Check if the table has a geometry column- Returns:
- true if has a geometry column
-
getGeometryColumn
public FeatureColumn getGeometryColumn()
Get the geometry column- Returns:
- geometry column
-
-