Class RelatedTablesExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.related.RelatedTablesCoreExtension
-
- mil.nga.geopackage.extension.related.RelatedTablesExtension
-
public class RelatedTablesExtension extends RelatedTablesCoreExtension
Related Tables extension http://docs.opengeospatial.org/is/18-000/18-000.html- Since:
- 3.0.1
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.extension.related.RelatedTablesCoreExtension
EXTENSION_AUTHOR, EXTENSION_DEFINITION, EXTENSION_NAME, EXTENSION_NAME_NO_AUTHOR
-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Constructor Description RelatedTablesExtension(GeoPackage geoPackage)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoPackagegetGeoPackage()UserMappingDaogetMappingDao(String tableName)Get a User Mapping DAO from a table nameUserMappingDaogetMappingDao(ExtendedRelation extendedRelation)Get a User Mapping DAO from an extended relationList<Long>getMappingsForBase(String tableName, long baseId)Get the related id mappings for the base idList<Long>getMappingsForBase(ExtendedRelation extendedRelation, long baseId)Get the related id mappings for the base idList<Long>getMappingsForRelated(String tableName, long relatedId)Get the base id mappings for the related idList<Long>getMappingsForRelated(ExtendedRelation extendedRelation, long relatedId)Get the base id mappings for the related idMediaDaogetMediaDao(String tableName)Get a related media table DAOMediaDaogetMediaDao(ExtendedRelation extendedRelation)Get a related media table DAOMediaDaogetMediaDao(MediaTable mediaTable)Get a related media table DAOSimpleAttributesDaogetSimpleAttributesDao(String tableName)Get a related simple attributes table DAOSimpleAttributesDaogetSimpleAttributesDao(ExtendedRelation extendedRelation)Get a related simple attributes table DAOSimpleAttributesDaogetSimpleAttributesDao(SimpleAttributesTable simpleAttributesTable)Get a related simple attributes table DAOUserCustomDaogetUserDao(String tableName)Get a User Custom DAO from a table namebooleanhasMapping(String tableName, long baseId, long relatedId)Determine if the base id and related id mapping exists-
Methods inherited from class mil.nga.geopackage.extension.related.RelatedTablesCoreExtension
addAttributesRelationship, addAttributesRelationship, addAttributesRelationship, addAttributesRelationship, addFeaturesRelationship, addFeaturesRelationship, addMediaRelationship, addMediaRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addRelationship, addSimpleAttributesRelationship, addSimpleAttributesRelationship, addTilesRelationship, addTilesRelationship, addTilesRelationship, addTilesRelationship, buildRelationName, createExtendedRelationsTable, createRelatedTable, createUserMappingTable, createUserMappingTable, getExtendedRelationsDao, getExtendedRelationsDao, getExtendedRelationsDao, getPrimaryKeyColumnName, getRelations, getRelations, getRelations, getRelations, getRelationships, has, has, hasRelations, hasRelations, hasRelations, hasRelations, removeExtension, removeRelationship, removeRelationship, removeRelationship, removeRelationship, removeRelationships, removeRelationshipsWithMappingTable, setContents
-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getOrCreate, has, has, verifyWritable
-
-
-
-
Constructor Detail
-
RelatedTablesExtension
public RelatedTablesExtension(GeoPackage geoPackage)
Constructor- Parameters:
geoPackage- GeoPackage
-
-
Method Detail
-
getGeoPackage
public GeoPackage getGeoPackage()
- Overrides:
getGeoPackagein classBaseExtension
-
getUserDao
public UserCustomDao getUserDao(String tableName)
Get a User Custom DAO from a table name- Parameters:
tableName- table name- Returns:
- user custom dao
-
getMappingDao
public UserMappingDao getMappingDao(ExtendedRelation extendedRelation)
Get a User Mapping DAO from an extended relation- Parameters:
extendedRelation- extended relation- Returns:
- user mapping dao
-
getMappingDao
public UserMappingDao getMappingDao(String tableName)
Get a User Mapping DAO from a table name- Parameters:
tableName- mapping table name- Returns:
- user mapping dao
-
getMediaDao
public MediaDao getMediaDao(MediaTable mediaTable)
Get a related media table DAO- Parameters:
mediaTable- media table- Returns:
- media DAO
-
getMediaDao
public MediaDao getMediaDao(ExtendedRelation extendedRelation)
Get a related media table DAO- Parameters:
extendedRelation- extended relation- Returns:
- media DAO
-
getMediaDao
public MediaDao getMediaDao(String tableName)
Get a related media table DAO- Parameters:
tableName- media table name- Returns:
- media DAO
-
getSimpleAttributesDao
public SimpleAttributesDao getSimpleAttributesDao(SimpleAttributesTable simpleAttributesTable)
Get a related simple attributes table DAO- Parameters:
simpleAttributesTable- simple attributes table- Returns:
- simple attributes DAO
-
getSimpleAttributesDao
public SimpleAttributesDao getSimpleAttributesDao(ExtendedRelation extendedRelation)
Get a related simple attributes table DAO- Parameters:
extendedRelation- extended relation- Returns:
- simple attributes DAO
-
getSimpleAttributesDao
public SimpleAttributesDao getSimpleAttributesDao(String tableName)
Get a related simple attributes table DAO- Parameters:
tableName- simple attributes table name- Returns:
- simple attributes DAO
-
getMappingsForBase
public List<Long> getMappingsForBase(ExtendedRelation extendedRelation, long baseId)
Get the related id mappings for the base id- Parameters:
extendedRelation- extended relationbaseId- base id- Returns:
- IDs representing the matching related IDs
-
getMappingsForBase
public List<Long> getMappingsForBase(String tableName, long baseId)
Get the related id mappings for the base id- Parameters:
tableName- mapping table namebaseId- base id- Returns:
- IDs representing the matching related IDs
-
getMappingsForRelated
public List<Long> getMappingsForRelated(ExtendedRelation extendedRelation, long relatedId)
Get the base id mappings for the related id- Parameters:
extendedRelation- extended relationrelatedId- related id- Returns:
- IDs representing the matching base IDs
-
getMappingsForRelated
public List<Long> getMappingsForRelated(String tableName, long relatedId)
Get the base id mappings for the related id- Parameters:
tableName- mapping table namerelatedId- related id- Returns:
- IDs representing the matching base IDs
-
hasMapping
public boolean hasMapping(String tableName, long baseId, long relatedId)
Determine if the base id and related id mapping exists- Parameters:
tableName- mapping table namebaseId- base idrelatedId- related id- Returns:
- true if mapping exists
- Since:
- 3.2.0
-
-