Back to project page FrameLite.
The source code is released under:
GNU General Public License
If you think the Android project FrameLite 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 com.miku.framelite.api.database; //from w ww .java 2 s .c o m import com.miku.framelite.api.RetResult; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public abstract class DatabaseQueryRequest<T> extends AbstractDatabaseRequest<T, Cursor> { public DatabaseQueryRequest(SQLiteOpenHelper helper) { super(helper); } @Override public boolean onParse(RetResult<T> result, Cursor retObj) { return false; } @Override protected DatabaseType getDatabaseType() { return DatabaseType.READABLE; } protected abstract String getSql(); protected String[] getSelectionArgs(){ return null; } @Override protected Cursor doToDatabase(RetResult<T> result,SQLiteDatabase db) { return db.rawQuery(getSql(), getSelectionArgs()); } }