Back to project page InMemoryDb.
The source code is released under:
Apache License
If you think the Android project InMemoryDb listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.gawst.asyncdb; // w ww.j a va 2s . c o m import org.gawst.asyncdb.source.DatabaseSource; import android.net.Uri; /** * A class similar to {@link android.content.AsyncQueryHandler} to do simple calls asynchronously with a callback when it's done. * Only works with {@link org.gawst.asyncdb.AsynchronousDbHelper} classes that use a {@link org.gawst.asyncdb.source.DatabaseSource} source. * <p>When using different instances for the same {@link org.gawst.asyncdb.AsynchronousDbHelper} source, make sure the IDs you pass to the startXXX() methods are unique! */ public class AsyncDbHelperHandler<INSERT_ID> extends AsyncDatabaseHandler<INSERT_ID, Uri> { /** * Constructor. * * @param asynchronousDbHelper */ public AsyncDbHelperHandler(AsynchronousDbHelper<?, INSERT_ID> asynchronousDbHelper) { super(asynchronousDbHelper, (DatabaseSource<INSERT_ID, Uri>) asynchronousDbHelper.dataSource); } }