Package mil.nga.geopackage.user
Class UserTableMetadata<TColumn extends UserColumn>
- java.lang.Object
-
- mil.nga.geopackage.user.UserTableMetadata<TColumn>
-
- Type Parameters:
TColumn
- user column type
- Direct Known Subclasses:
AttributesTableMetadata
,FeatureTableMetadata
,MediaTableMetadata
,SimpleAttributesTableMetadata
,TileTableMetadata
public abstract class UserTableMetadata<TColumn extends UserColumn> extends Object
User Table Metadata for defining table creation information- Since:
- 4.0.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description protected List<TColumn>
additionalColumns
Additional table columnsprotected boolean
autoincrement
ID autoincrement flagprotected List<TColumn>
columns
Table columnsprotected String
dataType
Data typestatic String
DEFAULT_ID_COLUMN_NAME
Default ID column nameprotected String
description
Descriptionprotected String
idColumnName
ID column nameprotected String
identifier
Identifierprotected String
tableName
Table name
-
Constructor Summary
Constructors Constructor Description UserTableMetadata()
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<TColumn>
buildColumns()
Build the table columnsList<TColumn>
getAdditionalColumns()
Get the additional table columnsList<TColumn>
getColumns()
Get the table columnsString
getDataType()
Get the data typeabstract String
getDefaultDataType()
Get the default data typeString
getDescription()
Get the descriptionString
getIdColumnName()
Get the id column nameString
getIdentifier()
Get the identifierString
getTableName()
Get the table nameboolean
isAutoincrement()
Is id autocincrement enabled?void
setAdditionalColumns(List<TColumn> additionalColumns)
Set the additional table columnsvoid
setAutoincrement(boolean autoincrement)
Set the id autoincrement flagvoid
setColumns(List<TColumn> columns)
Set the table columnsvoid
setDataType(String dataType)
Set the data typevoid
setDescription(String description)
Set the descriptionvoid
setIdColumnName(String idColumnName)
Set the id column namevoid
setIdentifier(String identifier)
Set the identifiervoid
setTableName(String tableName)
Set the table name
-
-
-
Field Detail
-
DEFAULT_ID_COLUMN_NAME
public static final String DEFAULT_ID_COLUMN_NAME
Default ID column name- See Also:
- Constant Field Values
-
tableName
protected String tableName
Table name
-
dataType
protected String dataType
Data type
-
identifier
protected String identifier
Identifier
-
description
protected String description
Description
-
idColumnName
protected String idColumnName
ID column name
-
autoincrement
protected boolean autoincrement
ID autoincrement flag
-
additionalColumns
protected List<TColumn extends UserColumn> additionalColumns
Additional table columns
-
columns
protected List<TColumn extends UserColumn> columns
Table columns
-
-
Method Detail
-
getDefaultDataType
public abstract String getDefaultDataType()
Get the default data type- Returns:
- default data type
-
buildColumns
public abstract List<TColumn> buildColumns()
Build the table columns- Returns:
- table columns
-
getTableName
public String getTableName()
Get the table name- Returns:
- table name
-
setTableName
public void setTableName(String tableName)
Set the table name- Parameters:
tableName
- table name
-
getDataType
public String getDataType()
Get the data type- Returns:
- data type
-
setDataType
public void setDataType(String dataType)
Set the data type- Parameters:
dataType
- data type
-
getIdentifier
public String getIdentifier()
Get the identifier- Returns:
- identifier
- Since:
- 6.6.0
-
setIdentifier
public void setIdentifier(String identifier)
Set the identifier- Parameters:
identifier
- identifier- Since:
- 6.6.0
-
getDescription
public String getDescription()
Get the description- Returns:
- description
- Since:
- 6.6.0
-
setDescription
public void setDescription(String description)
Set the description- Parameters:
description
- description- Since:
- 6.6.0
-
getIdColumnName
public String getIdColumnName()
Get the id column name- Returns:
- id column name
-
setIdColumnName
public void setIdColumnName(String idColumnName)
Set the id column name- Parameters:
idColumnName
- id column name
-
isAutoincrement
public boolean isAutoincrement()
Is id autocincrement enabled?- Returns:
- autoincrement flag
-
setAutoincrement
public void setAutoincrement(boolean autoincrement)
Set the id autoincrement flag- Parameters:
autoincrement
- autoincrement flag
-
getAdditionalColumns
public List<TColumn> getAdditionalColumns()
Get the additional table columns- Returns:
- columns
-
setAdditionalColumns
public void setAdditionalColumns(List<TColumn> additionalColumns)
Set the additional table columns- Parameters:
additionalColumns
- columns
-
-