Class TransactionAttributeAdapter

Object
com.liferay.portal.spring.transaction.TransactionAttributeAdapter
All Implemented Interfaces:
com.liferay.portal.kernel.transaction.TransactionAttribute, org.springframework.transaction.interceptor.TransactionAttribute, org.springframework.transaction.TransactionDefinition

public class TransactionAttributeAdapter extends Object implements com.liferay.portal.kernel.transaction.TransactionAttribute, org.springframework.transaction.interceptor.TransactionAttribute
Author:
Shuyang Zhou
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.liferay.portal.kernel.transaction.TransactionAttribute

    com.liferay.portal.kernel.transaction.TransactionAttribute.Builder, com.liferay.portal.kernel.transaction.TransactionAttribute.DefaultTransactionAttribute
  • Field Summary

    Fields inherited from interface org.springframework.transaction.TransactionDefinition

    ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
     
    TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute, boolean strictReadOnly)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.liferay.portal.kernel.transaction.Isolation
     
    int
     
     
     
    com.liferay.portal.kernel.transaction.Propagation
     
    int
     
     
    int
     
    boolean
     
    boolean
     
    boolean
    rollbackOn(Throwable throwable)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TransactionAttributeAdapter

      public TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
    • TransactionAttributeAdapter

      public TransactionAttributeAdapter(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute, boolean strictReadOnly)
  • Method Details

    • getIsolation

      public com.liferay.portal.kernel.transaction.Isolation getIsolation()
      Specified by:
      getIsolation in interface com.liferay.portal.kernel.transaction.TransactionAttribute
    • getIsolationLevel

      public int getIsolationLevel()
      Specified by:
      getIsolationLevel in interface org.springframework.transaction.TransactionDefinition
    • getLabels

      public Collection<String> getLabels()
      Specified by:
      getLabels in interface org.springframework.transaction.interceptor.TransactionAttribute
    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.transaction.TransactionDefinition
    • getPropagation

      public com.liferay.portal.kernel.transaction.Propagation getPropagation()
      Specified by:
      getPropagation in interface com.liferay.portal.kernel.transaction.TransactionAttribute
    • getPropagationBehavior

      public int getPropagationBehavior()
      Specified by:
      getPropagationBehavior in interface org.springframework.transaction.TransactionDefinition
    • getQualifier

      public String getQualifier()
      Specified by:
      getQualifier in interface org.springframework.transaction.interceptor.TransactionAttribute
    • getTimeout

      public int getTimeout()
      Specified by:
      getTimeout in interface org.springframework.transaction.TransactionDefinition
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface com.liferay.portal.kernel.transaction.TransactionAttribute
      Specified by:
      isReadOnly in interface org.springframework.transaction.TransactionDefinition
    • isStrictReadOnly

      public boolean isStrictReadOnly()
      Specified by:
      isStrictReadOnly in interface com.liferay.portal.kernel.transaction.TransactionAttribute
    • rollbackOn

      public boolean rollbackOn(Throwable throwable)
      Specified by:
      rollbackOn in interface org.springframework.transaction.interceptor.TransactionAttribute