Object/Trait

dbx.api

Transactional

Related Docs: trait Transactional | package api

Permalink

object Transactional

Base class for transactional functions, such as the SimpleDBApiTransactional.

This enables the underlying Spring transaction infrastructure to be used easily to implement an aspect for any aspect system.

Subclasses are responsible for calling methods in this class in the correct order.

If no transaction name has been specified in the TransactionAttribute, the exposed name will be the

fully-qualified class name + "." + method name

(by default).

Uses the Strategy design pattern. A PlatformTransactionManager implementation will perform the actual transaction management, and a TransactionManagerLookup is used for determining the actual transaction manager.

Since

1.1

See also

#setTransactionManager

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transactional
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed class TransactionInfo extends AnyRef

    Permalink

    Opaque object used to hold Transaction information.

    Opaque object used to hold Transaction information. Subclasses must pass it back to methods on this class, but not see its internals.

    Attributes
    protected
  2. case class TransactionSettings(readOnly: Boolean = defaultSettings.readOnly, isolation: Isolation = defaultSettings.isolation, propagation: Propagation = defaultSettings.propagation, timeout: Int = defaultSettings.timeout, noRollbackFor: Array[Class[_]] = defaultSettings.noRollbackFor, rollbackFor: Array[Class[_]] = defaultSettings.rollbackFor, resource: String = defaultSettings.resource) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def currentTransactionInfo: TransactionInfo

    Permalink

    Subclasses can use this to return the current TransactionInfo.

    Subclasses can use this to return the current TransactionInfo. Only subclasses that cannot handle all operations in one method, such as an AspectJ aspect involving distinct before and after advice, need to use this mechanism to get at the current TransactionInfo. An around advice such as an AOP Alliance MethodInterceptor can hold a reference to the TransactionInfo throughout the aspect method.

    A TransactionInfo will be returned even if no transaction was created. The TransactionInfo.hasTransaction() method can be used to query this.

    To find out about specific transaction characteristics, consider using TransactionSynchronizationManager's isSynchronizationActive() and/or isActualTransactionActive() methods.

    returns

    TransactionInfo bound to this thread, or { @code null} if none

    Attributes
    protected
    Annotations
    @throws( ... )
    See also

    TransactionSynchronizationManager#isActualTransactionActive()

    TransactionSynchronizationManager#isSynchronizationActive()

    TransactionInfo#hasTransaction()

  7. def currentTransactionStatus: TransactionStatus

    Permalink

    Return the transaction status of the current method invocation.

    Return the transaction status of the current method invocation. Mainly intended for code that wants to set the current transaction rollback-only but not throw an application exception.

    Annotations
    @throws( ... )
    Exceptions thrown

    NoTransactionException if the transaction info cannot be found, because the method was invoked outside an AOP invocation context

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped