Package mil.nga.geopackage.user
Class UserTableReader<TColumn extends UserColumn,TTable extends UserTable<TColumn>>
- java.lang.Object
-
- mil.nga.geopackage.user.UserTableReader<TColumn,TTable>
-
- Type Parameters:
TColumn
- column typeTTable
- table type
- Direct Known Subclasses:
AttributesTableReader
,FeatureTableReader
,TileTableReader
,UserCustomTableReader
public abstract class UserTableReader<TColumn extends UserColumn,TTable extends UserTable<TColumn>> extends Object
Reads the metadata from an existing user table- Author:
- osbornb
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserTableReader(String tableName)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TColumn
createColumn(TableColumn tableColumn)
Create the columnprotected abstract TTable
createTable(String tableName, List<TColumn> columnList)
Create the tableTTable
readTable(GeoPackageCoreConnection db)
Read the table
-
-
-
Constructor Detail
-
UserTableReader
protected UserTableReader(String tableName)
Constructor- Parameters:
tableName
- table name
-
-
Method Detail
-
createTable
protected abstract TTable createTable(String tableName, List<TColumn> columnList)
Create the table- Parameters:
tableName
- table namecolumnList
- column list- Returns:
- table
-
createColumn
protected abstract TColumn createColumn(TableColumn tableColumn)
Create the column- Parameters:
tableColumn
- table column- Returns:
- column
-
readTable
public TTable readTable(GeoPackageCoreConnection db)
Read the table- Parameters:
db
- connection- Returns:
- table
-
-