Transaction Context J
Java-facing wrapper around a TransactionContext. Exposes all CRUD and query operations as idiomatic Java methods that take Class<T> parameters (instead of Kotlin KClass<T>) and Consumer<T> / Runnable instead of Kotlin function types.
Obtained from StormifyJ.transaction — you do not construct this directly. All operations share the same underlying connection so they participate in the same database transaction.
Functions
DELETE's the row corresponding to deletedItem using its primary key.
Batch DELETE of items.
Executes an INSERT / UPDATE / DELETE and returns the affected row count.
Returns the detail rows of type detailsClass that reference parent. Use propertyName to disambiguate when the detail class has multiple foreign keys pointing at the same parent type.
Type-safe variant of getDetails that accepts an annotation-processor-generated reference path (e.g. Paths.AuditEntry_.createdBy()) instead of a string.
Starts a nested transaction via a savepoint. If block throws, only its work is rolled back.