Class DataColumns
- java.lang.Object
-
- mil.nga.geopackage.extension.schema.columns.DataColumns
-
public class DataColumns extends Object
Stores minimal application schema identifying, descriptive and MIME type information about columns in user vector feature and tile matrix data tables that supplements the data available from the SQLite sqlite_master table and pragma table_info(table_name) SQL function. The gpkg_data_columns data CAN be used to provide more specific column data types and value ranges and application specific structural and semantic information to enable more informative user menu displays and more effective user decisions on the suitability of GeoPackage contents for specific purposes.- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_COLUMN_NAME
columnName field namestatic String
COLUMN_CONSTRAINT_NAME
constraintName field namestatic String
COLUMN_DESCRIPTION
description field namestatic String
COLUMN_ID_1
id 1 field name, tableNamestatic String
COLUMN_ID_2
id 2 field name, columnNamestatic String
COLUMN_MIME_TYPE
mimeType field namestatic String
COLUMN_NAME
name field namestatic String
COLUMN_TABLE_NAME
tableName field namestatic String
COLUMN_TITLE
title field namestatic String
TABLE_NAME
Table name
-
Constructor Summary
Constructors Constructor Description DataColumns()
Default ConstructorDataColumns(DataColumns dataColumns)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColumnName()
String
getConstraintName()
List<DataColumnConstraints>
getConstraints(DataColumnConstraintsDao dao)
Contents
getContents()
String
getDescription()
TableColumnKey
getId()
Get the idString
getMimeType()
String
getName()
String
getTableName()
String
getTitle()
void
setColumnName(String columnName)
void
setConstraint(DataColumnConstraints constraint)
void
setConstraintName(String constraintName)
void
setContents(Contents contents)
void
setDescription(String description)
void
setId(TableColumnKey id)
Set the idvoid
setMimeType(String mimeType)
void
setName(String name)
void
setTitle(String title)
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_TABLE_NAME
public static final String COLUMN_TABLE_NAME
tableName field name- See Also:
- Constant Field Values
-
COLUMN_COLUMN_NAME
public static final String COLUMN_COLUMN_NAME
columnName field name- See Also:
- Constant Field Values
-
COLUMN_ID_1
public static final String COLUMN_ID_1
id 1 field name, tableName- See Also:
- Constant Field Values
-
COLUMN_ID_2
public static final String COLUMN_ID_2
id 2 field name, columnName- See Also:
- Constant Field Values
-
COLUMN_NAME
public static final String COLUMN_NAME
name field name- See Also:
- Constant Field Values
-
COLUMN_TITLE
public static final String COLUMN_TITLE
title field name- See Also:
- Constant Field Values
-
COLUMN_DESCRIPTION
public static final String COLUMN_DESCRIPTION
description field name- See Also:
- Constant Field Values
-
COLUMN_MIME_TYPE
public static final String COLUMN_MIME_TYPE
mimeType field name- See Also:
- Constant Field Values
-
COLUMN_CONSTRAINT_NAME
public static final String COLUMN_CONSTRAINT_NAME
constraintName field name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataColumns
public DataColumns()
Default Constructor
-
DataColumns
public DataColumns(DataColumns dataColumns)
Copy Constructor- Parameters:
dataColumns
- data columns to copy- Since:
- 1.3.0
-
-
Method Detail
-
getId
public TableColumnKey getId()
Get the id- Returns:
- table column key
-
setId
public void setId(TableColumnKey id)
Set the id- Parameters:
id
- id
-
getContents
public Contents getContents()
-
setContents
public void setContents(Contents contents)
-
getTableName
public String getTableName()
-
getColumnName
public String getColumnName()
-
setColumnName
public void setColumnName(String columnName)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getMimeType
public String getMimeType()
-
setMimeType
public void setMimeType(String mimeType)
-
getConstraintName
public String getConstraintName()
-
setConstraint
public void setConstraint(DataColumnConstraints constraint)
-
setConstraintName
public void setConstraintName(String constraintName)
-
getConstraints
public List<DataColumnConstraints> getConstraints(DataColumnConstraintsDao dao) throws SQLException
- Throws:
SQLException
-
-