com.j256.ormlite.android.compat.BasicApiCompatibility Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ormlite-android Show documentation
Show all versions of ormlite-android Show documentation
Lightweight Object Relational Model (ORM) Android classes
package com.j256.ormlite.android.compat;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
/**
* Basic class which provides no-op methods for all Android version.
*
* @author graywatson
*/
public class BasicApiCompatibility implements ApiCompatibility {
public Cursor rawQuery(SQLiteDatabase db, String sql, String[] selectionArgs, CancellationHook cancellationHook) {
// NOTE: cancellationHook will always be null
return db.rawQuery(sql, selectionArgs);
}
public CancellationHook createCancellationHook() {
return null;
}
}