public enum

RoomDatabase.JournalMode

extends java.lang.Enum<RoomDatabase.JournalMode>

 java.lang.Object

↳java.lang.Enum<RoomDatabase.JournalMode>

↳androidx.room.RoomDatabase.JournalMode

Overview

Journal modes for SQLite database.

Summary

Enum Constants
AUTOMATICLet Room choose the journal mode.
TRUNCATETruncate journal mode.
WRITE_AHEAD_LOGGINGWrite-Ahead Logging mode.
Methods
public static RoomDatabase.JournalModevalueOf(java.lang.String name)

public static RoomDatabase.JournalModevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

AUTOMATIC

Let Room choose the journal mode. This is the default value when no explicit value is specified.

The actual value will be RoomDatabase.JournalMode.TRUNCATE when the device runs API Level lower than 16 or it is a low-RAM device. Otherwise, RoomDatabase.JournalMode.WRITE_AHEAD_LOGGING will be used.

TRUNCATE

Truncate journal mode.

WRITE_AHEAD_LOGGING

Write-Ahead Logging mode.

Methods

public static RoomDatabase.JournalMode values()

public static RoomDatabase.JournalMode valueOf(java.lang.String name)