Uses of Class
io.github.marcopaglio.booking.transaction.handler.TransactionHandler
Package
Description
Contains implementations for using transactions through MongoDB in the booking application.
Contains implementations for using transactions through PostgreSQL in the booking application.
Provides facades for managing transactions in the booking application.
-
Uses of TransactionHandler in io.github.marcopaglio.booking.transaction.handler.mongo
Modifier and TypeClassDescriptionclass
An implementation ofTransactionHandler
for using MongoDB transactions viaClientSession
. -
Uses of TransactionHandler in io.github.marcopaglio.booking.transaction.handler.postgres
Modifier and TypeClassDescriptionclass
An implementation ofTransactionHandler
for using PostgreSQL transactions viaEntityManager
. -
Uses of TransactionHandler in io.github.marcopaglio.booking.transaction.manager
Modifier and TypeMethodDescriptionprotected <R> R
TransactionManager.executeInTransaction
(ClientReservationTransactionCode<R> code, TransactionHandler<?> handler, ClientRepository clientRepository, ReservationRepository reservationRepository) Executes code that involves bothClientRepository
's andReservationRepository
's methods in a single transaction managed by aTransactionHandler
.protected <R> R
TransactionManager.executeInTransaction
(ClientTransactionCode<R> code, TransactionHandler<?> handler, ClientRepository clientRepository) Executes code that involves theClientRepository
's method(s) in a single transaction managed by aTransactionHandler
.protected <R> R
TransactionManager.executeInTransaction
(ReservationTransactionCode<R> code, TransactionHandler<?> handler, ReservationRepository reservationRepository) Executes code that involves theReservationRepository
's method(s) in a single transaction managed by aTransactionHandler
.