All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gawst.asyncdb.source.CursorDataSource Maven / Gradle / Ivy

Go to download

A set of helper class to keep a copy of small SQLite databases in memory in Android

There is a newer version: 3.1.1
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy