class
TransactionFactory
extends AnyRef
Instance Constructors
-
new
TransactionFactory
(config: TransactionConfig, defaultName: String)
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
val
boilerplate
: TransactionBoilerplate
-
def
clone
(): AnyRef
-
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
val
factory
: TransactionFactory[AlphaTransaction]
-
val
familyName
: String
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Wrapper for transaction config, factory, and boilerplate. Used by atomic. Can be passed to atomic implicitly or explicitly.
implicit val txFactory = TransactionFactory(readonly = true) ... atomic { // do something within a readonly transaction }Can be created at different levels as needed. For example: as an implicit object used throughout a package, as a static implicit val within a singleton object and imported where needed, or as an implicit val within each instance of a class.
If no explicit transaction factory is passed to atomic and there is no implicit transaction factory in scope, then a default transaction factory is used.
TransactionConfig for configuration options.