Stay organized with collections
Save and categorize content based on your preferences.
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
cursorClosed
public abstract void cursorClosed ()
Called by a SQLiteCursor when it it closed to destroy this object as well.
cursorDeactivated
public abstract void cursorDeactivated ()
Called by a SQLiteCursor when it is released.
cursorRequeried
public abstract void cursorRequeried (Cursor cursor)
Called by a SQLiteCursor when it is requeried.
query
public abstract 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
public abstract void setBindArguments (String[] bindArgs)
Set new bind arguments. These will take effect in cursorRequeried().
Parameters |
bindArgs |
String : the new arguments |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SQLiteCursorDriver\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSQLiteCursorDriver\n==================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/database/sqlite/SQLiteCursorDriver \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nSQLiteCursorDriver\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------|\n| android.database.sqlite.SQLiteCursorDriver |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA driver for SQLiteCursors that is used to create them and gets notified\nby the cursors it creates on significant events in their lifetimes.\n\nSummary\n-------\n\n| ### Public methods ||\n|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[cursorClosed](/reference/android/database/sqlite/SQLiteCursorDriver#cursorClosed())`() ` Called by a SQLiteCursor when it it closed to destroy this object as well. |\n| ` abstract void` | ` `[cursorDeactivated](/reference/android/database/sqlite/SQLiteCursorDriver#cursorDeactivated())`() ` Called by a SQLiteCursor when it is released. |\n| ` abstract void` | ` `[cursorRequeried](/reference/android/database/sqlite/SQLiteCursorDriver#cursorRequeried(android.database.Cursor))`(`[Cursor](/reference/android/database/Cursor)` cursor) ` Called by a SQLiteCursor when it is requeried. |\n| ` abstract `[Cursor](/reference/android/database/Cursor) | ` `[query](/reference/android/database/sqlite/SQLiteCursorDriver#query(android.database.sqlite.SQLiteDatabase.CursorFactory,%20java.lang.String[]))`(`[SQLiteDatabase.CursorFactory](/reference/android/database/sqlite/SQLiteDatabase.CursorFactory)` factory, `[String[]](/reference/java/lang/String)` bindArgs) ` Executes the query returning a Cursor over the result set. |\n| ` abstract void` | ` `[setBindArguments](/reference/android/database/sqlite/SQLiteCursorDriver#setBindArguments(java.lang.String[]))`(`[String[]](/reference/java/lang/String)` bindArgs) ` Set new bind arguments. |\n\nPublic methods\n--------------\n\n### cursorClosed\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void cursorClosed ()\n```\n\nCalled by a SQLiteCursor when it it closed to destroy this object as well.\n\n\u003cbr /\u003e\n\n### cursorDeactivated\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void cursorDeactivated ()\n```\n\nCalled by a SQLiteCursor when it is released.\n\n\u003cbr /\u003e\n\n### cursorRequeried\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void cursorRequeried (Cursor cursor)\n```\n\nCalled by a SQLiteCursor when it is requeried.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-----------------|\n| `cursor` | `Cursor` \u003cbr /\u003e |\n\n### query\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract Cursor query (SQLiteDatabase.CursorFactory factory, \n String[] bindArgs)\n```\n\nExecutes the query returning a Cursor over the result set.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `factory` | `SQLiteDatabase.CursorFactory`: The CursorFactory to use when creating the Cursors, or null if standard SQLiteCursors should be returned. \u003cbr /\u003e |\n| `bindArgs` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------------|-------------------------------------|\n| [Cursor](/reference/android/database/Cursor) | a Cursor over the result set \u003cbr /\u003e |\n\n### setBindArguments\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void setBindArguments (String[] bindArgs)\n```\n\nSet new bind arguments. These will take effect in cursorRequeried().\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|------------------------------------|\n| `bindArgs` | `String`: the new arguments \u003cbr /\u003e |"]]