public GeoPackageMetadata get ( long id ) { GeoPackageMetadata metadata = null ; String selection = GeoPackageMetadata . COLUMN_ID + " = ?" ; String [ ] selectionArgs = new String [ ] { String . valueOf ( id ) } ; Cursor cursor = db . query ( GeoPackageMetadata . TABLE_NAME , GeoPackageMetadata . COLUMNS , selection , selectionArgs , null , null , null ) ; try { if ( cursor . moveToNext ( ) ) { metadata = createGeoPackageMetadata ( cursor ) ; } } finally { cursor . close ( ) ; } return metadata ; }
Get GeoPackage metadata by id