io.realm
Clase para interactuar con el esquema de Realm. Esto permite inspeccionar, añadir, eliminar y modificar las clases en Realm.Realm.getSchema() <io_realm_Realm_getSchema__> Devuelve un inmutable RealmSchema que solo se puede usar para inspección. Use DynamicRealm.getSchema() para obtener un esquema mutable.
All changes must happen inside a write transaction for the particular Realm.
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public booleano | |
public abstract RealmObjectSchema | |
public void | Create the underlying keypath mapping. |
public abstract RealmObjectSchema | String className, String primaryKeyFieldName, java.lang.Class<?> fieldType, io.realm.FieldAttribute[] attributes ) Agrega una nueva clase al Reino con un campo de clave principal definido. |
public abstract RealmObjectSchema | Returns the RealmObjectSchema for a given class. |
public abstract Set | getAll () Returns the RealmObjectSchema s for all RealmObject classes that can be saved in this Realm. |
protected final ColumnInfo | |
public abstract void | |
public abstract RealmObjectSchema |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Detalle del método
contiene
Cree
Agrega una nueva clase al Realm. Parámetros
Devuelve un objeto de esquema Realm para esa clase. Throws
|
createKeyPathMapping
public void createKeyPathMapping () |
|---|
Create the underlying keypath mapping. Should only be called by typed Realms. |
createWithPrimaryKeyField
public abstract RealmObjectSchema createWithPrimaryKeyField ( String className, String primaryKeyFieldName, java.lang.Class<?> fieldType, io.realm.FieldAttribute[] attributes ) |
|---|
Agrega una nueva clase al Reino con un campo de clave principal definido. Parámetros
Devuelve un objeto de esquema Realm para esa clase. Throws
|
Obtener
Returns the RealmObjectSchema for a given class. If this RealmSchema is immutable, an immutable RealmObjectSchema will be returned. Otherwise, it returns a mutable RealmObjectSchema . Parámetros
Devuelve esquema objeto para esa clase o |
getAll
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. Devuelve el conjunto de todas las clases en este Reino o ninguna clase RealmObject se puede guardar en el Reino. |
obtenerInformaciónDeColumna
Remover
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. Parámetros
Throws
|
renombrar
Renombra una clase ya existente en el Realm. Parámetros
Devuelve un objeto de esquema para la clase renombrada. Throws
|