package com.feigdev.androidserialsql;

import android.database.sqlite.SQLiteDatabase;

/**
 * Created by ejohn on 9/2/13.
 */
public abstract class WriterTask implements Runnable {
    private SQLiteDatabase db;

    public WriterTask(String dbName) {
        this.db = AccessDB.databases.get(dbName).getWriter();
    }

    public SQLiteDatabase getDB() {
        return this.db;
    }
}

@@ -174,16 +174,46 @@
 nable %7B%0A
+    public Runnable callback;%0A
     priv
@@ -271,16 +271,35 @@
 g dbName
+, Runnable callback
 ) %7B%0A    
@@ -356,16 +356,50 @@
 iter();%0A
+        this.callback = callback;%0A
     %7D%0A%0A 

add callback