Annotation Type RealmClass
io.realm.annotations
Implemented interfaces:
Interface used to mark a class that can be persisted by Realm.
Optional Element Summary
Modifier and Type | Optional Element and Description |
---|---|
public boolean | Define objects of this type as "Embedded". |
public RealmNamingPolicy | The naming policy applied to all fields in this class. |
public String | Manually set the internal name used by Realm for this class. |
public String | Manually set the internal name used by Realm for this class. |
Element Detail
embedded | ||
---|---|---|
Define objects of this type as "Embedded". Embedded objects have a slightly different behavior than normal objects:
Default:
|
fieldNamingPolicy |
---|
The naming policy applied to all fields in this class. The default policy is RealmNamingPolicy.NO_POLICY . It is possible to override the naming policy for each field by using the RealmField annotation. Default:
|
name |
---|
Manually set the internal name used by Realm for this class. If this class is part of any modules, this will also override any name policy set using RealmModule.classNamingPolicy() . Default:
|
value |
---|
Manually set the internal name used by Realm for this class. If this class is part of any modules, this will also override any name policy set using RealmModule.classNamingPolicy() . Default:
|