Class ShareRestrictionTransactionAttributeSource

  • All Implemented Interfaces:
    org.springframework.transaction.interceptor.TransactionAttributeSource

    public class ShareRestrictionTransactionAttributeSource
    extends java.lang.Object
    implements org.springframework.transaction.interceptor.TransactionAttributeSource
    Prevents methods from setting the transaction to readOnly = false when a share is activated.
    • Constructor Detail

      • ShareRestrictionTransactionAttributeSource

        public ShareRestrictionTransactionAttributeSource​(CurrentDetails details,
                                                          SessionCache cache)
    • Method Detail

      • getTransactionAttribute

        public org.springframework.transaction.interceptor.TransactionAttribute getTransactionAttribute​(java.lang.reflect.Method method,
                                                                                                        java.lang.Class targetClass)
        Specified by:
        getTransactionAttribute in interface org.springframework.transaction.interceptor.TransactionAttributeSource