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 representation of the object.
|
public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, CancellationSignal cancellationSignal)
public Cursor query(SQLiteDatabase.CursorFactory factory, String[] selectionArgs)
SQLiteCursorDriver
query
in interface SQLiteCursorDriver
factory
- The CursorFactory to use when creating the Cursors, or
null if standard SQLiteCursors should be returned.public void cursorClosed()
SQLiteCursorDriver
cursorClosed
in interface SQLiteCursorDriver
public void setBindArguments(String[] bindArgs)
SQLiteCursorDriver
setBindArguments
in interface SQLiteCursorDriver
bindArgs
- the new argumentspublic void cursorDeactivated()
SQLiteCursorDriver
cursorDeactivated
in interface SQLiteCursorDriver
public void cursorRequeried(Cursor cursor)
SQLiteCursorDriver
cursorRequeried
in interface SQLiteCursorDriver
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())