trait Transaction[F[_]] extends AnyRef
Control methods for use within a transaction
block. An instance is provided when you call
Session.transaction(...).use
.
- Self Type
- Transaction[F]
- Source
- Transaction.scala
- See also
Session#transaction for information on default commit/rollback behavior
- Grouped
- Alphabetic
- By Inheritance
- Transaction
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
type
Savepoint
Existential type for savepoints within this transaction block.
Abstract Value Members
-
abstract
def
commit(implicit o: Origin): F[Completion]
Terminate the transaction by committing early.
Terminate the transaction by committing early. This is normally not necessary because a transaction will be committed automatically if the block exits successfully.
- See also
Session#transaction for information on default commit/rollback behavior
-
abstract
def
rollback(implicit o: Origin): F[Completion]
Terminate the transaction by rolling back.
Terminate the transaction by rolling back. This is normally not necessary because a transaction will be rolled back automatically when the block exits abnormally.
- See also
Session#transaction for information on default commit/rollback behavior
-
abstract
def
rollback(savepoint: Savepoint)(implicit o: Origin): F[Completion]
Roll back to the specified
Savepoint
, leaving the transaction active at that point. -
abstract
def
savepoint(implicit o: Origin): F[Savepoint]
Create a
Savepoint
, to which you can later roll back. -
abstract
def
status: F[TransactionStatus]
Current transaction status.
Current transaction status. It is not usually necessary to check because transactions will be committed or rolled back automatically, but if you are committing manually and your logic is sufficiently complex it may be helpful.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapK[G[_]](fk: ~>[F, G]): Transaction[G]
Transform this
Transaction
by a givenFunctionK
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()