Class FeatureTileTableCoreLinker

    • Field Detail

      • EXTENSION_NAME_NO_AUTHOR

        public static final String EXTENSION_NAME_NO_AUTHOR
        Extension name without the author
        See Also:
        Constant Field Values
      • EXTENSION_NAME

        public static final String EXTENSION_NAME
        Extension, with author and name
      • EXTENSION_DEFINITION

        public static final String EXTENSION_DEFINITION
        Extension definition URL
    • Constructor Detail

      • FeatureTileTableCoreLinker

        protected FeatureTileTableCoreLinker​(GeoPackageCore geoPackage)
        Constructor
        Parameters:
        geoPackage - GeoPackage
    • Method Detail

      • link

        public void link​(String featureTable,
                         String tileTable)
        Link a feature and tile table together. Does nothing if already linked.
        Parameters:
        featureTable - feature table
        tileTable - tile table
      • isLinked

        public boolean isLinked​(String featureTable,
                                String tileTable)
        Determine if the feature table is linked to the tile table
        Parameters:
        featureTable - feature table
        tileTable - tile table
        Returns:
        true if linked
      • getLink

        public FeatureTileLink getLink​(String featureTable,
                                       String tileTable)
        Get the feature and tile table link if it exists
        Parameters:
        featureTable - feature table
        tileTable - tile table
        Returns:
        link or null
      • queryForFeatureTable

        public List<FeatureTileLink> queryForFeatureTable​(String featureTable)
        Query for feature tile links by feature table
        Parameters:
        featureTable - feature table
        Returns:
        links
      • queryForTileTable

        public List<FeatureTileLink> queryForTileTable​(String tileTable)
        Query for feature tile links by tile table
        Parameters:
        tileTable - tile table
        Returns:
        links
      • deleteLink

        public boolean deleteLink​(String featureTable,
                                  String tileTable)
        Delete the feature tile table link
        Parameters:
        featureTable - feature table
        tileTable - tile table
        Returns:
        true if deleted
      • deleteLinks

        public int deleteLinks​(String table)
        Delete the feature tile table links for the feature or tile table
        Parameters:
        table - table name
        Returns:
        links deleted
      • has

        public boolean has()
        Check if has extension
        Returns:
        true if has extension
        Since:
        3.2.0
      • getExtension

        public Extensions getExtension()
        Get the extension
        Returns:
        extensions object or null if one does not exist
      • getFeatureTileLinkDao

        public FeatureTileLinkDao getFeatureTileLinkDao()
        Get a Feature Tile Link DAO
        Returns:
        feature tile link dao
        Since:
        4.0.0
      • getFeatureTileLinkDao

        public static FeatureTileLinkDao getFeatureTileLinkDao​(GeoPackageCore geoPackage)
        Get a Feature Tile Link DAO
        Parameters:
        geoPackage - GeoPackage
        Returns:
        feature tile link dao
        Since:
        4.0.0
      • getFeatureTileLinkDao

        public static FeatureTileLinkDao getFeatureTileLinkDao​(GeoPackageCoreConnection db)
        Get a Feature Tile Link DAO
        Parameters:
        db - database connection
        Returns:
        feature tile link dao
        Since:
        4.0.0
      • createFeatureTileLinkTable

        public boolean createFeatureTileLinkTable()
        Create the Feature Tile Link Table if it does not exist
        Returns:
        true if created
        Since:
        4.0.0
      • getTileTablesForFeatureTable

        public List<String> getTileTablesForFeatureTable​(String featureTable)
        Query for the tile table names linked to a feature table
        Parameters:
        featureTable - feature table
        Returns:
        tiles tables
      • getFeatureTablesForTileTable

        public List<String> getFeatureTablesForTileTable​(String tileTable)
        Query for the feature table names linked to a tile table
        Parameters:
        tileTable - tile table
        Returns:
        feature tables