Build 1.0_r1(from source)

android.database.sqlite
Class SQLiteDirectCursorDriver

java.lang.Object
  extended by android.database.sqlite.SQLiteDirectCursorDriver
All Implemented Interfaces:
SQLiteCursorDriver

public class SQLiteDirectCursorDriver
extends Object
implements SQLiteCursorDriver

A cursor driver that uses the given query directly.


Constructor Summary
SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable)
           
 
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[] selectionArgs)
          Executes the query returning a Cursor over the result set.
 void setBindArguments(String[] bindArgs)
          Set new bind arguments.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLiteDirectCursorDriver

public SQLiteDirectCursorDriver(SQLiteDatabase db,
                                String sql,
                                String editTable)
Method Detail

query

public Cursor query(SQLiteDatabase.CursorFactory factory,
                    String[] selectionArgs)
Description copied from interface: SQLiteCursorDriver
Executes the query returning a Cursor over the result set.

Specified by:
query in interface SQLiteCursorDriver
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

cursorClosed

public void cursorClosed()
Description copied from interface: SQLiteCursorDriver
Called by a SQLiteCursor when it it closed to destroy this object as well.

Specified by:
cursorClosed in interface SQLiteCursorDriver

setBindArguments

public void setBindArguments(String[] bindArgs)
Description copied from interface: SQLiteCursorDriver
Set new bind arguments. These will take effect in cursorRequeried().

Specified by:
setBindArguments in interface SQLiteCursorDriver
Parameters:
bindArgs - the new arguments

cursorDeactivated

public void cursorDeactivated()
Description copied from interface: SQLiteCursorDriver
Called by a SQLiteCursor when it is released.

Specified by:
cursorDeactivated in interface SQLiteCursorDriver

cursorRequeried

public void cursorRequeried(Cursor cursor)
Description copied from interface: SQLiteCursorDriver
Called by a SQLiteCursor when it is requeryed.

Specified by:
cursorRequeried in interface SQLiteCursorDriver

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature