Sets the journal mode of the persistent storage.
More...
|
final int | ordinal () |
| The integral value of this enumerated constant. More...
|
|
Object | copy_from (Object src) |
|
final String | name () |
| The name of this enum constant, as declared in the enum declaration. More...
|
|
final String | toString () |
| The string value of this enum constant. More...
|
|
Object | copy_from (Object src) |
| Copy value of a data type from source. More...
|
|
| Enum (String name, int ordinal) |
| The constructor. More...
|
|
final Object | clone () throws CloneNotSupportedException |
|
Sets the journal mode of the persistent storage.
The rollback journal is used in SQLite to store the state of the persistent storage before a transaction is committed.
- QoS:
- com.rti.dds.infrastructure.DurabilityQosPolicy
◆ TRUNCATE_PERSISTENT_JOURNAL
Initial value:=
new PersistentJournalKind("TRUNCATE_PERSISTENT_JOURNAL", 1)
Commits transactions by truncating the rollback journal to zero-length instead of deleting it.
◆ PERSIST_PERSISTENT_JOURNAL
Initial value:=
new PersistentJournalKind("PERSIST_PERSISTENT_JOURNAL", 2)
Prevents the rollback journal from being deleted at the end of each transaction. Instead, the header of the journal is overwritten with zeros.
◆ MEMORY_PERSISTENT_JOURNAL
Initial value:=
new PersistentJournalKind("MEMORY_PERSISTENT_JOURNAL", 3)
Stores the rollback journal in volatile RAM. This saves disk I/O.
◆ WAL_PERSISTENT_JOURNAL
Initial value:=
new PersistentJournalKind("WAL_PERSISTENT_JOURNAL", 4)
Uses a write-ahead log instead of a rollback journal to implement transactions.
◆ OFF_PERSISTENT_JOURNAL
Initial value:=
new PersistentJournalKind("OFF_PERSISTENT_JOURNAL", 5)
Completely disables the rollback journal. If the application crashes in the middle of a transaction when the OFF journaling mode is set, the persistent storage will very likely be corrupted.