Package io.permazen.cli
Class Session.TxInfo
java.lang.Object
io.permazen.cli.Session.TxInfo
- Enclosing class:
- Session
Information about the a transaction associated with a
Session
.-
Method Summary
Modifier and TypeMethodDescriptionGet the associatedKVTransaction
.getMode()
Get theSessionMode
that the transaction was opened with.Get the associatedPermazenTransaction
, if any.Get the associatedTransaction
, if any.
-
Method Details
-
getMode
Get theSessionMode
that the transaction was opened with.- Returns:
- associated session mode
-
getKVTransaction
Get the associatedKVTransaction
.- Returns:
KVTransaction
associated with this instance, never null
-
getTransaction
Get the associatedTransaction
, if any.- Returns:
Transaction
associated with this instance, never null- Throws:
IllegalStateException
- if theSession
was inSessionMode.KEY_VALUE
mode when the transaction was opened
-
getPermazenTransaction
Get the associatedPermazenTransaction
, if any.- Returns:
PermazenTransaction
associated with this instance, never null- Throws:
IllegalStateException
- if theSession
was inSessionMode.KEY_VALUE
orSessionMode.CORE_API
mode when the transaction was opened
-