Project

General

Profile

Evolution #15538

Update SQLiteAdapterBase template

Added by Erwan L. 5 months ago. Updated 4 months ago.

Status:
Résolu
Priority:
Normal
Assignee:
Category:
Core
Target version:
Start date:
06/20/2019
Due date:
% Done:

80%

Estimated time:
Bdc:
HARMONY

Description

Add (or make it public if already exist) these methods in SQLiteAdapterBase template

    /**
     * Send a query to the DB.
     * @param table The table name to compile the query against
     * @param projection Columns to work with
     * @param whereClause WHERE clause for SQL
     * @param whereArgs WHERE arguments for SQL
     * @param groupBy GROUP BY argument for SQL
     * @param having HAVING clause
     * @param orderBy ORDER BY clause
     * @return A cursor pointing to the result of the query
     */
    public android.database.Cursor query(
            final String table,
            final String[] projection,
            final String whereClause,
            final String[] whereArgs,
            final String groupBy,
            final String having,
            final String orderBy) {
        return this.mDatabase.query(
                table,
                projection,
                whereClause,
                whereArgs,
                groupBy,
                having,
                orderBy);
    }

    /**
     * Send a query to the DB.
     * @param table The table name to compile the query against
     * @param projection Columns to work with
     * @param whereClause WHERE clause for SQL
     * @param whereArgs WHERE arguments for SQL
     * @param groupBy GROUP BY argument for SQL
     * @param having HAVING clause
     * @param orderBy ORDER BY clause
     * @return A cursor pointing to the result of the query
     */
    public android.database.Cursor query(
            final String table,
            final String[] projection,
            final String whereClause,
            final String[] whereArgs,
            final String groupBy,
            final String having,
            final String orderBy,
            final String limit) {
        return this.mDatabase.query(
                table,
                projection,
                whereClause,
                whereArgs,
                groupBy,
                having,
                orderBy,
                limit);
    }

Recurrences

History

#1Updated by Jeremy C. 5 months ago

Appliqué par commit commit:origin|5363beb310a24f46c6e1129a5001305d51b21452.

Also available in: Atom PDF

Go to top
Add picture from clipboard (Maximum size: 200 MB)