SupportSQLiteOpenHelper.Configuration
public
static
class
SupportSQLiteOpenHelper.Configuration
extends Object
java.lang.Object
|
↳ |
android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration
|
The configuration to create an SQLite open helper object using SupportSQLiteOpenHelper.Factory
.
Summary
Nested classes |
class |
SupportSQLiteOpenHelper.Configuration.Builder
Builder class for SupportSQLiteOpenHelper.Configuration .
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
context
Context context
Context to use to open or create the database.
name
String name
Name of the database file, or null for an in-memory database.
Public methods
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SupportSQLiteOpenHelper.Configuration\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \nbelongs to Maven artifact android.arch.persistence:db:1.1.0-beta2 \nSummary: [Nested Classes](#nestedclasses) \\| [Fields](#lfields) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nSupportSQLiteOpenHelper.Configuration\n=====================================\n\n| The `android.arch` Architecture Components packages are no longer maintained. They have been superseded by the corresponding [androidx.\\*](/jetpack/androidx/migrate) packages. See [androidx.sqlite.db.SupportSQLiteOpenHelper.Configuration](/reference/androidx/sqlite/db/SupportSQLiteOpenHelper.Configuration) instead.\n\n\n`\npublic\nstatic\n\n\nclass\nSupportSQLiteOpenHelper.Configuration\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-------------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe configuration to create an SQLite open helper object using [SupportSQLiteOpenHelper.Factory](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Factory).\n\nSummary\n-------\n\n| ### Nested classes ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` class` | [SupportSQLiteOpenHelper.Configuration.Builder](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder) Builder class for [SupportSQLiteOpenHelper.Configuration](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration). |\n\n| ### Fields ||\n|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` public final `[SupportSQLiteOpenHelper.Callback](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Callback) | [callback](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#callback) The callback class to handle creation, upgrade and downgrade. |\n| ` public final `[Context](https://developer.android.com/reference/android/content/Context.html) | [context](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#context) Context to use to open or create the database. |\n| ` public final String` | [name](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#name) Name of the database file, or null for an in-memory database. |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[SupportSQLiteOpenHelper.Configuration.Builder](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder) | ` `[builder](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#builder(android.content.Context))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context) ` Creates a new Configuration.Builder to create an instance of Configuration. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nFields\n------\n\n### callback\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nSupportSQLiteOpenHelper.Callback callback\n```\n\nThe callback class to handle creation, upgrade and downgrade.\n\n\u003cbr /\u003e\n\n### context\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nContext context\n```\n\nContext to use to open or create the database.\n\n\u003cbr /\u003e\n\n### name\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nString name\n```\n\nName of the database file, or null for an in-memory database.\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### builder\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nSupportSQLiteOpenHelper.Configuration.Builder builder (Context context)\n```\n\nCreates a new Configuration.Builder to create an instance of Configuration.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------------------------------------------|\n| `context` | `Context`: to use to open or create the database. \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [SupportSQLiteOpenHelper.Configuration.Builder](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder) | \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [SupportSQLiteDatabase](/reference/android/arch/persistence/db/SupportSQLiteDatabase)\n - [SupportSQLiteOpenHelper](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper)\n - [SupportSQLiteOpenHelper.Factory](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Factory)\n - [SupportSQLiteProgram](/reference/android/arch/persistence/db/SupportSQLiteProgram)\n - [SupportSQLiteQuery](/reference/android/arch/persistence/db/SupportSQLiteQuery)\n - [SupportSQLiteStatement](/reference/android/arch/persistence/db/SupportSQLiteStatement)\n-\n\n Classes\n -------\n\n - [SimpleSQLiteQuery](/reference/android/arch/persistence/db/SimpleSQLiteQuery)\n - [SupportSQLiteOpenHelper.Callback](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Callback)\n - [SupportSQLiteOpenHelper.Configuration](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration)\n - [SupportSQLiteOpenHelper.Configuration.Builder](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder)\n - [SupportSQLiteQueryBuilder](/reference/android/arch/persistence/db/SupportSQLiteQueryBuilder)"]]