public abstract class TransactionScopeManager extends Object implements SpiTransactionScopeManager
| Modifier and Type | Field and Description |
|---|---|
protected String |
serverName |
protected TransactionManager |
transactionManager |
| Constructor and Description |
|---|
TransactionScopeManager(TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
commit()
Commit the current transaction.
|
abstract void |
end()
Rollback if required.
|
abstract SpiTransaction |
get()
Return the current Transaction for this serverName and Thread.
|
abstract void |
replace(SpiTransaction trans)
Replace the current transaction with this one.
|
abstract void |
rollback()
Rollback the current transaction.
|
abstract void |
set(SpiTransaction trans)
Set a new Transaction for this serverName and Thread.
|
protected final TransactionManager transactionManager
protected final String serverName
public TransactionScopeManager(TransactionManager transactionManager)
public abstract SpiTransaction get()
public abstract void set(SpiTransaction trans)
public abstract void commit()
public abstract void rollback()
public abstract void end()
public abstract void replace(SpiTransaction trans)
Used 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 SpiTransactionScopeManagerCopyright © 2014. All Rights Reserved.