Build 1.0_r1(from source)

android.database.sqlite
Interface SQLiteCursorDriver

All Known Implementing Classes:
SQLiteDirectCursorDriver

public interface SQLiteCursorDriver

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


Method Summary
 void cursorClosed()
          Called by a SQLiteCursor when it it closed to destroy this object as well.
 void cursorDeactivated()
          Called by a SQLiteCursor when it is released.
 void cursorRequeried(Cursor cursor)
          Called by a SQLiteCursor when it is requeryed.
 Cursor query(SQLiteDatabase.CursorFactory factory, String[] bindArgs)
          Executes the query returning a Cursor over the result set.
 void setBindArguments(String[] bindArgs)
          Set new bind arguments.
 

Method Detail

query

Cursor query(SQLiteDatabase.CursorFactory factory,
             String[] bindArgs)
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

cursorDeactivated

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


cursorRequeried

void cursorRequeried(Cursor cursor)
Called by a SQLiteCursor when it is requeryed.


cursorClosed

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


setBindArguments

void setBindArguments(String[] bindArgs)
Set new bind arguments. These will take effect in cursorRequeried().

Parameters:
bindArgs - the new arguments

Build 1.0_r1(from source)

Please submit a feedback, bug or feature