PATH |
(informal interface)
Package: com.webobjects.eoaccess
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.
public abstract void adaptorContextDidBegin(Object context)
public abstract void adaptorContextDidCommit(Object context)
public abstract void adaptorContextDidRollback(Object context)
public abstract boolean adaptorContextShouldBegin(Object context)
false
, the adaptor context does not begin a transaction. Return true
to allow the adaptor context to begin a transaction.
public abstract boolean adaptorContextShouldCommit(Object context)
false
, the adaptor context does not commit the transaction. Return true
to allow the adaptor context to commit.
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.
public abstract boolean adaptorContextShouldConnect(Object context)
false
if it wants to override the connect, true
if it wants the adaptor to attempt to connect in the usual way. The delegate should throw an exception if it fails to connect.
public abstract boolean adaptorContextShouldRollback(Object context)
false
, the adaptor context does not roll back the transaction. Return true
to allow the adaptor context to roll back.
© 2001 Apple Computer, Inc. (Last Published April 13, 2001)