Package mil.nga.geopackage.user.custom
Class UserCustomTable
- java.lang.Object
-
- mil.nga.geopackage.user.UserTable<UserCustomColumn>
-
- mil.nga.geopackage.user.custom.UserCustomTable
-
- Direct Known Subclasses:
UserMappingTable
,UserRelatedTable
public class UserCustomTable extends UserTable<UserCustomColumn>
Represents a user custom table- Since:
- 3.0.1
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserTable
DEFAULT_AUTOINCREMENT, DEFAULT_PK_NOT_NULL
-
-
Constructor Summary
Constructors Constructor Description UserCustomTable(String tableName, List<UserCustomColumn> columns)
ConstructorUserCustomTable(String tableName, List<UserCustomColumn> columns, Collection<String> requiredColumns)
ConstructorUserCustomTable(UserCustomColumns columns)
ConstructorUserCustomTable(UserCustomTable userCustomTable)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserCustomTable
copy()
Copy the tableUserCustomColumns
createUserColumns(List<UserCustomColumn> columns)
Create user columns for a subset of table columnsString
getDataType()
Get the contents data typeCollection<String>
getRequiredColumns()
Get the required columnsUserCustomColumns
getUserColumns()
Get the user columns-
Methods inherited from class mil.nga.geopackage.user.UserTable
addColumn, addConstraint, addConstraints, addConstraints, alterColumn, clearConstraints, clearConstraints, columnCount, columnsOfType, createUserColumns, dropColumn, dropColumn, dropColumn, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getColumns, getColumns, getConstraints, getConstraints, getContents, getDataType, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasConstraints, hasConstraints, hasPkColumn, hasSchema, isPkModifiable, isValueValidation, renameColumn, renameColumn, renameColumn, setContents, setPkModifiable, setTableName, setValueValidation, validateContents
-
-
-
-
Constructor Detail
-
UserCustomTable
public UserCustomTable(String tableName, List<UserCustomColumn> columns)
Constructor- Parameters:
tableName
- table namecolumns
- list of columns
-
UserCustomTable
public UserCustomTable(String tableName, List<UserCustomColumn> columns, Collection<String> requiredColumns)
Constructor- Parameters:
tableName
- table namecolumns
- list of columnsrequiredColumns
- list of required columns
-
UserCustomTable
public UserCustomTable(UserCustomColumns columns)
Constructor- Parameters:
columns
- columns- Since:
- 3.5.0
-
UserCustomTable
public UserCustomTable(UserCustomTable userCustomTable)
Copy Constructor- Parameters:
userCustomTable
- user custom table
-
-
Method Detail
-
copy
public UserCustomTable copy()
Copy the table- Specified by:
copy
in classUserTable<UserCustomColumn>
- Returns:
- copied table
-
getDataType
public String getDataType()
Get the contents data type- Specified by:
getDataType
in classUserTable<UserCustomColumn>
- Returns:
- data type
-
getUserColumns
public UserCustomColumns getUserColumns()
Get the user columns- Overrides:
getUserColumns
in classUserTable<UserCustomColumn>
- Returns:
- user columns
-
createUserColumns
public UserCustomColumns createUserColumns(List<UserCustomColumn> columns)
Create user columns for a subset of table columns- Specified by:
createUserColumns
in classUserTable<UserCustomColumn>
- Parameters:
columns
- columns- Returns:
- user columns
-
getRequiredColumns
public Collection<String> getRequiredColumns()
Get the required columns- Returns:
- required columns
-
-