On this page
Class for interacting with the Realm schema. This makes it possible to inspect, add, delete and change the classes in the Realm.:ref:
Realm.getSchema() <io_realm_Realm_getSchema__> returns an immutable
RealmSchema which can only be used for inspecting. Use DynamicRealm.getSchema() to get a mutable schema.
All changes must happen inside a write transaction for the particular Realm.
Modifier and Type
Method and Description
Create the underlying keypath mapping.
public abstract Set
protected final ColumnInfo
public abstract void
- Methods inherited from class java.lang.Object :
Create the underlying keypath mapping. Should only be called by typed Realms.
Adds a new class to the Realm with a primary key field defined.
a Realm schema object for that class.
Returns the RealmObjectSchema s for all RealmObject classes that can be saved in this Realm. If this RealmSchema is immutable, an immutable RealmObjectSchema set will be returned. Otherwise, it returns an mutable RealmObjectSchema set.
the set of all classes in this Realm or no RealmObject classes can be saved in the Realm.
Removes a class from the Realm. All data will be removed. Removing a class while other classes point to it will throw an IllegalStateException . Removes those classes or fields first.