|
WebObjects 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
EOAdaptorContext invokes its delegate any time a transaction is begun, committed, or rolled back. The delegate can use these methods to preempt these operations, modify their results, or simply track activity.
| Method Summary | |
void |
adaptorContextDidBegin(Object object)
Invoked from beginTransaction or
transactionDidBegin to tell the delegate that a
transaction has begun. |
void |
adaptorContextDidCommit(Object object)
Invoked from commitTransaction or
transactionDidCommit to tell the delegate that a
transaction has been committed. |
void |
adaptorContextDidRollback(Object object)
Invoked from rollbackTransaction or
transactionDidRollback to tell the delegate that a
transaction has been rolled back. |
boolean |
adaptorContextShouldBegin(Object object)
Invoked from beginTransaction to ask the delegate
whether the adaptor context object should begin a
transaction. |
boolean |
adaptorContextShouldCommit(Object object)
Invoked from commitTransaction to ask the delegate
whether or not to commit a transaction. |
boolean |
adaptorContextShouldConnect(Object object)
Invoked before the adaptor attempts to connect. |
boolean |
adaptorContextShouldRollback(Object object)
Invoked from rollbackTransaction to ask the
delegate whether or not to roll back a transaction. |
| Method Detail |
public void adaptorContextDidBegin(Object object)
beginTransaction or
transactionDidBegin to tell the delegate that a
transaction has begun. The delegate may take whatever
action it needs based on this information.object - An adaptor context object.EOAdaptorContext.beginTransaction(),
EOAdaptorContext.transactionDidBegin()public void adaptorContextDidCommit(Object object)
commitTransaction or
transactionDidCommit to tell the delegate that a
transaction has been committed. The delegate may take
whatever action it needs based on this information.object - An adaptor context object.EOAdaptorContext.commitTransaction(),
EOAdaptorContext.transactionDidCommit()public void adaptorContextDidRollback(Object object)
rollbackTransaction or
transactionDidRollback to tell the delegate that a
transaction has been rolled back. The delegate may take whatever
action it needs based on this information.object - An adaptor context object.EOAdaptorContext.rollbackTransaction(),
EOAdaptorContext.transactionDidRollback()public boolean adaptorContextShouldBegin(Object object)
beginTransaction to ask the delegate
whether the adaptor context object should begin a
transaction. The delegate should return true to
allow the adaptor context to begin a transaction,
false to prevent the transaction. If the delegate
returns false, it is the delegate's responsibility
to handle the transaction state. It might start its own transaction
or it might return false from adaptorContextShouldCommit
in order to control the transaction in a private way.object - An adaptor context object.true to allow the
adaptor context to begin a transaction.EOAdaptorContext.beginTransaction(),
adaptorContextShouldCommit(java.lang.Object)public boolean adaptorContextShouldCommit(Object object)
commitTransaction to ask the delegate
whether or not to commit a transaction. If this method returns
false, the adaptor context does not commit the
transaction; the delegate must perform the database COMMIT
itself.object - An adaptor context object.true to allow the
adaptor context to commit.EOAdaptorContext.commitTransaction(),
adaptorContextShouldBegin(java.lang.Object)public boolean adaptorContextShouldConnect(Object object)
false if it wants to override the
connect operation, true if it wants the adaptor to
attempt to connect in the usual way. Should throw a runtime
exception if it fails to connect.object - An adaptor context object.true to permit the
adaptor to attempt to connect.public boolean adaptorContextShouldRollback(Object object)
rollbackTransaction to ask the
delegate whether or not to roll back a transaction. Should
return true to allow the adaptor context
object to roll back the transaction, false to
prevent the rollback.object - An adaptor context object.true to allow the
adaptor context to roll back the transaction.EOAdaptorContext.rollbackTransaction()
|
Last updated Thu Jan 10 18:10:21 PST 2002. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||