Skip navigation links
oracle.adfinternal.model.adapter.toplink
Class IsolatedTransactionBroker
java.lang.Object
oracle.adfinternal.model.adapter.toplink.TransactionBroker
oracle.adfinternal.model.adapter.toplink.IsolatedTransactionBroker
-
public class IsolatedTransactionBroker
- extends TransactionBroker
This class describes a TransactionBroker that uses an UnitOfWork that is not shared at the Session level, but is isolated to the data control that uses it. The UnitOfWork is always acquired from the underlying Session directly.
Constructor Summary |
IsolatedTransactionBroker(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 current UnitOfWork. |
protected void |
releaseUnitOfWork()
Releases the current UnitOfWork and nulls it out. |
protected void |
resetUnitOfWork()
Releases the active UnitOfWork and acquires a new one from the underlying Session. |
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 |
IsolatedTransactionBroker
public IsolatedTransactionBroker(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.
resetUnitOfWork
protected void resetUnitOfWork()
- Releases the active UnitOfWork and acquires a new one from the underlying Session.
-
- Specified by:
resetUnitOfWork
in class TransactionBroker
releaseUnitOfWork
protected void releaseUnitOfWork()
- Releases the current UnitOfWork and nulls it out.
-
- Specified by:
releaseUnitOfWork
in class TransactionBroker
getUnitOfWork
public oracle.toplink.sessions.UnitOfWork getUnitOfWork()
- Returns the current UnitOfWork.
-
- Specified by:
getUnitOfWork
in class TransactionBroker
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.