public class JellyBeanApiCompatibility extends BasicApiCompatibility
NOTE: Will show as in error if compiled with previous Android versions.
Modifier and Type | Class and Description |
---|---|
protected static class |
JellyBeanApiCompatibility.JellyBeanCancellationHook
Hook object that supports canceling a running query.
|
ApiCompatibility.CancellationHook
Constructor and Description |
---|
JellyBeanApiCompatibility() |
Modifier and Type | Method and Description |
---|---|
ApiCompatibility.CancellationHook |
createCancellationHook()
Return a cancellation hook object that will be passed to the
ApiCompatibility.rawQuery(SQLiteDatabase, String, String[], CancellationHook) . |
android.database.Cursor |
rawQuery(android.database.sqlite.SQLiteDatabase db,
String sql,
String[] selectionArgs,
ApiCompatibility.CancellationHook cancellationHook)
Perform a raw query on a database with an optional cancellation-hook.
|
public android.database.Cursor rawQuery(android.database.sqlite.SQLiteDatabase db, String sql, String[] selectionArgs, ApiCompatibility.CancellationHook cancellationHook)
ApiCompatibility
rawQuery
in interface ApiCompatibility
rawQuery
in class BasicApiCompatibility
public ApiCompatibility.CancellationHook createCancellationHook()
ApiCompatibility
ApiCompatibility.rawQuery(SQLiteDatabase, String, String[], CancellationHook)
. If not supported then this will return
null.createCancellationHook
in interface ApiCompatibility
createCancellationHook
in class BasicApiCompatibility
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.