SQLiteCursorDriver
public
interface
SQLiteCursorDriver
| android.database.sqlite.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.
Summary
Public methods | |
|---|---|
abstract
void
|
cursorClosed()
Called by a SQLiteCursor when it it closed to destroy this object as well. |
abstract
void
|
cursorDeactivated()
Called by a SQLiteCursor when it is released. |
abstract
void
|
cursorRequeried(Cursor cursor)
Called by a SQLiteCursor when it is requeried. |
abstract
Cursor
|
query(SQLiteDatabase.CursorFactory factory, String[] bindArgs)
Executes the query returning a Cursor over the result set. |
abstract
void
|
setBindArguments(String[] bindArgs)
Set new bind arguments. |
Public methods
cursorClosed
void cursorClosed ()
Called by a SQLiteCursor when it it closed to destroy this object as well.
cursorDeactivated
void cursorDeactivated ()
Called by a SQLiteCursor when it is released.
cursorRequeried
void cursorRequeried (Cursor cursor)
Called by a SQLiteCursor when it is requeried.
| Parameters | |
|---|---|
cursor |
Cursor |
query
Cursor query (SQLiteDatabase.CursorFactory factory, String[] bindArgs)
Executes the query returning a Cursor over the result set.
| Parameters | |
|---|---|
factory |
SQLiteDatabase.CursorFactory: The CursorFactory to use when creating the Cursors, or
null if standard SQLiteCursors should be returned. |
bindArgs |
String |
| Returns | |
|---|---|
Cursor |
a Cursor over the result set |
setBindArguments
void setBindArguments (String[] bindArgs)
Set new bind arguments. These will take effect in cursorRequeried().
| Parameters | |
|---|---|
bindArgs |
String: the new arguments
|
Interfaces
Classes
Exceptions
- SQLiteAbortException
- SQLiteAccessPermException
- SQLiteBindOrColumnIndexOutOfRangeException
- SQLiteBlobTooBigException
- SQLiteCantOpenDatabaseException
- SQLiteConstraintException
- SQLiteDatabaseCorruptException
- SQLiteDatabaseLockedException
- SQLiteDatatypeMismatchException
- SQLiteDiskIOException
- SQLiteDoneException
- SQLiteException
- SQLiteFullException
- SQLiteMisuseException
- SQLiteOutOfMemoryException
- SQLiteReadOnlyDatabaseException
- SQLiteTableLockedException

