public class GeoPackageDatabase extends Object
| Constructor and Description |
|---|
GeoPackageDatabase(SQLiteDatabase db)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
delete(String table,
String whereClause,
String[] whereArgs) |
void |
execSQL(String sql) |
SQLiteDatabase |
getDb()
Get the SQLite database connection
|
long |
insert(String table,
String nullColumnHack,
ContentValues values) |
long |
insertOrThrow(String table,
String nullColumnHack,
ContentValues values) |
Cursor |
query(String table,
String[] columns,
String[] columnsAs,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy) |
Cursor |
query(String table,
String[] columns,
String[] columnsAs,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy,
String limit) |
Cursor |
query(String table,
String[] columns,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy) |
Cursor |
query(String table,
String[] columns,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy,
String limit) |
Cursor |
rawQuery(String sql,
String[] selectionArgs) |
int |
update(String table,
ContentValues values,
String whereClause,
String[] whereArgs) |
public GeoPackageDatabase(SQLiteDatabase db)
db - databasepublic SQLiteDatabase getDb()
public void execSQL(String sql) throws SQLException
sql - sql commandSQLExceptionSQLiteDatabase.execSQL(String)public int delete(String table, String whereClause, String[] whereArgs)
table - table namewhereClause - where clausewhereArgs - where argumentsSQLiteDatabase.delete(String, String, String[])public Cursor rawQuery(String sql, String[] selectionArgs)
sql - sql commandselectionArgs - selection argumentsSQLiteDatabase.rawQuery(String, String[])public void close()
SQLiteClosable.close()public Cursor query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
table - table namecolumns - columnsselection - selectionselectionArgs - selection argumentsgroupBy - group byhaving - havingorderBy - order bySQLiteDatabase.query(String, String[], String, String[], String, String, String)public Cursor query(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
table - table namecolumns - columnscolumnsAs - columns asselection - selectionselectionArgs - selection argumentsgroupBy - group byhaving - havingorderBy - order bySQLiteDatabase.query(String, String[], String, String[], String, String, String)public Cursor query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
table - table namecolumns - columnsselection - selectionselectionArgs - selection argumentsgroupBy - group byhaving - havingorderBy - order bylimit - limitSQLiteDatabase.query(String, String[], String, String[], String, String, String, String)public Cursor query(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
table - table namecolumns - columnscolumnsAs - columns asselection - selectionselectionArgs - selection argumentsgroupBy - group byhaving - havingorderBy - order bylimit - limitSQLiteDatabase.query(String, String[], String, String[], String, String, String, String)public int update(String table, ContentValues values, String whereClause, String[] whereArgs)
table - table namevalues - content valueswhereClause - where clausewhereArgs - where argumentsSQLiteDatabase.update(String, ContentValues, String, String[])public long insertOrThrow(String table, String nullColumnHack, ContentValues values) throws SQLException
table - table namenullColumnHack - null column hackvalues - content valuesSQLExceptionSQLiteDatabase.insertOrThrow(String, String, ContentValues)public long insert(String table, String nullColumnHack, ContentValues values)
table - table namenullColumnHack - null column hackvalues - content valuesSQLiteDatabase.insert(String, String, ContentValues)