Package android.database.sqlite
Class SQLiteDirectCursorDriver
- java.lang.Object
-
- android.database.sqlite.SQLiteDirectCursorDriver
-
- All Implemented Interfaces:
SQLiteCursorDriver
public final class SQLiteDirectCursorDriver extends Object implements SQLiteCursorDriver
A cursor driver that uses the given query directly.
-
-
Constructor Summary
Constructors Constructor Description SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, CancellationSignal cancellationSignal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcursorClosed()Called by a SQLiteCursor when it it closed to destroy this object as well.voidcursorDeactivated()Called by a SQLiteCursor when it is released.voidcursorRequeried(Cursor cursor)Called by a SQLiteCursor when it is requeried.Cursorquery(SQLiteDatabase.CursorFactory factory, String[] selectionArgs)Executes the query returning a Cursor over the result set.voidsetBindArguments(String[] bindArgs)Set new bind arguments.StringtoString()Returns a string containing a concise, human-readable description of this object.
-
-
-
Constructor Detail
-
SQLiteDirectCursorDriver
public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, CancellationSignal cancellationSignal)
-
-
Method Detail
-
query
public Cursor query(SQLiteDatabase.CursorFactory factory, String[] selectionArgs)
Description copied from interface:SQLiteCursorDriverExecutes the query returning a Cursor over the result set.- Specified by:
queryin interfaceSQLiteCursorDriver- 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:SQLiteCursorDriverCalled by a SQLiteCursor when it it closed to destroy this object as well.- Specified by:
cursorClosedin interfaceSQLiteCursorDriver
-
setBindArguments
public void setBindArguments(String[] bindArgs)
Description copied from interface:SQLiteCursorDriverSet new bind arguments. These will take effect in cursorRequeried().- Specified by:
setBindArgumentsin interfaceSQLiteCursorDriver- Parameters:
bindArgs- the new arguments
-
cursorDeactivated
public void cursorDeactivated()
Description copied from interface:SQLiteCursorDriverCalled by a SQLiteCursor when it is released.- Specified by:
cursorDeactivatedin interfaceSQLiteCursorDriver
-
cursorRequeried
public void cursorRequeried(Cursor cursor)
Description copied from interface:SQLiteCursorDriverCalled by a SQLiteCursor when it is requeried.- Specified by:
cursorRequeriedin interfaceSQLiteCursorDriver
-
toString
public String toString()
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-
-