|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-03 |
||||||||
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.JboWarning
oracle.jbo.JboException
oracle.jbo.AfterPostException
public class AfterPostException
Indicates failure during the after-post phase of the transaction cycle.
When the user asks to post changes to database, the Transaction
object walks through its TransactionPostListener
(oracle.jbo.server.TransactionPostListener
) list.
A TransactionPostListener
may be "transient" or "persistent." A transient post listener is one which is added to the list until the changes are posted. After the changes are posted, it is removed from the post listener list. A persistent post listener is one which is kept on the list even after the changes are posted.
Entities (oracle.jbo.server.EntityImpl
are transient post listener and View Objects (oracle.jbo.server.ViewObjectImpl
) are persistent post listeners.
Among TransactionPostListeners
, the Transaction
object calls postChanges()
each Entity to make it post changes to database.
Once this posting phase completes, Transaction
walks through the TransactionPostListener
list again performing after-post operation on each of them.
For Entity, this operation consists mainly of removing the Entity frmo the transaction post manager, which may be the Transaction
object or the parent Entity if this Entity was a child object in a composition association.
For View Object, this operation consists mainly of closing result sets that are not used by any Row Sets.
While performing these after-post operations, error may be found and thrown by TransactionPostListeners
. The Transaction
object collects these objects in a list. After after-post processing completes for all TransactionPostListeners
, Transaction
checks to see if this list is empty. If not (some TransactionPostListeners
threw exceptions), it creates an AfterPostException
whose details (which may be retrieved by calling to getExceptions()
) contain those exceptions thrown during the after-post processing.
JboException
, JboException.getExceptions()
, Transaction
, TransactionPostListener
, Serialized FormField Summary |
---|
Fields inherited from class oracle.jbo.JboException |
---|
mHasPeerException |
Fields inherited from class oracle.jbo.JboWarning |
---|
mHelper, SEVERITY_ERROR, SEVERITY_RECOVERABLE_ERROR, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING |
Constructor Summary | |
---|---|
AfterPostException(java.lang.Exception[] exceptionList) Creates an instance of AfterPostException . |
Method Summary |
---|
Methods inherited from class oracle.jbo.JboException |
---|
addToDetails, addToExceptions, containsException, doEntityToVOMapping, getExceptions, getSource, hasPeerExceptions, needsEntityToVOMapping, printStackTrace, printStackTrace, printStackTrace, setApplicationModule, setDetails, setExceptions, setNeedsEntityToVOMapping, setSource |
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 AfterPostException(java.lang.Exception[] exceptionList)
AfterPostException
. This constructor uses EXC_AFTER_POST
error message in oracle.jbo.CSMessageBundle
.
exceptionList
- an Array of exception thrown by TransactionPostListeners
. Exceptions from this array are added as "details" of this exception. Details may be retrieved by calling getExceptions()
.JboException.getExceptions()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |