geopackage-sdk/src/main/java/mil/nga/geopackage/db/metadata/TableMetadataDataSource.java
public TableMetadata get(long geoPackageId, String tableName) {

        String selection = TableMetadata.COLUMN_GEOPACKAGE_ID
                + " = ? AND " + TableMetadata.COLUMN_TABLE_NAME + " = ?";
        String[] selectionArgs = new String[]{String.valueOf(geoPackageId), tableName};
        Cursor cursor = db.query(
                TableMetadata.TABLE_NAME,
                TableMetadata.COLUMNS, selection, selectionArgs, null, null, null);
        TableMetadata metadata = null;
        try {
            if (cursor.moveToNext()) {
                metadata = createTableMetadata(cursor);
            }
        } finally {
            cursor.close();
        }
        return metadata;
    }
public TableMetadata get(long geoPackageId, String tableName) {

        String selection = TableMetadata.COLUMN_GEOPACKAGE_ID
                + " = ? AND " + TableMetadata.COLUMN_TABLE_NAME + " = ?";
        String[] selectionArgs = new String[]{String.valueOf(geoPackageId), tableName};
        Cursor cursor = db.query(
                TableMetadata.TABLE_NAME,
                TableMetadata.COLUMNS, selection, selectionArgs, null, null, null);
        TableMetadata metadata = null;
        try {
            if (cursor.moveToNext()) {
                metadata = createTableMetadata(cursor);
            }
        } finally {
            cursor.close();
        }
        return metadata;
    }
public TableMetadata get ( long geoPackageId , String tableName ) { String selection = TableMetadata . COLUMN_GEOPACKAGE_ID + " = ? AND " + TableMetadata . COLUMN_TABLE_NAME + " = ?" ; String [ ] selectionArgs = new String [ ] { String . valueOf ( geoPackageId ) , tableName } ; Cursor cursor = db . query ( TableMetadata . TABLE_NAME , TableMetadata . COLUMNS , selection , selectionArgs , null , null , null ) ; TableMetadata metadata = null ; try { if ( cursor . moveToNext ( ) ) { metadata = createTableMetadata ( cursor ) ; } } finally { cursor . close ( ) ; } return metadata ; }
Get a table metadata

@param geoPackageId GeoPackage id
@param tableName    table name
@return table metadata
Get a table metadata