Package mil.nga.geopackage.db.metadata
Class GeoPackageMetadataDb
java.lang.Object
android.database.sqlite.SQLiteOpenHelper
mil.nga.geopackage.db.metadata.GeoPackageMetadataDb
- All Implemented Interfaces:
AutoCloseable
GeoPackage Metadata database
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Metadata database namestatic final int
Metadata database version -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
onUpgrade
(SQLiteDatabase db, int oldVersion, int newVersion) void
open()
Open databaseMethods inherited from class android.database.sqlite.SQLiteOpenHelper
getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onDowngrade, onOpen, setIdleConnectionTimeout, setLookasideConfig, setOpenParams, setWriteAheadLoggingEnabled
-
Field Details
-
DATABASE_NAME
Metadata database name- See Also:
-
DATABASE_VERSION
public static final int DATABASE_VERSIONMetadata database version- See Also:
-
-
Constructor Details
-
GeoPackageMetadataDb
Constructor- Parameters:
context
- context
-
-
Method Details
-
onCreate
- Specified by:
onCreate
in classSQLiteOpenHelper
-
onUpgrade
- Specified by:
onUpgrade
in classSQLiteOpenHelper
-
open
public void open()Open database -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classSQLiteOpenHelper
-