Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

RoomDatabase.JournalMode

public static final enum RoomDatabase.JournalMode
extends Enum<RoomDatabase.JournalMode>

java.lang.Object
   ↳ java.lang.Enum<androidx.room.RoomDatabase.JournalMode>
     ↳ androidx.room.RoomDatabase.JournalMode


Journal modes for SQLite database.

Summary

Enum values

RoomDatabase.JournalMode  AUTOMATIC

Let Room choose the journal mode. 

RoomDatabase.JournalMode  TRUNCATE

Truncate journal mode. 

RoomDatabase.JournalMode  WRITE_AHEAD_LOGGING

Write-Ahead Logging mode. 

Public methods

static RoomDatabase.JournalMode valueOf(String name)
static final JournalMode[] values()

Inherited methods

Enum values

AUTOMATIC

public static final RoomDatabase.JournalMode AUTOMATIC

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

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

TRUNCATE

public static final RoomDatabase.JournalMode TRUNCATE

Truncate journal mode.

WRITE_AHEAD_LOGGING

public static final RoomDatabase.JournalMode WRITE_AHEAD_LOGGING

Write-Ahead Logging mode.

Public methods

valueOf

public static RoomDatabase.JournalMode valueOf (String name)

Parameters
name String

Returns
RoomDatabase.JournalMode

values

public static final JournalMode[] values ()

Returns
JournalMode[]