EOAdaptorContext Delegate
(informal protocol)
Declared in: EOAccess/EOAdaptorContext.h
Protocol Description
EOAdaptorContext sends messages to its delegate for any transaction begin, commit, or rollback. The delegate can use these methods to preempt these operations, modify their results, or simply track activity.
Instance Methods
adaptorContextDidBegin:
- (void)adaptorContextDidBegin:context
adaptorContextDidCommit:
- (void)adaptorContextDidCommit:context
adaptorContextDidRollback:
- (void)adaptorContextDidRollback:context
adaptorContextShouldBegin:
- (BOOL)adaptorContextShouldBegin:context
adaptorContextShouldCommit:
- (BOOL)adaptorContextShouldCommit:context
Note that if you implement this delegate method to return NO, your delegate must perform the database COMMIT itself; the rest of the Enterprise Objects Framework assumes that the commit has taken place. adaptorContextShouldCommit: doesn't specify whether or not the commit should take place; it only specifies whether or not the adaptor context should do it for you.
adaptorContextShouldConnect:
- (BOOL)adaptorContextShouldConnect:context
adaptorContextShouldRollback:
- (BOOL)adaptorContextShouldRollback:context