added in version 1.1.0
belongs to Maven artifact android.arch.persistence.room:runtime:1.1.0-beta2
belongs to Maven artifact android.arch.persistence.room:runtime:1.1.0-beta2
RoomDatabase.JournalMode
public
static
final
enum
RoomDatabase.JournalMode
extends Enum<RoomDatabase.JournalMode>
java.lang.Object | ||
↳ | java.lang.Enum<android.arch.persistence.room.RoomDatabase.JournalMode> | |
↳ | android.arch.persistence.room.RoomDatabase.JournalMode |
Journal modes for SQLite database.
See also:
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
added in version 1.1.0
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.
WRITE_AHEAD_LOGGING
added in version 1.1.0
RoomDatabase.JournalMode WRITE_AHEAD_LOGGING
Write-Ahead Logging mode.
Public methods
valueOf
added in version 1.1.0
RoomDatabase.JournalMode valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
RoomDatabase.JournalMode |
Annotations
Classes
Enums
Exceptions
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 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]