Android Open Source - async_loader S Q Lite Delete Task






From Project

Back to project page async_loader.

License

The source code is released under:

Apache License

If you think the Android project async_loader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.beinggreenrobot.content.loaderasync;
/* w ww  . jav a2 s. co m*/
import android.database.sqlite.SQLiteDatabase;
import android.os.AsyncTask;

@Deprecated
public class SQLiteDeleteTask
  extends AsyncTask<Void, Void, Exception> {
  SQLiteDatabase db;
  String table;
  String selection;
  String[] args;
  
  public SQLiteDeleteTask(SQLiteDatabase db, String table,
                           String selection,
                           String[] args) {
    this.db=db;
    this.table=table;
    this.selection=selection;
    this.args=args;
  }
  
  @Override
  protected Exception doInBackground(Void... params) {
    try {
      db.delete(table, selection, args);
    }
    catch (Exception e) {
      return(e);
    }
    
    return(null);
  }
}




Java Source Code List

com.beinggreenrobot.content.loaderasync.AbstractCursorLoader.java
com.beinggreenrobot.content.loaderasync.ContentChangingTask.java
com.beinggreenrobot.content.loaderasync.SQLiteCursorLoader.java
com.beinggreenrobot.content.loaderasync.SQLiteDeleteTask.java
com.beinggreenrobot.content.loaderasync.SQLiteInsertTask.java
com.beinggreenrobot.content.loaderasync.SharedPreferencesLoader.java
com.beinggreenrobot.support.content.loaderasync.AbstractCursorLoader.java
com.beinggreenrobot.support.content.loaderasync.ContentChangingTask.java
com.beinggreenrobot.support.content.loaderasync.SQLiteCursorLoader.java
com.beinggreenrobot.support.content.loaderasync.SharedPreferencesLoader.java