Package mil.nga.geopackage.attributes
Class AttributesTableMetadata
- java.lang.Object
-
- mil.nga.geopackage.user.UserTableMetadata<AttributesColumn>
-
- mil.nga.geopackage.attributes.AttributesTableMetadata
-
public class AttributesTableMetadata extends UserTableMetadata<AttributesColumn>
Attributes Table Metadata for defining table creation information- Since:
- 4.0.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description protected Constraints
constraints
Constraintsstatic String
DEFAULT_DATA_TYPE
Default data type-
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 AttributesTableMetadata()
ConstructorAttributesTableMetadata(String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
ConstructorAttributesTableMetadata(String dataType, String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
ConstructorAttributesTableMetadata(String dataType, String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
ConstructorAttributesTableMetadata(String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
ConstructorAttributesTableMetadata(String dataType, String tableName, List<AttributesColumn> columns, Constraints constraints, boolean extra)
ConstructorAttributesTableMetadata(String tableName, List<AttributesColumn> columns, Constraints constraints)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AttributesColumn>
buildColumns()
Build the table columnsstatic AttributesTableMetadata
create()
Create metadatastatic AttributesTableMetadata
create(boolean autoincrement)
Create metadatastatic AttributesTableMetadata
create(String tableName)
Constructorstatic AttributesTableMetadata
create(String tableName, boolean autoincrement)
Constructorstatic AttributesTableMetadata
create(String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Constructorstatic AttributesTableMetadata
create(String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructorstatic AttributesTableMetadata
create(String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Constructorstatic AttributesTableMetadata
create(String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructorstatic AttributesTableMetadata
create(String tableName, String idColumnName, List<AttributesColumn> additionalColumns)
Constructorstatic AttributesTableMetadata
create(String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructorstatic AttributesTableMetadata
create(String tableName, List<AttributesColumn> additionalColumns)
Constructorstatic AttributesTableMetadata
create(String tableName, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructorstatic AttributesTableMetadata
create(AttributesColumns columns)
Constructorstatic AttributesTableMetadata
create(AttributesColumns columns, Constraints constraints)
Constructorstatic AttributesTableMetadata
create(AttributesTable table)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, boolean autoincrement)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, String idColumnName, List<AttributesColumn> additionalColumns)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, List<AttributesColumn> additionalColumns)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, String tableName, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, AttributesColumns columns)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, AttributesColumns columns, Constraints constraints)
Create metadatastatic AttributesTableMetadata
createTyped(String dataType, AttributesTable table)
Create metadataConstraints
getConstraints()
Get the constraintsString
getDefaultDataType()
Get the default data typevoid
setConstraints(Constraints constraints)
Set the constraints-
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
-
-
-
-
Field Detail
-
DEFAULT_DATA_TYPE
public static final String DEFAULT_DATA_TYPE
Default data type
-
constraints
protected Constraints constraints
Constraints
-
-
Constructor Detail
-
AttributesTableMetadata
public AttributesTableMetadata()
Constructor
-
AttributesTableMetadata
public AttributesTableMetadata(String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columnsconstraints
- constraints- Since:
- 5.0.0
-
AttributesTableMetadata
public AttributesTableMetadata(String dataType, String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
dataType
- data typetableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columnsconstraints
- constraints- Since:
- 5.0.0
-
AttributesTableMetadata
public AttributesTableMetadata(String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columnsconstraints
- constraints- Since:
- 5.0.0
-
AttributesTableMetadata
public AttributesTableMetadata(String dataType, String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
dataType
- data typetableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columnsconstraints
- constraints- Since:
- 5.0.0
-
AttributesTableMetadata
public AttributesTableMetadata(String tableName, List<AttributesColumn> columns, Constraints constraints)
Constructor- Parameters:
tableName
- table namecolumns
- columnsconstraints
- constraints- Since:
- 5.0.0
-
AttributesTableMetadata
public AttributesTableMetadata(String dataType, String tableName, List<AttributesColumn> columns, Constraints constraints, boolean extra)
Constructor- Parameters:
dataType
- data typetableName
- table namecolumns
- columnsconstraints
- constraintsextra
- unused extra parameter for method overloading- Since:
- 5.0.0
-
-
Method Detail
-
create
public static AttributesTableMetadata create()
Create metadata- Returns:
- metadata
-
create
public static AttributesTableMetadata create(boolean autoincrement)
Create metadata- Parameters:
autoincrement
- autoincrement ids- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName)
Constructor- Parameters:
tableName
- table name- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName, boolean autoincrement)
Constructor- Parameters:
tableName
- table nameautoincrement
- autoincrement ids- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName, List<AttributesColumn> additionalColumns)
Constructor- Parameters:
tableName
- table nameadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Constructor- Parameters:
tableName
- table nameautoincrement
- autoincrement idsadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
tableName
- table nameadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
create
public static AttributesTableMetadata create(String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
tableName
- table nameautoincrement
- autoincrement idsadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
create
public static AttributesTableMetadata create(String tableName, String idColumnName, List<AttributesColumn> additionalColumns)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columns- Returns:
- metadata
-
create
public static AttributesTableMetadata create(String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
create
public static AttributesTableMetadata create(String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Constructor- Parameters:
tableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
create
public static AttributesTableMetadata create(AttributesColumns columns)
Constructor- Parameters:
columns
- columns- Returns:
- metadata
-
create
public static AttributesTableMetadata create(AttributesColumns columns, Constraints constraints)
Constructor- Parameters:
columns
- columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
create
public static AttributesTableMetadata create(AttributesTable table)
Create metadata- Parameters:
table
- attributes table- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName)
Create metadata- Parameters:
dataType
- data typetableName
- table name- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, boolean autoincrement)
Create metadata- Parameters:
dataType
- data typetableName
- table nameautoincrement
- autoincrement ids- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, List<AttributesColumn> additionalColumns)
Create metadata- Parameters:
dataType
- data typetableName
- table nameadditionalColumns
- additional columns- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Create metadata- Parameters:
dataType
- data typetableName
- table nameautoincrement
- autoincrement idsadditionalColumns
- additional columns- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadata- Parameters:
dataType
- data typetableName
- table nameadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadata- Parameters:
dataType
- data typetableName
- table nameautoincrement
- autoincrement idsadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, String idColumnName, List<AttributesColumn> additionalColumns)
Create metadata- Parameters:
dataType
- data typetableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columns- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns)
Create metadata- Parameters:
dataType
- data typetableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columns- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, String idColumnName, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadata- Parameters:
dataType
- data typetableName
- table nameidColumnName
- id column nameadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, String tableName, String idColumnName, boolean autoincrement, List<AttributesColumn> additionalColumns, Constraints constraints)
Create metadata- Parameters:
dataType
- data typetableName
- table nameidColumnName
- id column nameautoincrement
- autoincrement idsadditionalColumns
- additional columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, AttributesColumns columns)
Create metadata- Parameters:
dataType
- data typecolumns
- columns- Returns:
- metadata
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, AttributesColumns columns, Constraints constraints)
Create metadata- Parameters:
dataType
- data typecolumns
- columnsconstraints
- constraints- Returns:
- metadata
- Since:
- 5.0.0
-
createTyped
public static AttributesTableMetadata createTyped(String dataType, AttributesTable table)
Create metadata- Parameters:
dataType
- data typetable
- attributes table- Returns:
- metadata
-
getDefaultDataType
public String getDefaultDataType()
Get the default data type- Specified by:
getDefaultDataType
in classUserTableMetadata<AttributesColumn>
- Returns:
- default data type
-
buildColumns
public List<AttributesColumn> buildColumns()
Build the table columns- Specified by:
buildColumns
in classUserTableMetadata<AttributesColumn>
- Returns:
- table columns
-
getConstraints
public Constraints getConstraints()
Get the constraints- Returns:
- constraints
- Since:
- 5.0.0
-
setConstraints
public void setConstraints(Constraints constraints)
Set the constraints- Parameters:
constraints
- constraints- Since:
- 5.0.0
-
-