|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--oracle.jbo.JboException | +--oracle.jbo.AfterCommitException
Indicates failure during the after-commit phase of the transaction cycle.
When the transaction is committed in BC4J, all pending changes are first posted to database, followed by a database commit. After that, the Transaction
object walks through its TransactionListener
(oracle.jbo.server.TransactionListener
) list.
For each TransactionListener
, a transaction-committed "message" is sent through a call to the afterCommit()
. (afterCommit()
is a method on the TransactionListener
interface.)
While in afterCommit()
, the TransactionListener
may find problems and throw an exception. The Transaction
object collects these objects in a list. After all TransactionListeners
are notified, Transaction
checks to see if this list is empty. If not (some TransactionListeners
threw exceptions), it creates an AfterCommitException
whose details (which may be retrieved by calling getExceptions()
) contain those exceptions thrown during this notification process.
JboException
, JboException.getExceptions()
, Transaction
, TransactionListener
, TransactionListener.afterCommit(TransactionEvent)
, Serialized FormField Summary |
Fields inherited from class oracle.jbo.JboException |
mHasPeerException |
Constructor Summary | |
AfterCommitException(java.lang.Exception[] exceptionList) Creates an instance of AfterCommitException . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AfterCommitException(java.lang.Exception[] exceptionList)
AfterCommitException
. This constructor uses EXC_AFTER_COMMIT
error message in oracle.jbo.CSMessageBundle
.exceptionList
- an Array of exception thrown by TransactionListeners
. Exceptions from this array are added as "details" of this exception. Details may be retrieved by calling getExceptions
.JboException.getExceptions()
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.