Class UserRelatedTable
- java.lang.Object
-
- mil.nga.geopackage.user.UserTable<UserCustomColumn>
-
- mil.nga.geopackage.user.custom.UserCustomTable
-
- mil.nga.geopackage.extension.related.UserRelatedTable
-
- Direct Known Subclasses:
MediaTable
,SimpleAttributesTable
public class UserRelatedTable extends UserCustomTable
User Defined Related 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 UserRelatedTable(String tableName, String relationName, String dataType, List<UserCustomColumn> columns)
ConstructorUserRelatedTable(String tableName, String relationName, String dataType, List<UserCustomColumn> columns, Collection<String> requiredColumns)
ConstructorUserRelatedTable(String relationName, String dataType, UserCustomTable userCustomTable)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDataType()
Get the contents data typeString
getRelationName()
Get the relation nameprotected void
validateContents(Contents contents)
Validate that the set contents are valid-
Methods inherited from class mil.nga.geopackage.user.custom.UserCustomTable
copy, createUserColumns, getRequiredColumns, getUserColumns
-
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
-
-
-
-
Constructor Detail
-
UserRelatedTable
public UserRelatedTable(String tableName, String relationName, String dataType, List<UserCustomColumn> columns)
Constructor- Parameters:
tableName
- table namerelationName
- relation namedataType
- contents data typecolumns
- list of columns- Since:
- 3.1.0
-
UserRelatedTable
public UserRelatedTable(String tableName, String relationName, String dataType, List<UserCustomColumn> columns, Collection<String> requiredColumns)
Constructor- Parameters:
tableName
- table namerelationName
- relation namedataType
- contents data typecolumns
- list of columnsrequiredColumns
- list of required columns- Since:
- 3.1.0
-
UserRelatedTable
public UserRelatedTable(String relationName, String dataType, UserCustomTable userCustomTable)
Constructor- Parameters:
relationName
- relation namedataType
- contents data typeuserCustomTable
- user custom table- Since:
- 3.1.0
-
-
Method Detail
-
getRelationName
public String getRelationName()
Get the relation name- Returns:
- relation name
-
getDataType
public String getDataType()
Get the contents data type- Overrides:
getDataType
in classUserCustomTable
- Returns:
- data type
-
validateContents
protected void validateContents(Contents contents)
Validate that the set contents are valid- Overrides:
validateContents
in classUserTable<UserCustomColumn>
- Parameters:
contents
- contents
-
-