Stay organized with collections
Save and categorize content based on your preferences.
SQLiteTransactionListener
public
interface
SQLiteTransactionListener
android.database.sqlite.SQLiteTransactionListener
|
A listener for transaction events.
Summary
Public methods |
abstract
void
|
onBegin()
Called immediately after the transaction begins.
|
abstract
void
|
onCommit()
Called immediately before commiting the transaction.
|
abstract
void
|
onRollback()
Called if the transaction is about to be rolled back.
|
Public methods
onBegin
public abstract void onBegin ()
Called immediately after the transaction begins.
onCommit
public abstract void onCommit ()
Called immediately before commiting the transaction.
onRollback
public abstract void onRollback ()
Called if the transaction is about to be rolled back.
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,["# SQLiteTransactionListener\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSQLiteTransactionListener\n=========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/database/sqlite/SQLiteTransactionListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nSQLiteTransactionListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------|\n| android.database.sqlite.SQLiteTransactionListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA listener for transaction events.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onBegin](/reference/android/database/sqlite/SQLiteTransactionListener#onBegin())`() ` Called immediately after the transaction begins. |\n| ` abstract void` | ` `[onCommit](/reference/android/database/sqlite/SQLiteTransactionListener#onCommit())`() ` Called immediately before commiting the transaction. |\n| ` abstract void` | ` `[onRollback](/reference/android/database/sqlite/SQLiteTransactionListener#onRollback())`() ` Called if the transaction is about to be rolled back. |\n\nPublic methods\n--------------\n\n### onBegin\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onBegin ()\n```\n\nCalled immediately after the transaction begins.\n\n\u003cbr /\u003e\n\n### onCommit\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onCommit ()\n```\n\nCalled immediately before commiting the transaction.\n\n\u003cbr /\u003e\n\n### onRollback\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRollback ()\n```\n\nCalled if the transaction is about to be rolled back.\n\n\u003cbr /\u003e"]]