public class RealmConfiguration
extends java.lang.Object
RealmConfiguration.Builder and calling
its RealmConfiguration.Builder.build() method.
A commonly used RealmConfiguration can easily be accessed by first saving it as
Realm.setDefaultConfiguration(RealmConfiguration) and then using Realm.getDefaultInstance().
A minimal configuration can be created using:
RealmConfiguration config = new RealmConfiguration.Builder(getContext()).build())
This will create a RealmConfiguration with the following properties
- Realm file is called "default.realm"
- It is saved in Context.getFilesDir()
- It has its schema version set to 0.| Modifier and Type | Class and Description |
|---|---|
static class |
RealmConfiguration.Builder
RealmConfiguration.Builder used to construct instances of a RealmConfiguration in a fluent manner.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getEncryptionKey() |
RealmMigration |
getMigration() |
java.lang.String |
getPath() |
java.lang.String |
getRealmFileName() |
java.io.File |
getRealmFolder() |
RealmProxyMediator |
getSchemaMediator() |
int |
getSchemaVersion() |
int |
hashCode() |
boolean |
shouldDeleteRealmIfMigrationNeeded() |
public static final int KEY_LENGTH
public java.io.File getRealmFolder()
public java.lang.String getRealmFileName()
public byte[] getEncryptionKey()
public int getSchemaVersion()
public RealmMigration getMigration()
public boolean shouldDeleteRealmIfMigrationNeeded()
public RealmProxyMediator getSchemaMediator()
public java.lang.String getPath()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object