Transaction Context J
Scope of an active database transaction. Provides CRUD operations, raw SQL queries, stored procedure calls, and nested transactions; every operation runs on the same connection and participates in the same transaction.
Obtained from StormifyJ.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.