RBORMObserver Protocol Reference

Conforms to NSObject
Declared in RBORMCenter.h

Overview

Provides the abilitiy to receive notifications for various RBORMCenter events.

– databaseConnection:willAttachWithIdentifier:

Called when a database connection is about to be attached.

- (void)databaseConnection:(nonnull RBSQLiteConnection *)databaseConnection willAttachWithIdentifier:(nonnull NSString *)identifier

Parameters

databaseConnection

The RBSQLiteConnection database connection that will be attached.

identifier

The corresponding database identifier.

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 RBSQLiteConnection database connection that was attempted to be attached.

identifier

The corresponding database identifier.

operationWasSuccessful

`Yes' is successful.

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 RBSQLiteConnection database connection that will be detached.

identifier

The corresponding database identifier.

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 RBSQLiteConnection database connection that was attempted to be detached.

identifier

The corresponding database identifier.

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 RBORMObject that will be inserted.

identifier

The database identifier that references the underlying database connection.

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 RBORMObject that will be updated.

identifier

The database identifier that references the underlying database connection.

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 RBORMObject that was attempted to be inserted.

identifier

The database identifier that references the underlying database connection.

operationWasSuccessful

YES if successful.

result

The RBSQLiteResult containing the return data or the error details if the operation failed.

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 RBORMObject that was attempted to be updated.

identifier

The database identifier that references the underlying database connection.

operationWasSuccessful

YES if successful.

result

The RBSQLiteResult containing the return data or the error details if the operation failed.

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 RBORMObject that will be deleted.

identifier

The database identifier that references the underlying database connection.

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 RBORMObject that was attempted to be deleted.

identifier

The database identifier that references the underlying database connection.

operationWasSuccessful

YES if successful.

result

The RBSQLiteResult containing the return data or the error details if the operation failed.

Declared In

RBORMCenter.h