Java android.database DatabaseUtils fields, constructors, methods, implement or subclass

Example usage for Java android.database DatabaseUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.database DatabaseUtils.

The text is from its open source code.

Method

voidappendEscapedSQLString(StringBuilder sb, String sqlString)
Appends an SQL string to the given StringBuilder, including the opening and closing single quotes.
String[]appendSelectionArgs(String[] originalValues, String[] newValues)
Appends one set of selection args to another.
voidappendValueToSql(StringBuilder sql, Object value)
Appends an Object to an SQL string with the proper escaping, etc.
StringconcatenateWhere(String a, String b)
Concatenates two SQL WHERE clauses, handling empty or null values.
voidcursorDoubleToCursorValues(Cursor cursor, String field, ContentValues values)
Reads a Double out of a field in a Cursor and writes it to a Map.
voidcursorIntToContentValues(Cursor cursor, String field, ContentValues values, String key)
Reads a Integer out of a field in a Cursor and writes it to a Map.
voidcursorIntToContentValues(Cursor cursor, String field, ContentValues values)
Reads an Integer out of a field in a Cursor and writes it to a Map.
voidcursorRowToContentValues(Cursor cursor, ContentValues values)
Read the entire contents of a cursor row and store them in a ContentValues.
voidcursorStringToContentValues(Cursor cursor, String field, ContentValues values, String key)
Reads a String out of a field in a Cursor and writes it to a Map.
voidcursorStringToContentValues(Cursor cursor, String field, ContentValues values)
Reads a String out of a field in a Cursor and writes it to a Map.
voiddumpCursor(Cursor cursor)
Prints the contents of a Cursor to System.out.
StringdumpCursorToString(Cursor cursor)
Prints the contents of a Cursor to a String.
longlongForQuery(SQLiteDatabase db, String query, String[] selectionArgs)
Utility method to run the query on the db and return the value in the first column of the first row.
longqueryNumEntries(SQLiteDatabase db, String table)
Query the table for the number of rows in the table.
voidreadExceptionFromParcel(Parcel reply, String msg, int code)
StringsqlEscapeString(String value)
SQL-escape a string.