public final class SQLiteDirectCursorDriver extends Object implements SQLiteCursorDriver
| Constructor and Description |
|---|
SQLiteDirectCursorDriver(SQLiteDatabase db,
String sql,
String editTable,
CancellationSignal cancellationSignal) |
| Modifier and Type | Method and Description |
|---|---|
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 requeried.
|
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 this
object.
|
public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, CancellationSignal cancellationSignal)
public Cursor query(SQLiteDatabase.CursorFactory factory, String[] selectionArgs)
SQLiteCursorDriverquery in interface SQLiteCursorDriverfactory - The CursorFactory to use when creating the Cursors, or
null if standard SQLiteCursors should be returned.public void cursorClosed()
SQLiteCursorDrivercursorClosed in interface SQLiteCursorDriverpublic void setBindArguments(String[] bindArgs)
SQLiteCursorDriversetBindArguments in interface SQLiteCursorDriverbindArgs - the new argumentspublic void cursorDeactivated()
SQLiteCursorDrivercursorDeactivated in interface SQLiteCursorDriverpublic void cursorRequeried(Cursor cursor)
SQLiteCursorDrivercursorRequeried in interface SQLiteCursorDriverpublic String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.