# SupportSQLiteOpenHelper.Configuration

added in [version 1.1.0](https://developer.android.com/topic/libraries/support-library/revisions)   
belongs to Maven artifact android.arch.persistence:db:1.1.0-beta2  
Summary: [Nested Classes](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#nestedclasses) \| [Fields](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#lfields) \| [Methods](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#inhmethods)  

# SupportSQLiteOpenHelper.Configuration

| The `android.arch` Architecture Components packages are no longer maintained. They have been superseded by the corresponding [androidx.\*](https://developer.android.com/jetpack/androidx/migrate) packages. See [androidx.sqlite.db.SupportSQLiteOpenHelper.Configuration](https://developer.android.com/reference/androidx/sqlite/db/SupportSQLiteOpenHelper.Configuration) instead.


`
public
static


class
SupportSQLiteOpenHelper.Configuration
`


`

extends Object


`

`


`

|---|-------------------------------------------------------------------|
| java.lang.Object                                                     ||
| ↳ | android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration |

<br />

*** ** * ** ***

The configuration to create an SQLite open helper object using [SupportSQLiteOpenHelper.Factory](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Factory).

## Summary

|                                                                                                                                                                 ### Nested classes                                                                                                                                                                 ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [SupportSQLiteOpenHelper.Configuration.Builder](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder) Builder class for [SupportSQLiteOpenHelper.Configuration](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration). |

|                                                                                                                                                                       ### Fields                                                                                                                                                                       ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public final `[SupportSQLiteOpenHelper.Callback](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Callback) | [callback](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#callback) The callback class to handle creation, upgrade and downgrade. |
| ` public final `[Context](https://developer.android.com/reference/android/content/Context.html)                                                          | [context](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#context) Context to use to open or create the database.                  |
| ` public final String`                                                                                                                                   | [name](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration#name) Name of the database file, or null for an in-memory database.         |

|                                                                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                                                                ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[SupportSQLiteOpenHelper.Configuration.Builder](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder) | ` `[builder](https://developer.android.com/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. |

| ### 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

### callback

added in [version 1.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
SupportSQLiteOpenHelper.Callback callback
```

The callback class to handle creation, upgrade and downgrade.

<br />

### context

added in [version 1.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Context context
```

Context to use to open or create the database.

<br />

### name

added in [version 1.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String name
```

Name of the database file, or null for an in-memory database.

<br />

## Public methods

### builder

added in [version 1.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
SupportSQLiteOpenHelper.Configuration.Builder builder (Context context)
```

Creates a new Configuration.Builder to create an instance of Configuration.

<br />

|                             Parameters                              ||
|-----------|----------------------------------------------------------|
| `context` | `Context`: to use to open or create the database. <br /> |

|                                                                                  Returns                                                                                   ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [SupportSQLiteOpenHelper.Configuration.Builder](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder) | <br /> |

-

  ## Interfaces

  - [SupportSQLiteDatabase](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteDatabase)
  - [SupportSQLiteOpenHelper](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper)
  - [SupportSQLiteOpenHelper.Factory](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Factory)
  - [SupportSQLiteProgram](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteProgram)
  - [SupportSQLiteQuery](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteQuery)
  - [SupportSQLiteStatement](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteStatement)
-

  ## Classes

  - [SimpleSQLiteQuery](https://developer.android.com/reference/android/arch/persistence/db/SimpleSQLiteQuery)
  - [SupportSQLiteOpenHelper.Callback](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Callback)
  - [SupportSQLiteOpenHelper.Configuration](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration)
  - [SupportSQLiteOpenHelper.Configuration.Builder](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder)
  - [SupportSQLiteQueryBuilder](https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteQueryBuilder)