to top
Android APIs
Added in API level 1
public interface

SQLiteCursorDriver

android.database.sqlite.SQLiteCursorDriver

Class Overview

A driver for SQLiteCursors that is used to create them and gets notified by the cursors it creates on significant events in their lifetimes.

Summary

Public Methods

? Examples
abstract void cursorClosed()
Called by a SQLiteCursor when it it closed to destroy this object as well.

? Examples
abstract void cursorDeactivated()
Called by a SQLiteCursor when it is released.

? Examples
abstract void cursorRequeried( Cursor cursor)
Called by a SQLiteCursor when it is requeried.

? Examples
abstract Cursor query( SQLiteDatabase.CursorFactory factory, String[] bindArgs)
Executes the query returning a Cursor over the result set.

? Examples
abstract void setBindArguments( String[] bindArgs)
Set new bind arguments.

Public Methods

public abstract void cursorClosed ()

Added in API level 1

Called by a SQLiteCursor when it it closed to destroy this object as well.

public abstract void cursorDeactivated ()

Added in API level 1

Called by a SQLiteCursor when it is released.

public abstract void cursorRequeried (Cursor cursor)

Added in API level 1

Called by a SQLiteCursor when it is requeried.

public abstract Cursor query (SQLiteDatabase.CursorFactory factory, String[] bindArgs)

Added in API level 1

Executes the query returning a Cursor over the result set.

Parameters
factory The CursorFactory to use when creating the Cursors, or null if standard SQLiteCursors should be returned.
Returns
  • a Cursor over the result set

public abstract void setBindArguments (String[] bindArgs)

Added in API level 1

Set new bind arguments. These will take effect in cursorRequeried().

Parameters
bindArgs the new arguments
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.