public class ExternalTransactionScopeManager extends TransactionScopeManager
serverName, transactionManager| Constructor and Description |
|---|
ExternalTransactionScopeManager(TransactionManager transactionManager,
ExternalTransactionManager externalManager)
Instantiates transaction scope manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit the current transaction.
|
void |
end()
Rollback if required.
|
SpiTransaction |
get()
Return the current Transaction for this serverName and Thread.
|
void |
replace(SpiTransaction trans)
Replace the current transaction with this one.
|
void |
rollback()
Rollback the current transaction.
|
void |
set(SpiTransaction trans)
Set a new Transaction for this serverName and Thread.
|
public ExternalTransactionScopeManager(TransactionManager transactionManager, ExternalTransactionManager externalManager)
transactionManager - the transaction managerpublic void commit()
TransactionScopeManagercommit in class TransactionScopeManagerpublic void end()
TransactionScopeManagerend in class TransactionScopeManagerpublic SpiTransaction get()
TransactionScopeManagerget in class TransactionScopeManagerpublic void replace(SpiTransaction trans)
TransactionScopeManagerUsed for Background fetching and Nested transaction scopes.
Used for background fetching. Replaces the current transaction with a 'dummy' transaction. The current transaction is given to the background thread so it can continue the fetch.
replace in interface SpiTransactionScopeManagerreplace in class TransactionScopeManagerpublic void rollback()
TransactionScopeManagerrollback in class TransactionScopeManagerpublic void set(SpiTransaction trans)
TransactionScopeManagerset in class TransactionScopeManagerCopyright © 2014. All Rights Reserved.