Uses of Class
io.github.marcopaglio.booking.exception.TransactionException
Package
Description
Provides facades for managing transactions in the booking application.
Contains implementations for managing transactions in MongoDB in the booking application.
Contains implementations for managing transactions in PostgreSQL in the booking application.
-
Uses of TransactionException in io.github.marcopaglio.booking.transaction.manager
Modifier and TypeMethodDescriptionabstract <R> R
TransactionManager.doInTransaction
(ClientReservationTransactionCode<R> code) Prepares to execution of code that involves bothClientRepository
's andReservationRepository
's methods in a single transaction.abstract <R> R
TransactionManager.doInTransaction
(ClientTransactionCode<R> code) Prepares to execution of code that involves theClientRepository
's method(s) in a single transaction.abstract <R> R
TransactionManager.doInTransaction
(ReservationTransactionCode<R> code) Prepares to execution of code that involves theReservationRepository
's method(s) in a single transaction.protected <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
. -
Uses of TransactionException in io.github.marcopaglio.booking.transaction.manager.mongo
Modifier and TypeMethodDescription<R> R
TransactionMongoManager.doInTransaction
(ClientReservationTransactionCode<R> code) Prepares to execution of code that involves bothClientRepository
's andReservationRepository
's methods on MongoDB in a single transaction.<R> R
TransactionMongoManager.doInTransaction
(ClientTransactionCode<R> code) Prepares to execution of code that involves theClientRepository
's method(s) on MongoDB in a single transaction.<R> R
TransactionMongoManager.doInTransaction
(ReservationTransactionCode<R> code) Prepares to execution of code that involves theReservationRepository
's method(s) on MongoDB in a single transaction. -
Uses of TransactionException in io.github.marcopaglio.booking.transaction.manager.postgres
Modifier and TypeMethodDescription<R> R
TransactionPostgresManager.doInTransaction
(ClientReservationTransactionCode<R> code) Prepares to execution of code that involves bothClientRepository
's andReservationRepository
's methods on PostgreSQL in a single transaction.<R> R
TransactionPostgresManager.doInTransaction
(ClientTransactionCode<R> code) Prepares to execution of code that involves theClientRepository
's method(s) on PostgreSQL in a single transaction.<R> R
TransactionPostgresManager.doInTransaction
(ReservationTransactionCode<R> code) Prepares to execution of code that involves theReservationRepository
's method(s) on PostgreSQL in a single transaction.