Android Open Source - sqldb Cursor Handler






From Project

Back to project page sqldb.

License

The source code is released under:

MIT License

If you think the Android project sqldb 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 prj.sqldb;
//from w w  w  .j  av  a 2  s  .  c o m
import android.database.Cursor;

public interface CursorHandler<MY_TYPE>
{
    /* This method is executed on a DB reader thread
     * Its implementation should convert the Cursor to some type useful for the application
     */
    MY_TYPE handle(Cursor cursor);

    /* This method is called on a thread provided by the ExecutorService that is given to SqlDb in its constructor
     * It provides the application with the result of the work done in the handle() method.
     */
    void callback(MY_TYPE result);
}




Java Source Code List

prj.sqldb.CursorHandler.java
prj.sqldb.DBCallback.java
prj.sqldb.MultipleCursorHandler.java
prj.sqldb.QueryParams.java
prj.sqldb.QueryResult.java
prj.sqldb.SequentialCursorProcessor.java
prj.sqldb.SqlDb.java
prj.sqldb.threading.ExceptionThrowingFutureTask.java
prj.sqldb.threading.Later.java
prj.sqldb.threading.SqlDBThreads.java