RBORMObserver Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | RBORMCenter.h |
– databaseConnection:willAttachWithIdentifier:
Called when a database connection is about to be attached.
- (void)databaseConnection:(nonnull RBSQLiteConnection *)databaseConnection willAttachWithIdentifier:(nonnull NSString *)identifier
Parameters
databaseConnection |
The |
---|---|
identifier |
The corresponding database identifier. |
Discussion
Called when a database connection is about to be attached.
Declared In
RBORMCenter.h
– databaseConnection:didAttachWithIdentifier:operationWasSuccessful:
Called when a database connection attachment request completes.
- (void)databaseConnection:(nonnull RBSQLiteConnection *)databaseConnection didAttachWithIdentifier:(nonnull NSString *)identifier operationWasSuccessful:(BOOL)operationWasSuccessful
Parameters
databaseConnection |
The |
---|---|
identifier |
The corresponding database identifier. |
operationWasSuccessful |
`Yes' is successful. |
Discussion
Called when a database connection attachment request completes.
Declared In
RBORMCenter.h
– databaseConnection:willDetachWithIdentifier:
Called when a database connection is about to be detached.
- (void)databaseConnection:(nonnull RBSQLiteConnection *)databaseConnection willDetachWithIdentifier:(nonnull NSString *)identifier
Parameters
databaseConnection |
The |
---|---|
identifier |
The corresponding database identifier. |
Discussion
Called when a database connection is about to be detached.
Declared In
RBORMCenter.h
– databaseConnection:didDetachWithIdentifier:
Called when a database connection detachment request completes.
- (void)databaseConnection:(nonnull RBSQLiteConnection *)databaseConnection didDetachWithIdentifier:(nonnull NSString *)identifier
Parameters
databaseConnection |
The |
---|---|
identifier |
The corresponding database identifier. |
Discussion
Called when a database connection detachment request completes.
Declared In
RBORMCenter.h
– object:willInsertWithIdentifier:
Called when a RBORMObject
object will be inserted.
- (void)object:(nonnull RBORMObject *)object willInsertWithIdentifier:(nonnull NSString *)identifier
Parameters
object |
The |
---|---|
identifier |
The database identifier that references the underlying database connection. |
Discussion
Called when a RBORMObject
object will be inserted.
Declared In
RBORMCenter.h
– object:willUpdateWithIdentifier:
Called when a RBORMObject
object will be updated.
- (void)object:(nonnull RBORMObject *)object willUpdateWithIdentifier:(nonnull NSString *)identifier
Parameters
object |
The |
---|---|
identifier |
The database identifier that references the underlying database connection. |
Discussion
Called when a RBORMObject
object will be updated.
Declared In
RBORMCenter.h
– object:didInsertWithIdentifier:operationWasSuccessful:result:
Called when a RBORMObject
object insert request completes.
- (void)object:(nonnull RBORMObject *)object didInsertWithIdentifier:(nonnull NSString *)identifier operationWasSuccessful:(BOOL)operationWasSuccessful result:(nullable RBSQLiteResult *)result
Parameters
object |
The |
---|---|
identifier |
The database identifier that references the underlying database connection. |
operationWasSuccessful |
|
result |
The |
Discussion
Called when a RBORMObject
object insert request completes.
Declared In
RBORMCenter.h
– object:didUpdateWithIdentifier:operationWasSuccessful:result:
Called when a RBORMObject
object update request completes.
- (void)object:(nonnull RBORMObject *)object didUpdateWithIdentifier:(nonnull NSString *)identifier operationWasSuccessful:(BOOL)operationWasSuccessful result:(nullable RBSQLiteResult *)result
Parameters
object |
The |
---|---|
identifier |
The database identifier that references the underlying database connection. |
operationWasSuccessful |
|
result |
The |
Discussion
Called when a RBORMObject
object update request completes.
Declared In
RBORMCenter.h
– object:willDeleteWithIdentifier:
Called when a RBORMObject
object will be deleted.
- (void)object:(nonnull RBORMObject *)object willDeleteWithIdentifier:(nonnull NSString *)identifier
Parameters
object |
The |
---|---|
identifier |
The database identifier that references the underlying database connection. |
Discussion
Called when a RBORMObject
object will be deleted.
Declared In
RBORMCenter.h
– object:didDeleteWithIdentifier:operationWasSuccessful:result:
Called when a RBORMObject
object delete request completes.
- (void)object:(nonnull RBORMObject *)object didDeleteWithIdentifier:(nonnull NSString *)identifier operationWasSuccessful:(BOOL)operationWasSuccessful result:(nullable RBSQLiteResult *)result
Parameters
object |
The |
---|---|
identifier |
The database identifier that references the underlying database connection. |
operationWasSuccessful |
|
result |
The |
Discussion
Called when a RBORMObject
object delete request completes.
Declared In
RBORMCenter.h