Package mil.nga.geopackage.user.custom
Class UserCustomColumns
- java.lang.Object
-
- mil.nga.geopackage.user.UserColumns<UserCustomColumn>
-
- mil.nga.geopackage.user.custom.UserCustomColumns
-
public class UserCustomColumns extends UserColumns<UserCustomColumn>
Collection of user custom columns- Since:
- 3.5.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description UserCustomColumns(String tableName, List<UserCustomColumn> columns)
ConstructorUserCustomColumns(String tableName, List<UserCustomColumn> columns, boolean custom)
ConstructorUserCustomColumns(String tableName, List<UserCustomColumn> columns, Collection<String> requiredColumns)
ConstructorUserCustomColumns(String tableName, List<UserCustomColumn> columns, Collection<String> requiredColumns, boolean custom)
ConstructorUserCustomColumns(UserCustomColumns userCustomColumns)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserCustomColumns
copy()
Copy the user columnsCollection<String>
getRequiredColumns()
Get the required columnsvoid
setRequiredColumns(Collection<String> requiredColumns)
Set the required columnsprotected void
updateColumns()
Update the table columns-
Methods inherited from class mil.nga.geopackage.user.UserColumns
addColumn, alterColumn, columnCount, columnsOfType, dropColumn, dropColumn, dropColumn, duplicateCheck, getColumn, getColumn, getColumnIndex, getColumnIndex, getColumnName, getColumnNames, getColumns, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasPkColumn, hasSchema, isCustom, isPkModifiable, isValueValidation, missingCheck, renameColumn, renameColumn, renameColumn, setCustom, setPkModifiable, setTableName, setValueValidation, typeCheck
-
-
-
-
Constructor Detail
-
UserCustomColumns
public UserCustomColumns(String tableName, List<UserCustomColumn> columns)
Constructor- Parameters:
tableName
- table namecolumns
- columns
-
UserCustomColumns
public UserCustomColumns(String tableName, List<UserCustomColumn> columns, Collection<String> requiredColumns)
Constructor- Parameters:
tableName
- table namecolumns
- columnsrequiredColumns
- list of required columns
-
UserCustomColumns
public UserCustomColumns(String tableName, List<UserCustomColumn> columns, boolean custom)
Constructor- Parameters:
tableName
- table namecolumns
- columnscustom
- custom column specification
-
UserCustomColumns
public UserCustomColumns(String tableName, List<UserCustomColumn> columns, Collection<String> requiredColumns, boolean custom)
Constructor- Parameters:
tableName
- table namecolumns
- columnsrequiredColumns
- list of required columnscustom
- custom column specification
-
UserCustomColumns
public UserCustomColumns(UserCustomColumns userCustomColumns)
Copy Constructor- Parameters:
userCustomColumns
- user custom columns
-
-
Method Detail
-
copy
public UserCustomColumns copy()
Copy the user columns- Specified by:
copy
in classUserColumns<UserCustomColumn>
- Returns:
- copied user columns
-
updateColumns
protected void updateColumns()
Update the table columns- Overrides:
updateColumns
in classUserColumns<UserCustomColumn>
-
getRequiredColumns
public Collection<String> getRequiredColumns()
Get the required columns- Returns:
- required columns
-
setRequiredColumns
public void setRequiredColumns(Collection<String> requiredColumns)
Set the required columns- Parameters:
requiredColumns
- required columns
-
-