public abstract class LobCreatorUtils extends Object
SpringLobCreatorSynchronization
,
TransactionSynchronizationManager
,
JtaLobCreatorSynchronization
,
Transaction.registerSynchronization(javax.transaction.Synchronization)
Constructor and Description |
---|
LobCreatorUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
registerTransactionSynchronization(LobCreator lobCreator,
TransactionManager jtaTransactionManager)
Register a transaction synchronization for closing the given LobCreator,
preferring Spring transaction synchronization and falling back to
plain JTA transaction synchronization.
|
public static void registerTransactionSynchronization(LobCreator lobCreator, TransactionManager jtaTransactionManager) throws IllegalStateException
lobCreator
- the LobCreator to close after transaction completionjtaTransactionManager
- the JTA TransactionManager to fall back to
when no Spring transaction synchronization is active (may be null
)IllegalStateException
- if there is neither active Spring transaction
synchronization nor active JTA transaction synchronization