Class ServiceCommandTransactionProxy
- java.lang.Object
-
- com.atlassian.confluence.spring.service.ServiceCommandTransactionProxy
-
public class ServiceCommandTransactionProxy extends Object
Proxy for wrapping service commands in Spring-managed transactions. Each of the "do stuff" methods on the service command (isAuthorized, isValid and execute) are wrapped in their own transactions.This means that if you run a service command the multi-method-call way without an additional containing transaction that the command can join, you run the risk of Hibernate errors. If you are running a service without a containing transaction, use the single method "execute and catch exceptions" method.
- See Also:
ServiceCommand
-
-
Constructor Summary
Constructors Constructor Description ServiceCommandTransactionProxy(org.springframework.transaction.PlatformTransactionManager transactionManager)
ServiceCommandTransactionProxy(org.springframework.transaction.PlatformTransactionManager transactionManager, String isolationLevel, String propagation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceCommand
proxyCommand(ServiceCommand command, Class proxyInterface)
-
-
-
Method Detail
-
proxyCommand
public ServiceCommand proxyCommand(ServiceCommand command, Class proxyInterface)
-
-