EOAdaptorContext.Delegate
(informal interface)
Package: com.apple.yellow.eoaccess
Interface 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
public abstract void adaptorContextDidBegin(Object context)
adaptorContextDidCommit
public abstract void adaptorContextDidCommit(Object context)
adaptorContextDidRollback
public abstract void adaptorContextDidRollback(Object context)
adaptorContextShouldBegin
public abstract boolean adaptorContextShouldBegin(Object context)
adaptorContextShouldCommit
public abstract boolean adaptorContextShouldCommit(Object context)
Note that if you implement this delegate method to return false, 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
public abstract boolean adaptorContextShouldConnect(Object context)
adaptorContextShouldRollback
public abstract boolean adaptorContextShouldRollback(Object context)