类 LobCreatorUtils
- java.lang.Object
- org.springframework.jdbc.support.lob.LobCreatorUtils
public abstract class LobCreatorUtils extends Object
Helper class for registering a transaction synchronization for closing a LobCreator, preferring Spring transaction synchronization and falling back to plain JTA transaction synchronization.
构造器概要
构造器 构造器 说明 LobCreatorUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
LobCreatorUtils
public LobCreatorUtils()
方法详细资料
registerTransactionSynchronization
public static void registerTransactionSynchronization(LobCreator lobCreator, TransactionManager jtaTransactionManager) throws IllegalStateException
Register a transaction synchronization for closing the given LobCreator, preferring Spring transaction synchronization and falling back to plain JTA transaction synchronization.- 参数:
lobCreator
- the LobCreator to close after transaction completionjtaTransactionManager
- the JTA TransactionManager to fall back to when no Spring transaction synchronization is active (may benull
)- 抛出:
IllegalStateException
- if there is neither active Spring transaction synchronization nor active JTA transaction synchronization