public class RelatedTablesExtension extends RelatedTablesCoreExtension
EXTENSION_AUTHOR, EXTENSION_DEFINITION, EXTENSION_NAME, EXTENSION_NAME_NO_AUTHORextensionsDao, geoPackage| Constructor and Description |
|---|
RelatedTablesExtension(GeoPackage geoPackage)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
GeoPackage |
getGeoPackage() |
UserMappingDao |
getMappingDao(ExtendedRelation extendedRelation)
Get a User Mapping DAO from an extended relation
|
UserMappingDao |
getMappingDao(String tableName)
Get a User Mapping DAO from a table name
|
List<Long> |
getMappingsForBase(ExtendedRelation extendedRelation,
long baseId)
Get the related id mappings for the base id
|
List<Long> |
getMappingsForBase(String tableName,
long baseId)
Get the related id mappings for the base id
|
List<Long> |
getMappingsForRelated(ExtendedRelation extendedRelation,
long relatedId)
Get the base id mappings for the related id
|
List<Long> |
getMappingsForRelated(String tableName,
long relatedId)
Get the base id mappings for the related id
|
MediaDao |
getMediaDao(ExtendedRelation extendedRelation)
Get a related media table DAO
|
MediaDao |
getMediaDao(MediaTable mediaTable)
Get a related media table DAO
|
MediaDao |
getMediaDao(String tableName)
Get a related media table DAO
|
String |
getPrimaryKeyColumnName(String tableName) |
SimpleAttributesDao |
getSimpleAttributesDao(ExtendedRelation extendedRelation)
Get a related simple attributes table DAO
|
SimpleAttributesDao |
getSimpleAttributesDao(SimpleAttributesTable simpleAttributesTable)
Get a related simple attributes table DAO
|
SimpleAttributesDao |
getSimpleAttributesDao(String tableName)
Get a related simple attributes table DAO
|
UserCustomDao |
getUserDao(String tableName)
Get a User Custom DAO from a table name
|
boolean |
hasMapping(String tableName,
long baseId,
long relatedId)
Determine if the base id and related id mapping exists
|
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, createRelatedTable, createUserMappingTable, createUserMappingTable, getExtendedRelationsDao, getRelations, getRelations, getRelations, getRelations, getRelationships, has, has, hasRelations, hasRelations, hasRelations, hasRelations, removeExtension, removeRelationship, removeRelationship, removeRelationship, removeRelationship, removeRelationships, removeRelationshipsWithMappingTable, setContentsget, getExtensions, getExtensions, getExtensionsDao, getOrCreate, has, haspublic RelatedTablesExtension(GeoPackage geoPackage)
geoPackage - GeoPackagepublic GeoPackage getGeoPackage()
getGeoPackage in class BaseExtensionpublic String getPrimaryKeyColumnName(String tableName)
getPrimaryKeyColumnName in class RelatedTablesCoreExtensionpublic UserCustomDao getUserDao(String tableName)
tableName - table namepublic UserMappingDao getMappingDao(ExtendedRelation extendedRelation)
extendedRelation - extended relationpublic UserMappingDao getMappingDao(String tableName)
tableName - mapping table namepublic MediaDao getMediaDao(MediaTable mediaTable)
mediaTable - media tablepublic MediaDao getMediaDao(ExtendedRelation extendedRelation)
extendedRelation - extended relationpublic MediaDao getMediaDao(String tableName)
tableName - media table namepublic SimpleAttributesDao getSimpleAttributesDao(SimpleAttributesTable simpleAttributesTable)
simpleAttributesTable - simple attributes tablepublic SimpleAttributesDao getSimpleAttributesDao(ExtendedRelation extendedRelation)
extendedRelation - extended relationpublic SimpleAttributesDao getSimpleAttributesDao(String tableName)
tableName - simple attributes table namepublic List<Long> getMappingsForBase(ExtendedRelation extendedRelation, long baseId)
extendedRelation - extended relationbaseId - base idpublic List<Long> getMappingsForBase(String tableName, long baseId)
tableName - mapping table namebaseId - base idpublic List<Long> getMappingsForRelated(ExtendedRelation extendedRelation, long relatedId)
extendedRelation - extended relationrelatedId - related idpublic List<Long> getMappingsForRelated(String tableName, long relatedId)
tableName - mapping table namerelatedId - related idpublic boolean hasMapping(String tableName, long baseId, long relatedId)
tableName - mapping table namebaseId - base idrelatedId - related id