package com.dd.database.utils;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class DatabaseUtils {

    public int delete(SQLiteDatabase database, DatabaseParams.Delete params) {
        return database.delete(params.table, params.whereClause, params.whereArgs);
    }

    public long insert(SQLiteDatabase database, DatabaseParams.Insert params) {
        return database.insert(params.table, params.nullColumnHack, params.values);
    }

    public Cursor select(SQLiteDatabase database, DatabaseParams.Select params) {
        return database.query(params.distinct, params.table, params.columns, params.selection,
                params.selectionArgs, params.groupBy, params.having, params.orderBy, params.limit);
    }

    public int update(SQLiteDatabase database, DatabaseParams.Update params) {
        return database.update(params.table, params.values, params.whereClause, params.whereArgs);
    }

    public Cursor rawQuery(SQLiteDatabase database, String sql, String[] selectionArgs) {
        return database.rawQuery(sql, selectionArgs);
    }
}

@@ -142,24 +142,31 @@
 %0A    public 
+static 
 int delete(S
@@ -213,32 +213,32 @@
 elete params) %7B%0A
-
         return d
@@ -323,16 +323,23 @@
  public 
+static 
 long ins
@@ -497,24 +497,31 @@
 %0A    public 
+static 
 Cursor selec
@@ -792,16 +792,23 @@
  public 
+static 
 int upda
@@ -965,32 +965,32 @@
 reArgs);%0A    %7D%0A%0A
-
     public Curso
@@ -984,16 +984,23 @@
  public 
+static 
 Cursor r

Update DatabaseUtils.java