Index

C D J M O R T 
All Classes and Interfaces|All Packages|Serialized Form

C

checkout(String, String, int) - Method in class com.homannsoftware.transactions.CheckoutService
Reserves inventory and records an order as one atomic database change.
checkout(String, String, int) - Method in class com.homannsoftware.transactions.JakartaCheckoutService
Applies the same business operation using Jakarta transaction metadata.
CheckoutRepository - Class in com.homannsoftware.transactions
Executes parameterized SQL against the lab's single DataSource.
CheckoutRepository(JdbcTemplate) - Constructor for class com.homannsoftware.transactions.CheckoutRepository
Creates the SQL adapter.
CheckoutService - Class in com.homannsoftware.transactions
Defines the transaction boundary for one local checkout use case.
CheckoutService(CheckoutRepository) - Constructor for class com.homannsoftware.transactions.CheckoutService
Creates the service through constructor injection.
com.homannsoftware.transactions - package com.homannsoftware.transactions
 

D

DemoRunner - Class in com.homannsoftware.transactions
Prints a successful commit followed by a deliberate duplicate-key rollback.
DemoRunner(CheckoutService, JdbcTemplate) - Constructor for class com.homannsoftware.transactions.DemoRunner
Creates the command-line demonstration.

J

JakartaCheckoutService - Class in com.homannsoftware.transactions
Demonstrates the Jakarta Transactions annotation on a Spring-managed bean.
JakartaCheckoutService(CheckoutRepository) - Constructor for class com.homannsoftware.transactions.JakartaCheckoutService
Creates the alternative checkout service.

M

main(String[]) - Static method in class com.homannsoftware.transactions.TransactionLabApplication
Runs the application and closes its resources after the demo.

O

OutOfStockException - Exception Class in com.homannsoftware.transactions
Signals that an inventory row could not satisfy the reservation.
OutOfStockException(String) - Constructor for exception class com.homannsoftware.transactions.OutOfStockException
Describes the rejected reservation without changing inventory.

R

recordOrder(String, String, int) - Method in class com.homannsoftware.transactions.CheckoutRepository
Inserts an order; a duplicate reference is a database constraint error.
reserve(String, int) - Method in class com.homannsoftware.transactions.CheckoutRepository
Decrements stock only when enough stock is still available.
run(String...) - Method in class com.homannsoftware.transactions.DemoRunner
Demonstrates that the second reservation is rolled back.

T

TransactionLabApplication - Class in com.homannsoftware.transactions
Starts the standalone, local JDBC transaction lab.
TransactionLabApplication() - Constructor for class com.homannsoftware.transactions.TransactionLabApplication
Creates the application configuration.
C D J M O R T 
All Classes and Interfaces|All Packages|Serialized Form