Uses of Class
io.permazen.PermazenTransaction
Package
Description
Abstraction layer allowing access to a
Database
using normal Java objects.Classes passed to
@OnChange
-annotated methods.Components that support integrating Permazen into a Java Console Toolkit console.
Spring Framework integration classes.
-
Uses of PermazenTransaction in io.permazen
Modifier and TypeClassDescriptionclass
APermazenTransaction
that is not actually connected to aPermazen
database instance, but instead exists just to hold objects in memory.Modifier and TypeMethodDescriptionPermazen.createBranchedTransaction()
Create a new branched transaction.Permazen.createBranchedTransaction
(ValidationMode validationMode) Create a new branched transaction.Permazen.createBranchedTransaction
(ValidationMode validationMode, Map<String, ?> openOptions, Map<String, ?> syncOptions) Create a new branched transaction with the given key/value transaction options.Permazen.createTransaction()
Create a new transaction.Permazen.createTransaction
(KVTransaction kvt, ValidationMode validationMode) Create a new transaction using an already-openedKVTransaction
.Permazen.createTransaction
(ValidationMode validationMode) Create a new transaction.Permazen.createTransaction
(ValidationMode validationMode, Map<String, ?> kvoptions) Create a new transaction with key/value transaction options.static PermazenTransaction
PermazenTransaction.getCurrent()
Get thePermazenTransaction
associated with the current thread, if any, otherwise throw an exception.ExportContext.getPermazenTransaction()
Get the transaction from which objects are exported.ImportContext.getPermazenTransaction()
Get the destination transaction for imported objects.PermazenObject.getTransaction()
Get this instance's associatedPermazenTransaction
.Modifier and TypeMethodDescriptiondefault PermazenObject
PermazenObject.copyTo
(PermazenTransaction dest, int recursionLimit, CopyState copyState, String... cascades) Copy this instance, and other instances it references through the specified reference cascades, into the specified destination transaction.void
PermazenTransaction.copyTo
(PermazenTransaction dest, CopyState copyState, ObjIdSet ids) Copy the specified objects into the specified destination transaction.void
PermazenTransaction.copyTo
(PermazenTransaction dest, CopyState copyState, Stream<? extends PermazenObject> pobjs) Copy the specified objects into the specified destination transaction.Converter<?,
?> PermazenCounterField.getConverter
(PermazenTransaction ptx) abstract Converter<?,
?> PermazenField.getConverter
(PermazenTransaction ptx) Get aConverter
that converts this field's value from what the core database returns to what the Java application expects, or null if no conversion is needed.io.permazen.ListConverter<?,
?> PermazenListField.getConverter
(PermazenTransaction ptx) io.permazen.NavigableMapConverter<?,
?, ?, ?> PermazenMapField.getConverter
(PermazenTransaction ptx) PermazenReferenceField.getConverter
(PermazenTransaction ptx) io.permazen.NavigableSetConverter<?,
?> PermazenSetField.getConverter
(PermazenTransaction ptx) Converter<?,
?> PermazenSimpleField.getConverter
(PermazenTransaction ptx) PermazenCompositeIndex.getIndex
(PermazenTransaction ptx) View this index.Index1<?,
?> PermazenSimpleField.getIndex
(PermazenTransaction ptx) View the index on this field.static void
PermazenTransaction.setCurrent
(PermazenTransaction ptx) Set thePermazenTransaction
associated with the current thread.ModifierConstructorDescriptionConstructor.ExportContext
(PermazenTransaction ptx, Function<ObjId, Object> objectMapper) Constructor.Constructor.ImportContext
(PermazenTransaction ptx, Function<Object, ObjId> objectIdMapper) Constructor. -
Uses of PermazenTransaction in io.permazen.change
Modifier and TypeMethodDescriptionvoid
Change.apply
(PermazenTransaction jtx) Apply this change to the object associated with this instance in the given transaction.abstract void
Change.apply
(PermazenTransaction jtx, PermazenObject jobj) Apply this change to the given object in the given transaction.void
ListFieldAdd.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ListFieldClear.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ListFieldRemove.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ListFieldReplace.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldAdd.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldClear.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldRemove.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldReplace.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ObjectCreate.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ObjectDelete.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SetFieldAdd.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SetFieldClear.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SetFieldRemove.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SimpleFieldChange.apply
(PermazenTransaction jtx, PermazenObject jobj) -
Uses of PermazenTransaction in io.permazen.cli
Modifier and TypeMethodDescriptionSession.getPermazenTransaction()
Get the openPermazenTransaction
currently associated with this instance. -
Uses of PermazenTransaction in io.permazen.spring
Modifier and TypeMethodDescriptionprotected PermazenTransaction
PermazenTransactionManager.createTransaction
(Map<String, Object> options) Create the underlyingPermazenTransaction
for a new transaction.protected PermazenTransaction
PermazenTransactionManager.getCurrent()
LikegetCurrent()
, but returns null instead of throwingIllegalStateException
.Modifier and TypeMethodDescriptionprotected void
PermazenTransactionManager.configureTransaction
(PermazenTransaction jtx, TransactionDefinition txDef) Configure a new transaction.