RLMObjectSchema Class Reference
| Inherits from | NSObject |
| Conforms to | NSCopying |
| Declared in | RLMObjectSchema.h RLMObjectSchema.mm |
Overview
This class represents Realm model object schemas persisted to Realm in an RLMSchema.
When using Realm, RLMObjectSchema objects allow performing migrations and introspecting the database’s schema.
Object schemas map to tables in the core database.
Properties
className
The name of the class this schema describes.
@property (nonatomic, readonly) NSString *classNameDeclared In
RLMObjectSchema.hprimaryKeyProperty
The property which is the primary key for this object (if any).
@property (nonatomic, readonly) RLMProperty *primaryKeyPropertyDeclared In
RLMObjectSchema.hproperties
Array of persisted RLMProperty objects for an object.
@property (nonatomic, readonly, copy) NSArray *propertiesSee Also
Declared In
RLMObjectSchema.hInstance Methods
objectForKeyedSubscript:
Retrieve an RLMProperty object by name.
- (RLMProperty *)objectForKeyedSubscript:(id<NSCopying>)propertyNameParameters
- propertyName
The property’s name.
Return Value
RLMProperty object or nil if there is no property with the given name.
Declared In
RLMObjectSchema.h