Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.gawst.asyncdb.source;
 
 import  android.content.Context;
 import  android.database.Cursor;
 import  android.database.sqlite.SQLiteOpenHelper;
 import  android.support.annotation.NonNull;
 
A org.gawst.asyncdb.DataSource backed by a android.database.sqlite.SQLiteOpenHelper storage that uses a Key/Value based DatabaseElementHandler to read/write elements from the database

Author(s):
Created by robUx4 on 12/31/2014.
public class SqliteMapDataSource<K, V> extends TypedSqliteMapDataSource<K, V, Cursor> implements DatabaseSource<LongVoid> {
	public SqliteMapDataSource(@NonNull Context context, @NonNull SQLiteOpenHelper db, @NonNull String tableName, @NonNull MapDatabaseElementHandler<K, V> databaseElementHandler) {
		super(contextdbtableNamedatabaseElementHandler);
	}
	public SqliteMapDataSource(@NonNull Context context, @NonNull SQLiteOpenHelper db, @NonNull String tableName, @NonNull String databaseName, @NonNull MapDatabaseElementHandler<K, V> databaseElementHandler) {
		super(contextdbtableNamedatabaseNamedatabaseElementHandler);
	}
	public Cursor wrapCursor(Cursor cursor) {
		return cursor;
	}
New to GrepCode? Check out our FAQ X