Class

org.springframework.scala.transaction.support

TransactionTemplate

Related Doc: package support

Permalink

class TransactionTemplate extends AnyRef

Scala-based convenience wrapper for the Spring org.springframework.scala.transaction.support.TransactionTemplate, taking advantage of functions and Scala types.

Since

1.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TransactionTemplate
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TransactionTemplate(transactionManager: PlatformTransactionManager, transactionDefinition: TransactionDefinition)

    Permalink

    Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition.

    Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition.

    transactionManager

    the transaction management strategy to be used

    transactionDefinition

    the transaction definition to copy the default settings from. Local properties can still be set to change values.

  2. new TransactionTemplate(transactionManager: PlatformTransactionManager)

    Permalink
  3. new TransactionTemplate(javaTemplate: TransactionOperations)

    Permalink

    Creates a TransactionTemplate that wraps the given Java template

    Creates a TransactionTemplate that wraps the given Java template

    javaTemplate

    the Java TransactionTemplate to wrap

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. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def execute[T](action: (TransactionStatus) ⇒ T): T

    Permalink

    Execute the action specified by the given function within a transaction.

    Execute the action specified by the given function within a transaction.

    Allows for returning a result object created within the transaction, that is, a domain object or a collection of domain objects. A RuntimeException thrown by the callback is treated as a fatal exception that enforces a rollback. Such an exception gets propagated to the caller of the template.

    action

    the callback object that specifies the transactional action

    returns

    a result object returned by the callback, or null if none

    Exceptions thrown

    TransactionException in case of initialization, rollback, or system errors

  9. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  13. val javaTemplate: TransactionOperations

    Permalink

    the Java TransactionTemplate to wrap

  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