Class SimpleAttributesTableMetadata
- java.lang.Object
-
- mil.nga.geopackage.user.UserTableMetadata<UserCustomColumn>
-
- mil.nga.geopackage.extension.related.simple.SimpleAttributesTableMetadata
-
public class SimpleAttributesTableMetadata extends UserTableMetadata<UserCustomColumn>
Simple Attributes Table Metadata for defining table creation information- Since:
- 4.0.0
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserTableMetadata
additionalColumns, autoincrement, columns, dataType, DEFAULT_ID_COLUMN_NAME, description, idColumnName, identifier, tableName
-
-
Constructor Summary
Constructors Constructor Description SimpleAttributesTableMetadata()
ConstructorSimpleAttributesTableMetadata(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> columns)
ConstructorSimpleAttributesTableMetadata(String tableName, String idColumnName, List<UserCustomColumn> columns)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UserCustomColumn>
buildColumns()
Build the table columnsstatic SimpleAttributesTableMetadata
create()
Create metadatastatic SimpleAttributesTableMetadata
create(String tableName)
Create metadatastatic SimpleAttributesTableMetadata
create(String tableName, boolean autoincrement)
Create metadatastatic SimpleAttributesTableMetadata
create(String tableName, boolean autoincrement, List<UserCustomColumn> columns)
Create metadatastatic SimpleAttributesTableMetadata
create(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> columns)
Create metadatastatic SimpleAttributesTableMetadata
create(String tableName, String idColumnName, List<UserCustomColumn> columns)
Create metadatastatic SimpleAttributesTableMetadata
create(String tableName, List<UserCustomColumn> columns)
Create metadataString
getDefaultDataType()
Get the default data type-
Methods inherited from class mil.nga.geopackage.user.UserTableMetadata
getAdditionalColumns, getColumns, getDataType, getDescription, getIdColumnName, getIdentifier, getTableName, isAutoincrement, setAdditionalColumns, setAutoincrement, setColumns, setDataType, setDescription, setIdColumnName, setIdentifier, setTableName
-
-
-
-
Constructor Detail
-
SimpleAttributesTableMetadata
public SimpleAttributesTableMetadata()
Constructor
-
SimpleAttributesTableMetadata
public SimpleAttributesTableMetadata(String tableName, String idColumnName, List<UserCustomColumn> columns)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column namecolumns
- columns
-
SimpleAttributesTableMetadata
public SimpleAttributesTableMetadata(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> columns)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idscolumns
- columns
-
-
Method Detail
-
create
public static SimpleAttributesTableMetadata create()
Create metadata- Returns:
- metadata
-
create
public static SimpleAttributesTableMetadata create(String tableName)
Create metadata- Parameters:
tableName
- table name- Returns:
- metadata
-
create
public static SimpleAttributesTableMetadata create(String tableName, boolean autoincrement)
Create metadata- Parameters:
tableName
- table nameautoincrement
- autoincrement ids- Returns:
- metadata
-
create
public static SimpleAttributesTableMetadata create(String tableName, List<UserCustomColumn> columns)
Create metadata- Parameters:
tableName
- table namecolumns
- columns- Returns:
- metadata
-
create
public static SimpleAttributesTableMetadata create(String tableName, boolean autoincrement, List<UserCustomColumn> columns)
Create metadata- Parameters:
tableName
- table nameautoincrement
- autoincrement idscolumns
- columns- Returns:
- metadata
-
create
public static SimpleAttributesTableMetadata create(String tableName, String idColumnName, List<UserCustomColumn> columns)
Create metadata- Parameters:
tableName
- table nameidColumnName
- id column namecolumns
- columns- Returns:
- metadata
-
create
public static SimpleAttributesTableMetadata create(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> columns)
Create metadata- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idscolumns
- columns- Returns:
- metadata
-
getDefaultDataType
public String getDefaultDataType()
Get the default data type- Specified by:
getDefaultDataType
in classUserTableMetadata<UserCustomColumn>
- Returns:
- default data type
-
buildColumns
public List<UserCustomColumn> buildColumns()
Build the table columns- Specified by:
buildColumns
in classUserTableMetadata<UserCustomColumn>
- Returns:
- table columns
-
-