Class

dbx.api

SimpleDBApiTransactional

Related Doc: package api

Permalink

class SimpleDBApiTransactional extends Transactional[Connection]

A simple Transactional function that uses jdbc Connection(obtained from DBApi and binding it to transaction execution context) as a transactional resource.

Annotations
@Singleton()
Linear Supertypes
Transactional[Connection], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleDBApiTransactional
  2. Transactional
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleDBApiTransactional(dbApi: DBApi, lookupTransactionManager: TransactionManagerLookup, settings: TransactionSettings)

    Permalink
    Annotations
    @Inject()

Type Members

  1. type Resource = Connection

    Permalink
    Definition Classes
    Transactional

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: Array[Class[_]] = settings.noRollbackFor, rollbackFor: Array[Class[_]] = settings.rollbackFor, resource: String = settings.resource)(transactionalOperation: (Resource) ⇒ T): T

    Permalink
    Definition Classes
    Transactional
  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
    Definition Classes
    Transactional
  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
    Definition Classes
    Transactional
  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
    Definition Classes
    Transactional
  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
    Definition Classes
    Transactional
  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
    Definition Classes
    Transactional
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val lookupTransactionManager: TransactionManagerLookup

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. 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

    Definition Classes
    SimpleDBApiTransactionalTransactional
  23. 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
    Definition Classes
    Transactional
  24. 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
    Definition Classes
    SimpleDBApiTransactionalTransactional
  25. val settings: TransactionSettings

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Transactional[Connection]

Inherited from AnyRef

Inherited from Any

Ungrouped