public abstract class

LobCreatorUtils

extends Object
java.lang.Object
   ↳ org.springframework.jdbc.support.lob.LobCreatorUtils

Class Overview

Helper class for registering a transaction synchronization for closing a LobCreator, preferring Spring transaction synchronization and falling back to plain JTA transaction synchronization.

Summary

Public Constructors
LobCreatorUtils()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LobCreatorUtils ()

Public Methods

public 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.

Parameters
lobCreator the LobCreator to close after transaction completion
jtaTransactionManager the JTA TransactionManager to fall back to when no Spring transaction synchronization is active (may be null)
Throws
IllegalStateException if there is neither active Spring transaction synchronization nor active JTA transaction synchronization