Class DynamicRealmObject
On this page
- io.realm
- Constructors
- Method Summary
- Inherited Methods
- Constructor Detail
- Method Detail
- equals
- get
- getBlob
- getBoolean
- getByte
- getDate
- getDecimal128
- getDictionary
- getDouble
- getDynamicRealm
- getFieldNames
- getFieldType
- getFloat
- getInt
- getList
- getLong
- getObject
- getObjectId
- getRealmAny
- getRealmSet
- getShort
- getString
- getType
- getUUID
- hasField
- hashCode
- isNull
- linkingObjects
- realm$injectObjectContext
- realmGet$proxyState
- set
- setBlob
- setBoolean
- setByte
- setDate
- setDecimal128
- setDictionary
- setDouble
- setFloat
- setInt
- setList
- setLong
- setNull
- setObject
- setObjectId
- setRealmAny
- setRealmSet
- setShort
- setString
- setUUID
- toString
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.
Constructors
Constructor and Description |
---|
Creates a dynamic Realm object based on an existing object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
public boolean | |
public E | |
public byte | |
public boolean | Returns the |
public byte | |
public Date | |
public Decimal128 | Returns the |
public RealmDictionary | Returns the RealmDictionary containing only primitive values. |
public 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 | Returns the RealmList of DynamicRealmObject s being linked from the given field. |
public long | |
public DynamicRealmObject | |
public ObjectId | Returns the |
public RealmAny | Returns the |
public RealmSet | Returns the RealmSet containing only primitive values. |
public RealmSet | Returns the RealmSet of DynamicRealmObject s being linked from the given field. |
public short | |
public String | |
public String | getType () Returns the type of object. |
public UUID | |
public boolean | |
public int | hashCode () Returns a hash code value for the DynamicRealmObject object. |
public boolean | |
public RealmResults | Returns RealmResults containing all |
public void | |
public ProxyState | |
public void | |
public void | |
public void | Sets the |
public void | |
public void | |
public void | Sets the |
public void | Sets the reference to a RealmDictionary on the given field. |
public void | |
public void | |
public void | |
public void | Sets the reference to a RealmList on the given field. |
public void | |
public void | |
public void | Sets a reference to another object on the given field. |
public void | Sets the |
public void | Sets the |
public void | Sets the reference to a RealmSet on the given field. |
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
,finalize
Methods 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. Parameters
|
Method Detail
equals
get
Returns the value for the given field. Parameters
Returns the field value. Throws
|
getBlob
Returns the Parameters
Returns the byte[] value. Throws
|
getBoolean
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns the boolean value. Throws
|
getByte
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns the byte value. Throws
|
getDate
Returns the Parameters
Returns the Date value. Throws
|
getDecimal128
Returns the Parameters
Returns 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. Parameters
Returns the RealmDictionary data for this field. Throws
|
Returns the RealmDictionary of DynamicRealmObject s being linked from the given field. If the dictionary contains primitive types, use getDictionary(String, Class) instead. Parameters
Returns the RealmDictionary data for this field. Throws
|
getDouble
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns the double value. Throws
|
getDynamicRealm
public DynamicRealm getDynamicRealm () |
---|
Returns DynamicRealm instance where this DynamicRealmObject belongs. You must not call DynamicRealm.close() against returned instance. Returns DynamicRealm instance where this object belongs. Throws
|
getFieldNames
public String getFieldNames () |
---|
Returns the list of field names on this object. Returns 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. Returns the underlying type used by Realm to represent this field. |
getFloat
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns the float value. Throws
|
getInt
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns 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. Parameters
Returns the RealmList data for this field. Throws
|
Returns the RealmList of DynamicRealmObject s being linked from the given field. If the list contains primitive types, use getList(String, Class) instead. Parameters
Returns the RealmList data for this field. Throws
|
getLong
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns the long value. Integer values exceeding Throws
|
getObject
Returns the object being linked to from this field. Parameters
Returns the DynamicRealmObject representation of the linked object or Throws
|
getObjectId
Returns the Parameters
Returns the ObjectId value. Throws
|
getRealmAny
Returns the Parameters
Returns the RealmAny value. Throws
|
getRealmSet
Returns the RealmSet containing only primitive values. If the set contains references to other Realm objects, use getRealmSet(String) instead. Parameters
Returns 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. Parameters
Returns the RealmSet data for this field. Throws
|
getShort
Returns the If the field is nullable, use isNull(String) to check for Parameters
Returns the short value. Integer values exceeding Throws
|
getString
Returns the Parameters
Returns the String value. Throws
|
getType
Returns the type of object. This will normally correspond to the name of a class that is extending RealmObject . Returns this objects type. |
getUUID
Returns the Parameters
Returns the UUID value. Throws
|
hasField
hashCode
public int hashCode () |
---|
Returns a hash code value for the DynamicRealmObject object. By the general contract of Object.hashCode() , any two objects for which equals returns 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. Returns a hash code value for the object. Overrides
|
isNull
Checks if the value of a given field is Parameters
Returns
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. Parameters
Returns the result. Throws
|
realm$injectObjectContext
public void realm$injectObjectContext () |
---|
realmGet$proxyState
public ProxyState realmGet$proxyState () |
---|
set
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. Parameters
Throws
|
setBoolean
Sets the Parameters
Throws
|
setByte
Sets the Parameters
Throws
|
setDate
Sets the Parameters
Throws
|
setDecimal128
Sets the Parameters
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. Parameters
Throws
|
setDouble
Sets the Parameters
Throws
|
setFloat
Sets the Parameters
Throws
|
setInt
Sets the Parameters
Throws
|
setList
Sets the reference to a RealmList on the given field. 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. Parameters
Throws
|
setLong
Sets the Parameters
Throws
|
setNull
Sets the value to Parameters
Throws
|
setObject
Sets a reference to another object on the given field. Parameters
Throws
|
setObjectId
Sets the Parameters
Throws
|
setRealmAny
Sets the Parameters
Throws
|
setRealmSet
Sets the reference to a RealmSet on the given field. 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. Parameters
Throws
|
setShort
Sets the Parameters
Throws
|
setString
Sets the Parameters
Throws
|
setUUID
Sets the Parameters
Throws
|