Trait/Object

dbx.api

Transactional

Related Docs: object Transactional | package api

Permalink

trait Transactional[R] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
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. type Resource = R

    Permalink

Abstract Value Members

  1. abstract val lookupTransactionManager: TransactionManagerLookup

    Permalink
  2. abstract def obtainResource(resource: String): Resource

    Permalink

    Get a transactional resource for current transaction execution, create a new one if it not exists

    Get a transactional resource for current transaction execution, create a new one if it not exists

    Attributes
    protected
  3. abstract def releaseResource(resource: String, actualResource: Resource): Unit

    Permalink

    Release the transaction resource after current transaction complete

    Release the transaction resource after current transaction complete

    resource

    the name of the resource

    actualResource

    the actual transactional resource object obtained by:

    obtainResource(resource:String):Resource
    Attributes
    protected
  4. abstract val settings: TransactionSettings

    Permalink

Concrete 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. def apply[T](readOnly: Boolean = settings.readOnly, isolation: Isolation = settings.isolation, propagation: Propagation = settings.propagation, timeout: Int = settings.timeout, noRollbackFor: Seq[Class[_]] = settings.noRollbackFor, rollbackFor: Seq[Class[_]] = settings.rollbackFor, resource: String = settings.resource)(transactionalOperation: (Resource) ⇒ T): T

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def cleanupTransactionInfo(txInfo: TransactionInfo): Unit

    Permalink

    Reset the TransactionInfo ThreadLocal.

    Reset the TransactionInfo ThreadLocal.

    Call this in all cases: exception or normal return!

    txInfo

    information about the current transaction (may be { @code null})

    Attributes
    protected
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def commitTransactionAfterReturning(txInfo: TransactionInfo): Unit

    Permalink

    Execute after successful completion of call, but not after an exception was handled.

    Execute after successful completion of call, but not after an exception was handled. Do nothing if we didn't create a transaction.

    txInfo

    information about the current transaction

    Attributes
    protected
  9. def completeTransactionAfterThrowing(txInfo: TransactionInfo, ex: Throwable): Unit

    Permalink

    Handle a throwable, completing the transaction.

    Handle a throwable, completing the transaction. We may commit or roll back, depending on the configuration.

    txInfo

    information about the current transaction

    ex

    throwable encountered

    Attributes
    protected
  10. def createTransactionIfNecessary(tm: PlatformTransactionManager, txAttr: TransactionAttribute, joinpointIdentification: String): TransactionInfo

    Permalink

    Create a transaction if necessary based on the given TransactionAttribute.

    Create a transaction if necessary based on the given TransactionAttribute.

    Allows callers to perform custom TransactionAttribute lookups through the TransactionAttributeSource.

    txAttr

    the TransactionAttribute (may be { @code null})

    joinpointIdentification

    the fully qualified method name (used for monitoring and logging purposes)

    returns

    a TransactionInfo object, whether or not a transaction was created. The { @code hasTransaction()} method on TransactionInfo can be used to tell if there was a transaction created.

    Attributes
    protected
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def invokeWithinTransaction[T](transactionalFunction: Class[_], txAttr: TransactionAttribute)(invocation: () ⇒ T): T

    Permalink
    Attributes
    protected
  17. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def prepareTransactionInfo(tm: PlatformTransactionManager, txAttr: TransactionAttribute, joinpointIdentification: String, status: TransactionStatus): TransactionInfo

    Permalink

    Prepare a TransactionInfo for the given attribute and status object.

    Prepare a TransactionInfo for the given attribute and status object.

    txAttr

    the TransactionAttribute (may be { @code null})

    joinpointIdentification

    the fully qualified method name (used for monitoring and logging purposes)

    status

    the TransactionStatus for the current transaction

    returns

    the prepared TransactionInfo object

    Attributes
    protected
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped