Skip navigation links 
 
oracle.adfinternal.model.adapter.toplink
Class JTATransactionBroker
java.lang.Object
   oracle.adfinternal.model.adapter.toplink.TransactionBroker
oracle.adfinternal.model.adapter.toplink.TransactionBroker
       oracle.adfinternal.model.adapter.toplink.JTATransactionBroker
oracle.adfinternal.model.adapter.toplink.JTATransactionBroker
- 
public class JTATransactionBroker
 
- extends TransactionBroker
This class describes a TransactionBroker that uses a JTA-shared transaction model. Instead of acquiring a UnitOfWork from the Sesssion and using isolated transaction space, this TransactionBroker always delagates to the Session to use the JTA transaction. This type of TransactionBroker is employed when the given Session indicates a shared, JTA transaction. Using a shared, JTA transaction is useful when the data control is one of many services used in a shared transaction application.
 
 
  
 
| Constructor Summary | 
| JTATransactionBroker(oracle.toplink.sessions.Session session, int brokerType, boolean shouldPerformDeletesFirst, boolean shouldSequenceOnCreate)Creates a new TransactionBroker instance.
 | 
  
 
| Method Summary | 
|  oracle.toplink.sessions.UnitOfWork | getUnitOfWork()Returns the JTA UnitOfWork from the Session.
 | 
| protected  void | releaseUnitOfWork()Releases the shared UnitOfWork indicated by the Session.
 | 
| protected  void | resetUnitOfWork()Only releases the shared UnitOfWork.
 | 
 
| Methods inherited from class oracle.adfinternal.model.adapter.toplink.TransactionBroker | 
| commitTransaction, createEntity, createEntity, deleteEntity, executeQuery, executeQuery, getSession, initialize, isQuery, isTransactionDirty, registerEntity, registerNewEntity, registerNewEntity, release, releaseSession, resetState, resetTransaction, rollbackTransaction | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
JTATransactionBroker
public JTATransactionBroker(oracle.toplink.sessions.Session session,
                            int brokerType,
                            boolean shouldPerformDeletesFirst,
                            boolean shouldSequenceOnCreate)
- Creates a new TransactionBroker instance.
- Parameters:
- applicationBindingContext- - BindingContext unique to this application instance.
- session- - TopLink Session for this application instance.
- brokerType- - describes the mode of operation with regards to the underlying TL Session.
- shouldPerformDeletesFirst- - determines whether the UnitOfWork in this TransactionBroker should perform deletes first pn commit.
 
getUnitOfWork
public oracle.toplink.sessions.UnitOfWork getUnitOfWork()
- Returns the JTA UnitOfWork from the Session.
- 
- Specified by:
- getUnitOfWorkin class- TransactionBroker
 
resetUnitOfWork
protected void resetUnitOfWork()
- Only releases the shared UnitOfWork.
- 
- Specified by:
- resetUnitOfWorkin class- TransactionBroker
 
releaseUnitOfWork
protected void releaseUnitOfWork()
- Releases the shared UnitOfWork indicated by the Session.
- 
- Specified by:
- releaseUnitOfWorkin class- TransactionBroker
 
Skip navigation links 
 
Copyright © 1997, 2011, Oracle. All rights reserved.