Class GeoPackageImpl

java.lang.Object
mil.nga.geopackage.GeoPackageCoreImpl
mil.nga.geopackage.GeoPackageImpl
All Implemented Interfaces:
Closeable, AutoCloseable, GeoPackage, GeoPackageCore
Direct Known Subclasses:
DGIWGGeoPackage

public class GeoPackageImpl extends GeoPackageCoreImpl implements GeoPackage
A single GeoPackage database connection implementation
  • Constructor Details

    • GeoPackageImpl

      protected GeoPackageImpl(android.content.Context context, String name, String path, GeoPackageConnection database, GeoPackageCursorFactory cursorFactory, boolean writable)
      Constructor
      Parameters:
      context - context
      name - GeoPackage name
      path - database path
      database - database connection
      cursorFactory - cursor factory
      writable - writable flag
  • Method Details

    • getFeatureBoundingBox

      public BoundingBox getFeatureBoundingBox(Projection projection, String table, boolean manual)
      Specified by:
      getFeatureBoundingBox in interface GeoPackageCore
    • getCursorFactory

      public GeoPackageCursorFactory getCursorFactory()
      Get the cursor factory
      Specified by:
      getCursorFactory in interface GeoPackage
      Returns:
      cursor factory
    • registerCursorWrapper

      public void registerCursorWrapper(String table, GeoPackageCursorWrapper cursorWrapper)
      Register a GeoPackage Cursor Wrapper for table name
      Specified by:
      registerCursorWrapper in interface GeoPackage
      Parameters:
      table - table name
      cursorWrapper - cursor wrapper
    • getFeatureDao

      public FeatureDao getFeatureDao(GeometryColumns geometryColumns)
      Get a Feature DAO from Geometry Columns
      Specified by:
      getFeatureDao in interface GeoPackage
      Parameters:
      geometryColumns - geometry columns
      Returns:
      feature dao
    • getFeatureDao

      public FeatureDao getFeatureDao(Contents contents)
      Get a Feature DAO from Contents
      Specified by:
      getFeatureDao in interface GeoPackage
      Parameters:
      contents - contents
      Returns:
      feature dao
    • getFeatureDao

      public FeatureDao getFeatureDao(FeatureTable table)
      Get a Feature DAO from a table
      Specified by:
      getFeatureDao in interface GeoPackage
      Parameters:
      table - feature table
      Returns:
      feature dao
    • getFeatureDao

      public FeatureDao getFeatureDao(String tableName)
      Get a Feature DAO from a table name
      Specified by:
      getFeatureDao in interface GeoPackage
      Parameters:
      tableName - table name
      Returns:
      feature dao
    • getTileDao

      public TileDao getTileDao(TileMatrixSet tileMatrixSet)
      Get a Tile DAO from Tile Matrix Set
      Specified by:
      getTileDao in interface GeoPackage
      Parameters:
      tileMatrixSet - tile matrix set
      Returns:
      tile dao
    • getTileDao

      public TileDao getTileDao(Contents contents)
      Get a Tile DAO from Contents
      Specified by:
      getTileDao in interface GeoPackage
      Parameters:
      contents - contents
      Returns:
      tile dao
    • getTileDao

      public TileDao getTileDao(TileTable table)
      Get a Tile DAO from a table
      Specified by:
      getTileDao in interface GeoPackage
      Parameters:
      table - tile table
      Returns:
      tile dao
    • getTileDao

      public TileDao getTileDao(String tableName)
      Get a Tile DAO from a table name
      Specified by:
      getTileDao in interface GeoPackage
      Parameters:
      tableName - table name
      Returns:
      tile dao
    • getAttributesDao

      public AttributesDao getAttributesDao(Contents contents)
      Get an Attributes DAO from Contents
      Specified by:
      getAttributesDao in interface GeoPackage
      Parameters:
      contents - contents
      Returns:
      attributes dao
    • getAttributesDao

      public AttributesDao getAttributesDao(AttributesTable table)
      Get an Attributes DAO from a table
      Specified by:
      getAttributesDao in interface GeoPackage
      Parameters:
      table - attributes table
      Returns:
      attributes dao
    • getAttributesDao

      public AttributesDao getAttributesDao(String tableName)
      Get an Attributes DAO from a table name
      Specified by:
      getAttributesDao in interface GeoPackage
      Parameters:
      tableName - table name
      Returns:
      attributes dao
    • getUserCustomDao

      public UserCustomDao getUserCustomDao(String tableName)
      Get a User Custom DAO from a table name
      Specified by:
      getUserCustomDao in interface GeoPackage
      Parameters:
      tableName - table name
      Returns:
      user custom dao
    • getUserCustomDao

      public UserCustomDao getUserCustomDao(UserCustomTable table)
      Get a User Custom DAO from a table
      Specified by:
      getUserCustomDao in interface GeoPackage
      Parameters:
      table - table
      Returns:
      user custom dao
    • getUserDao

      public UserDao<?,?,?,?> getUserDao(String tableName)
      Get a User DAO from a table
      Specified by:
      getUserDao in interface GeoPackage
      Parameters:
      tableName - table name
      Returns:
      user dao
    • execSQL

      public void execSQL(String sql)
      Specified by:
      execSQL in interface GeoPackageCore
    • beginTransaction

      public void beginTransaction()
      Specified by:
      beginTransaction in interface GeoPackageCore
    • endTransaction

      public void endTransaction(boolean successful)
      Specified by:
      endTransaction in interface GeoPackageCore
    • commit

      public void commit()
      Specified by:
      commit in interface GeoPackageCore
    • inTransaction

      public boolean inTransaction()
      Specified by:
      inTransaction in interface GeoPackageCore
    • rawQuery

      public android.database.Cursor rawQuery(String sql, String[] args)
      Perform a raw query on the database
      Specified by:
      rawQuery in interface GeoPackage
      Parameters:
      sql - sql statement
      args - arguments
      Returns:
      cursor
    • getConnection

      public GeoPackageConnection getConnection()
      Get the GeoPackage connection
      Specified by:
      getConnection in interface GeoPackage
      Returns:
      GeoPackage connection
    • getContext

      public android.content.Context getContext()
      Get the application context
      Specified by:
      getContext in interface GeoPackage
      Returns:
      context
    • foreignKeyCheck

      public android.database.Cursor foreignKeyCheck()
      Perform a foreign key check on the database
      Specified by:
      foreignKeyCheck in interface GeoPackage
      Returns:
      null if check passed, open cursor with results if failed
    • foreignKeyCheck

      public android.database.Cursor foreignKeyCheck(String tableName)
      Perform a foreign key check on the database table
      Specified by:
      foreignKeyCheck in interface GeoPackage
      Parameters:
      tableName - table name
      Returns:
      null if check passed, open cursor with results if failed
    • integrityCheck

      public android.database.Cursor integrityCheck()
      Perform an integrity check on the database
      Specified by:
      integrityCheck in interface GeoPackage
      Returns:
      null if check passed, open cursor with results if failed
    • quickCheck

      public android.database.Cursor quickCheck()
      Perform a quick integrity check on the database
      Specified by:
      quickCheck in interface GeoPackage
      Returns:
      null if check passed, open cursor with results if failed