com.liferay.util.spring.transaction
Class TransactionManagerClp
java.lang.Object
com.liferay.util.spring.transaction.TransactionManagerClp
- All Implemented Interfaces:
- org.springframework.transaction.PlatformTransactionManager
public class TransactionManagerClp
- extends Object
- implements org.springframework.transaction.PlatformTransactionManager
A transaction manager class loader proxy delegating the method invocations to
the transaction manager in the portal implementation. The transaction manager
within the portal must be specified as a Spring bean having ID
"liferayTransactionManager"
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionManagerClp
public TransactionManagerClp()
commit
public void commit(org.springframework.transaction.TransactionStatus transactionStatus)
throws org.springframework.transaction.TransactionException
- Specified by:
commit
in interface org.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
getTransaction
public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition transactionDefinition)
throws org.springframework.transaction.TransactionException
- Specified by:
getTransaction
in interface org.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
init
@PostConstruct
public void init()
throws ClassNotFoundException
- Throws:
ClassNotFoundException
rollback
public void rollback(org.springframework.transaction.TransactionStatus transactionStatus)
throws org.springframework.transaction.TransactionException
- Specified by:
rollback
in interface org.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
createRemoteTransactionDefinition
protected Object createRemoteTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
throws IllegalAccessException,
InstantiationException
- Throws:
IllegalAccessException
InstantiationException
initTransactionManagerMethods
protected void initTransactionManagerMethods()
unwrapTransactionStatus
protected Object unwrapTransactionStatus(org.springframework.transaction.TransactionStatus localTransactionStatus)