Package mil.nga.geopackage
Class GeoPackageImpl
- java.lang.Object
-
- mil.nga.geopackage.GeoPackageCoreImpl
-
- mil.nga.geopackage.GeoPackageImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,GeoPackage,GeoPackageCore
public class GeoPackageImpl extends GeoPackageCoreImpl implements GeoPackage
A single GeoPackage database connection implementation
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.GeoPackageCoreImpl
writable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTransaction()voidcommit()voidendTransaction(boolean successful)voidexecSQL(String sql)CursorforeignKeyCheck()Perform a foreign key check on the databaseCursorforeignKeyCheck(String tableName)Perform a foreign key check on the database tableAttributesDaogetAttributesDao(String tableName)Get an Attributes DAO from a table nameAttributesDaogetAttributesDao(AttributesTable table)Get an Attributes DAO from a tableAttributesDaogetAttributesDao(Contents contents)Get an Attributes DAO from ContentsGeoPackageConnectiongetConnection()Get the GeoPackage connectionContextgetContext()Get the application contextGeoPackageCursorFactorygetCursorFactory()Get the cursor factoryBoundingBoxgetFeatureBoundingBox(Projection projection, String table, boolean manual)FeatureDaogetFeatureDao(String tableName)Get a Feature DAO from a table nameFeatureDaogetFeatureDao(Contents contents)Get a Feature DAO from ContentsFeatureDaogetFeatureDao(GeometryColumns geometryColumns)Get a Feature DAO from Geometry ColumnsFeatureDaogetFeatureDao(FeatureTable table)Get a Feature DAO from a tableTileDaogetTileDao(String tableName)Get a Tile DAO from a table nameTileDaogetTileDao(Contents contents)Get a Tile DAO from ContentsTileDaogetTileDao(TileMatrixSet tileMatrixSet)Get a Tile DAO from Tile Matrix SetTileDaogetTileDao(TileTable table)Get a Tile DAO from a tableUserCustomDaogetUserCustomDao(String tableName)Get a User Custom DAO from a table nameUserCustomDaogetUserCustomDao(UserCustomTable table)Get a User Custom DAO from a tableCursorintegrityCheck()Perform an integrity check on the databasebooleaninTransaction()CursorquickCheck()Perform a quick integrity check on the databaseCursorrawQuery(String sql, String[] args)Perform a raw query on the databasevoidregisterCursorWrapper(String table, GeoPackageCursorWrapper cursorWrapper)Register a GeoPackage Cursor Wrapper for table name-
Methods inherited from class mil.nga.geopackage.GeoPackageCoreImpl
callInTransaction, close, copyAttributeTable, copyContents, copyFeatureTable, copyTable, copyTable, copyTableAsEmpty, copyTableNoExtensions, copyTileTable, copyUserTable, copyUserTable, createAttributesTable, createAttributesTable, createDao, createExtensionsTable, createFeatureTable, createFeatureTable, createGeometryColumnsTable, createTileMatrixSetTable, createTileMatrixTable, createTileTable, createTileTable, createUserTable, deleteTable, deleteTableQuietly, dropTable, dropView, enableForeignKeys, endAndBeginTransaction, endTransaction, failTransaction, foreignKeys, foreignKeys, getApplicationId, getApplicationIdHex, getApplicationIdInteger, getAttributesTables, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsDao, getContentsProjection, getDatabase, getExtensionManager, getExtensionsDao, getFeatureTables, getGeometryColumnsDao, getName, getPath, getProjection, getSpatialReferenceSystemDao, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableContents, getTableCreator, getTableDataType, getTables, getTables, getTables, getTables, getTables, getTableType, getTileMatrixDao, getTileMatrixSetDao, getTileTables, getTypeContents, getTypeContents, getTypeContents, getTypeContents, getUserVersion, getUserVersionMajor, getUserVersionMinor, getUserVersionPatch, isAttributeTable, isContentsTable, isFeatureTable, isTable, isTableOrView, isTableType, isTableType, isTableType, isTableType, isTileTable, isView, isWritable, renameTable, vacuum, verifyWritable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface mil.nga.geopackage.GeoPackageCore
callInTransaction, close, copyTable, copyTableAsEmpty, copyTableNoExtensions, createAttributesTable, createAttributesTable, createDao, createExtensionsTable, createFeatureTable, createFeatureTable, createGeometryColumnsTable, createTileMatrixSetTable, createTileMatrixTable, createTileTable, createTileTable, createUserTable, deleteTable, deleteTableQuietly, dropTable, dropView, enableForeignKeys, endAndBeginTransaction, endTransaction, failTransaction, foreignKeys, foreignKeys, getApplicationId, getApplicationIdHex, getApplicationIdInteger, getAttributesTables, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsBoundingBox, getContentsDao, getContentsProjection, getDatabase, getExtensionManager, getExtensionsDao, getFeatureTables, getGeometryColumnsDao, getName, getPath, getProjection, getSpatialReferenceSystemDao, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableBoundingBox, getTableContents, getTableCreator, getTableDataType, getTables, getTables, getTables, getTables, getTables, getTableType, getTileMatrixDao, getTileMatrixSetDao, getTileTables, getTypeContents, getTypeContents, getTypeContents, getTypeContents, getUserVersion, getUserVersionMajor, getUserVersionMinor, getUserVersionPatch, isAttributeTable, isContentsTable, isFeatureTable, isTable, isTableOrView, isTableType, isTableType, isTableType, isTableType, isTileTable, isView, isWritable, renameTable, vacuum, verifyWritable
-
-
-
-
Method Detail
-
getFeatureBoundingBox
public BoundingBox getFeatureBoundingBox(Projection projection, String table, boolean manual)
- Specified by:
getFeatureBoundingBoxin interfaceGeoPackageCore
-
getCursorFactory
public GeoPackageCursorFactory getCursorFactory()
Get the cursor factory- Specified by:
getCursorFactoryin interfaceGeoPackage- Returns:
- cursor factory
-
registerCursorWrapper
public void registerCursorWrapper(String table, GeoPackageCursorWrapper cursorWrapper)
Register a GeoPackage Cursor Wrapper for table name- Specified by:
registerCursorWrapperin interfaceGeoPackage- Parameters:
table- table namecursorWrapper- cursor wrapper
-
getFeatureDao
public FeatureDao getFeatureDao(GeometryColumns geometryColumns)
Get a Feature DAO from Geometry Columns- Specified by:
getFeatureDaoin interfaceGeoPackage- Parameters:
geometryColumns- geometry columns- Returns:
- feature dao
-
getFeatureDao
public FeatureDao getFeatureDao(Contents contents)
Get a Feature DAO from Contents- Specified by:
getFeatureDaoin interfaceGeoPackage- Parameters:
contents- contents- Returns:
- feature dao
-
getFeatureDao
public FeatureDao getFeatureDao(FeatureTable table)
Get a Feature DAO from a table- Specified by:
getFeatureDaoin interfaceGeoPackage- Parameters:
table- feature table- Returns:
- feature dao
-
getFeatureDao
public FeatureDao getFeatureDao(String tableName)
Get a Feature DAO from a table name- Specified by:
getFeatureDaoin interfaceGeoPackage- Parameters:
tableName- table name- Returns:
- feature dao
-
getTileDao
public TileDao getTileDao(TileMatrixSet tileMatrixSet)
Get a Tile DAO from Tile Matrix Set- Specified by:
getTileDaoin interfaceGeoPackage- Parameters:
tileMatrixSet- tile matrix set- Returns:
- tile dao
-
getTileDao
public TileDao getTileDao(Contents contents)
Get a Tile DAO from Contents- Specified by:
getTileDaoin interfaceGeoPackage- Parameters:
contents- contents- Returns:
- tile dao
-
getTileDao
public TileDao getTileDao(TileTable table)
Get a Tile DAO from a table- Specified by:
getTileDaoin interfaceGeoPackage- Parameters:
table- tile table- Returns:
- tile dao
-
getTileDao
public TileDao getTileDao(String tableName)
Get a Tile DAO from a table name- Specified by:
getTileDaoin interfaceGeoPackage- Parameters:
tableName- table name- Returns:
- tile dao
-
getAttributesDao
public AttributesDao getAttributesDao(Contents contents)
Get an Attributes DAO from Contents- Specified by:
getAttributesDaoin interfaceGeoPackage- Parameters:
contents- contents- Returns:
- attributes dao
-
getAttributesDao
public AttributesDao getAttributesDao(AttributesTable table)
Get an Attributes DAO from a table- Specified by:
getAttributesDaoin interfaceGeoPackage- Parameters:
table- attributes table- Returns:
- attributes dao
-
getAttributesDao
public AttributesDao getAttributesDao(String tableName)
Get an Attributes DAO from a table name- Specified by:
getAttributesDaoin interfaceGeoPackage- Parameters:
tableName- table name- Returns:
- attributes dao
-
getUserCustomDao
public UserCustomDao getUserCustomDao(String tableName)
Get a User Custom DAO from a table name- Specified by:
getUserCustomDaoin interfaceGeoPackage- Parameters:
tableName- table name- Returns:
- user custom dao
-
getUserCustomDao
public UserCustomDao getUserCustomDao(UserCustomTable table)
Get a User Custom DAO from a table- Specified by:
getUserCustomDaoin interfaceGeoPackage- Parameters:
table- table- Returns:
- user custom dao
-
execSQL
public void execSQL(String sql)
- Specified by:
execSQLin interfaceGeoPackageCore
-
beginTransaction
public void beginTransaction()
- Specified by:
beginTransactionin interfaceGeoPackageCore
-
endTransaction
public void endTransaction(boolean successful)
- Specified by:
endTransactionin interfaceGeoPackageCore
-
commit
public void commit()
- Specified by:
commitin interfaceGeoPackageCore
-
inTransaction
public boolean inTransaction()
- Specified by:
inTransactionin interfaceGeoPackageCore
-
rawQuery
public Cursor rawQuery(String sql, String[] args)
Perform a raw query on the database- Specified by:
rawQueryin interfaceGeoPackage- Parameters:
sql- sql statementargs- arguments- Returns:
- cursor
-
getConnection
public GeoPackageConnection getConnection()
Get the GeoPackage connection- Specified by:
getConnectionin interfaceGeoPackage- Returns:
- GeoPackage connection
-
getContext
public Context getContext()
Get the application context- Specified by:
getContextin interfaceGeoPackage- Returns:
- context
-
foreignKeyCheck
public Cursor foreignKeyCheck()
Perform a foreign key check on the database- Specified by:
foreignKeyCheckin interfaceGeoPackage- Returns:
- null if check passed, open cursor with results if failed
-
foreignKeyCheck
public Cursor foreignKeyCheck(String tableName)
Perform a foreign key check on the database table- Specified by:
foreignKeyCheckin interfaceGeoPackage- Parameters:
tableName- table name- Returns:
- null if check passed, open cursor with results if failed
-
integrityCheck
public Cursor integrityCheck()
Perform an integrity check on the database- Specified by:
integrityCheckin interfaceGeoPackage- Returns:
- null if check passed, open cursor with results if failed
-
quickCheck
public Cursor quickCheck()
Perform a quick integrity check on the database- Specified by:
quickCheckin interfaceGeoPackage- Returns:
- null if check passed, open cursor with results if failed
-
-