io.realm
Class that wraps a normal RealmObject in order to allow dynamic access instead of a typed interface. Using a DynamicRealmObject is slower than using the regular RealmObject class.
Constructores
Constructor and Description |
|---|
Creates a dynamic Realm object based on an existing object. |
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public booleano | |
public E | |
public byte | |
public booleano | Returns the |
public byte | |
public Date | |
public Decimal128 | Returns the |
público RealmDictionary | Returns the RealmDictionary containing only primitive values. |
público RealmDictionary | Returns the RealmDictionary of DynamicRealmObject s being linked from the given field. |
public double | |
public DynamicRealm | Returns DynamicRealm instance where this DynamicRealmObject belongs. |
public String | Returns the list of field names on this object. |
public RealmFieldType | Returns the type used by the underlying storage engine to represent this field. |
public float | |
public int | |
public RealmList | Returns the RealmList containing only primitive values. |
public RealmList | Devuelve la RealmList de DynamicRealmObject vinculados desde el campo proporcionado. |
public long | |
public DynamicRealmObject | |
public ObjectId | Returns the |
público RealmAny | Returns the |
public RealmSet | Devuelve el RealmSet que contiene únicamente valores primitivos. |
public RealmSet | Returns the RealmSet of DynamicRealmObject s being linked from the given field. |
público short | |
public String | |
public String | getType () Returns the type of object. |
public UUID | |
public booleano | |
public int | hashCode () Returns a hash code value for the DynamicRealmObject object. |
public booleano | |
public RealmResults | Returns RealmResults containing all |
public void | |
public ProxyState | |
public void | |
public void | |
public void | Establece el valor |
public void | |
public void | |
public void | Establece el valor |
public void | Sets the reference to a RealmDictionary on the given field. |
public void | |
public void | |
public void | |
public void | Establece la referencia a una RealmList en el campo dado. |
public void | |
public void | |
public void | Establece una referencia a otro objeto en el campo dado. |
public void | Establece el valor |
public void | Establece el valor |
public void | Establece la referencia a un RealmSet en el campo dado. |
public void | |
public void | |
public void | |
public String | toString () |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalizeMethods inherited from class io.realm.RealmObject :
deleteFromRealm,deleteFromRealm,isValid,isValid,isFrozen,freeze,isFrozen,freeze,isLoaded,isLoaded,isManaged,isManaged,getRealm,getRealm,load,load,addChangeListener,addChangeListener,addChangeListener,addChangeListener,removeChangeListener,removeChangeListener,removeChangeListener,removeChangeListener,removeAllChangeListeners,removeAllChangeListeners,asFlowable,asChangesetObservable,asFlowable,asChangesetObservable
Constructor Detail
Creates a dynamic Realm object based on an existing object. Parámetros
|
Detalle del método
equals
Obtener
Returns the value for the given field. Parámetros
Devuelve the field value. Throws
|
getBlob
Returns the Parámetros
Devuelve the byte[] value. Throws
|
getBoolean
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the boolean value. Throws
|
getByte
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the byte value. Throws
|
getDate
Returns the Parámetros
Devuelve the Date value. Throws
|
getDecimal128
Returns the Parámetros
Devuelve the Decimal128 value. Throws
|
getDictionary
Returns the RealmDictionary containing only primitive values. If the dictionary contains references to other Realm objects, use getDictionary(String) instead. Parámetros
Devuelve the RealmDictionary data for this field. Throws
|
Returns the RealmDictionary of DynamicRealmObject s being linked from the given field. Si el diccionario contiene tipos primitivos, usa en su lugar getDictionary(String, clase). Parámetros
Devuelve the RealmDictionary data for this field. Throws
|
getDouble
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the double value. Throws
|
getDynamicRealm
public DynamicRealm getDynamicRealm () |
|---|
Returns DynamicRealm instance where this DynamicRealmObject belongs. You must not call DynamicRealm.close() against returned instance. Devuelve DynamicRealm instance where this object belongs. Throws
|
getFieldNames
public String getFieldNames () |
|---|
Returns the list of field names on this object. Devuelve list of field names on this objects or the empty list if the object doesn't have any fields. |
getFieldType
Returns the type used by the underlying storage engine to represent this field. Devuelve tipo subyacente que utiliza Realm para representar este campo. |
getFloat
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the float value. Throws
|
getInt
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the int value. Integer values exceeding Throws
|
getList
Returns the RealmList containing only primitive values. If the list contains references to other Realm objects, use getList(String) instead. Parámetros
Devuelve the RealmList data for this field. Throws
|
Devuelve la RealmList de DynamicRealmObject vinculados desde el campo proporcionado. If the list contains primitive types, use getList(String, Class) instead. Parámetros
Devuelve the RealmList data for this field. Throws
|
getLong
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the long value. Integer values exceeding Throws
|
getObject
Returns the object being linked to from this field. Parámetros
Devuelve la representación DynamicRealmObject del objeto vinculado o Throws
|
getObjectId
Returns the Parámetros
Devuelve el valor ObjectId. Throws
|
getRealmAny
Returns the Parámetros
Devuelve the RealmAny value. Throws
|
getRealmSet
Devuelve el RealmSet que contiene únicamente valores primitivos. If the set contains references to other Realm objects, use getRealmSet(String) instead. Parámetros
Devuelve the RealmSet data for this field. Throws
|
Returns the RealmSet of DynamicRealmObject s being linked from the given field. If the set contains primitive types, use getRealmSet(String, Class) instead. Parámetros
Devuelve the RealmSet data for this field. Throws
|
getShort
Returns the If the field is nullable, use isNull(String) to check for Parámetros
Devuelve the short value. Integer values exceeding Throws
|
getString
Returns the Parámetros
Devuelve the String value. Throws
|
getType
Returns the type of object. This will normally correspond to the name of a class that is extending RealmObject . Devuelve this objects type. |
getUUID
Returns the Parámetros
Devuelve the UUID value. Throws
|
hasField
hashCode
public int hashCode () |
|---|
Returns a hash code value for the DynamicRealmObject object. Según el contrato general de Object.hashCode() , cualquier dos objetos para los que equals devuelve Note that a RealmObject is a live object, and it might be updated by changes from other threads. This means that a hash code value of the object is not stable, and the value should be neither used as a key in HashMap nor saved in HashSet. Devuelve un valor de código hash para el objeto. Anulaciones
Tip |
isNull
Checks if the value of a given field is Parámetros
Devuelve
Throws
|
linkingObjects
Returns RealmResults containing all An entry is added for each reference, e.g. if the same reference is in a list multiple times, the src object will show up here multiple times. Parámetros
Devuelve el resultado. Throws
|
realm$injectObjectContext
public void realm$injectObjectContext () |
|---|
realmGet$proxyState
public ProxyState realmGet$proxyState () |
|---|
Configura
Sets the value for the given field. This method will automatically try to convert numbers and booleans that are given as Using the typed setters will be faster than using this method. Throws
|
setBlob
Sets the binary value of the given field. Parámetros
Throws
|
setBoolean
Establece el valor Parámetros
Throws
|
setByte
Establece el valor Parámetros
Throws
|
setDate
Establece el valor Parámetros
Throws
|
setDecimal128
Establece el valor Parámetros
Throws
|
setDictionary
Sets the reference to a RealmDictionary on the given field. This will copy all the elements in the dictionary into Realm, but any further changes to the dictionary will not be reflected in the Realm. Use getDictionary(String) in order to get a reference to the managed dictionary. Parámetros
Throws
|
setDouble
Establece el valor Parámetros
Throws
|
setFloat
Establece el valor Parámetros
Throws
|
setInt
Establece el valor Parámetros
Throws
|
setList
Establece la referencia a una RealmList en el campo dado. This will copy all the elements in the list into Realm, but any further changes to the list will not be reflected in the Realm. Use getList(String) in order to get a reference to the managed list. Parámetros
Throws
|
setLong
Establece el valor Parámetros
Throws
|
setNull
Sets the value to Parámetros
Throws
|
setObject
Establece una referencia a otro objeto en el campo dado. Parámetros
Throws
|
setObjectId
Establece el valor Parámetros
Throws
|
setRealmAny
Establece el valor Parámetros
Throws
|
setRealmSet
Establece la referencia a un RealmSet en el campo dado. This will copy all the elements in the set into Realm, but any further changes to the set will not be reflected in the Realm. Use getRealmSet(String) in order to get a reference to the managed set. Parámetros
Throws
|
setShort
Establece el valor Parámetros
Throws
|
setString
Establece el valor Parámetros
Throws
|
setUUID
Establece el valor Parámetros
Throws
|