org.gawst.asyncdb.source.CursorDataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asyncdb Show documentation
Show all versions of asyncdb Show documentation
A set of helper class to keep a copy of small SQLite databases in memory in Android
package org.gawst.asyncdb.source;
import android.database.Cursor;
import android.support.annotation.NonNull;
import org.gawst.asyncdb.source.typed.TypedCursorDataSource;
/**
* Abstract helper {@link org.gawst.asyncdb.DataSource} class reading using a {@link android.database.Cursor}.
*
* @param Type of element read/write from the {@link org.gawst.asyncdb.DataSource}.
* @param Type of elements returned by {@link org.gawst.asyncdb.DataSource#insert(android.content.ContentValues)}
* @param Type of the ID needed to use {@link org.gawst.asyncdb.AsyncDatabaseHandler}
* @author Created by robUx4 on 12/31/2014.
* @see org.gawst.asyncdb.source.ContentProviderDataSource
* @see SqliteDataSource
* @see SqliteMapDataSource
*/
public abstract class CursorDataSource extends TypedCursorDataSource {
/**
* Constructor.
*
* @param databaseElementHandler Handler to transform {@link E} elements to queries and {@code Cursor} to {@link E} elements.
*/
public CursorDataSource(@NonNull DatabaseElementHandler databaseElementHandler) {
super(databaseElementHandler);
}
}