RLMProperty
@interface RLMProperty : NSObject
This class models properties persisted to Realm in an RLMObjectSchema.
When using Realm, RLMProperty objects allow performing migrations and introspecting the database’s schema.
These properties map to columns in the core database.
-
Property name.
Declaration
Objective‑C
@property (readonly, nonatomic) NSString *_Nonnull name;
Swift
var name: String { get }
-
Property type.
See
RLMPropertyTypeDeclaration
Objective‑C
@property (readonly, nonatomic) RLMPropertyType type;
Swift
var type: LAPropertyType { get }
-
Indicates if this property is indexed.
See
RLMObjectDeclaration
Objective‑C
@property (readonly, nonatomic) BOOL indexed;
Swift
var indexed: Bool { get }
-
Object class name - specify object types for RLMObject and RLMArray properties.
Declaration
Objective‑C
@property (readonly, copy, nonatomic, nullable) NSString *objectClassName;
Swift
var objectClassName: String? { get }
-
Property name of the origin of a link. Specified for linking objects properties.
Declaration
Objective‑C
@property (readonly, copy, nonatomic, nullable) NSString *linkOriginPropertyName;
Swift
var linkOriginPropertyName: String? { get }
-
Whether this property is optional.
Declaration
Objective‑C
@property (readonly, nonatomic) BOOL optional;
Swift
var optional: Bool { get }
-
Returns YES if property objects are equal.
Declaration
Objective‑C
- (BOOL)isEqualToProperty:(nonnull RLMProperty *)property;
Swift
func isEqualToProperty(property: RLMProperty) -> Bool