public class

SupportSQLiteOpenHelper.Configuration

extends java.lang.Object

 java.lang.Object

↳androidx.sqlite.db.SupportSQLiteOpenHelper.Configuration

Overview

The configuration to create an SQLite open helper object using SupportSQLiteOpenHelper.Factory.

Summary

Fields
public final booleanallowDataLossOnRecovery

If true the database will be delete and its data loss in the case that it cannot be opened.

public final SupportSQLiteOpenHelper.Callbackcallback

The callback class to handle creation, upgrade and downgrade.

public final Contextcontext

Context to use to open or create the database.

public final java.lang.Stringname

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

public final booleanuseNoBackupDirectory

If true the database will be stored in the no-backup directory.

Methods
public static SupportSQLiteOpenHelper.Configuration.Builderbuilder(Context context)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final Context context

Context to use to open or create the database.

public final java.lang.String name

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

public final SupportSQLiteOpenHelper.Callback callback

The callback class to handle creation, upgrade and downgrade.

public final boolean useNoBackupDirectory

If true the database will be stored in the no-backup directory.

public final boolean allowDataLossOnRecovery

If true the database will be delete and its data loss in the case that it cannot be opened.

Methods

public static SupportSQLiteOpenHelper.Configuration.Builder builder(Context context)

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

Parameters:

context: to use to open or create the database.