Class MediaTableMetadata
- java.lang.Object
-
- mil.nga.geopackage.user.UserTableMetadata<UserCustomColumn>
-
- mil.nga.geopackage.extension.related.media.MediaTableMetadata
-
public class MediaTableMetadata extends UserTableMetadata<UserCustomColumn>
Media 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 MediaTableMetadata()
ConstructorMediaTableMetadata(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> additionalColumns)
ConstructorMediaTableMetadata(String tableName, String idColumnName, List<UserCustomColumn> additionalColumns)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UserCustomColumn>
buildColumns()
Build the table columnsstatic MediaTableMetadata
create()
Create metadatastatic MediaTableMetadata
create(String tableName)
Create metadatastatic MediaTableMetadata
create(String tableName, boolean autoincrement)
Create metadatastatic MediaTableMetadata
create(String tableName, boolean autoincrement, List<UserCustomColumn> additionalColumns)
Create metadatastatic MediaTableMetadata
create(String tableName, String idColumnName)
Create metadatastatic MediaTableMetadata
create(String tableName, String idColumnName, boolean autoincrement)
Create metadatastatic MediaTableMetadata
create(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> additionalColumns)
Create metadatastatic MediaTableMetadata
create(String tableName, String idColumnName, List<UserCustomColumn> additionalColumns)
Create metadatastatic MediaTableMetadata
create(String tableName, List<UserCustomColumn> additionalColumns)
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
-
MediaTableMetadata
public MediaTableMetadata()
Constructor
-
MediaTableMetadata
public MediaTableMetadata(String tableName, String idColumnName, List<UserCustomColumn> additionalColumns)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columns
-
MediaTableMetadata
public MediaTableMetadata(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> additionalColumns)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columns
-
-
Method Detail
-
create
public static MediaTableMetadata create()
Create metadata- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName)
Create metadata- Parameters:
tableName
- table name- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, boolean autoincrement)
Create metadata- Parameters:
tableName
- table nameautoincrement
- autoincrement ids- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, List<UserCustomColumn> additionalColumns)
Create metadata- Parameters:
tableName
- table nameadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, boolean autoincrement, List<UserCustomColumn> additionalColumns)
Create metadata- Parameters:
tableName
- table nameautoincrement
- autoincrement idsadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, String idColumnName)
Create metadata- Parameters:
tableName
- table nameidColumnName
- id column name- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, String idColumnName, boolean autoincrement)
Create metadata- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement ids- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, String idColumnName, List<UserCustomColumn> additionalColumns)
Create metadata- Parameters:
tableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static MediaTableMetadata create(String tableName, String idColumnName, boolean autoincrement, List<UserCustomColumn> additionalColumns)
Create metadata- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional 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
-
-