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:
  • Constructor Details

    • ServiceCommandTransactionProxy

      public ServiceCommandTransactionProxy(org.springframework.transaction.PlatformTransactionManager transactionManager)
    • ServiceCommandTransactionProxy

      public ServiceCommandTransactionProxy(org.springframework.transaction.PlatformTransactionManager transactionManager, String isolationLevel, String propagation)
  • Method Details