java.lang.Object
org.litebridgedb.orm.tx.DefaultTransactionManagerFactory
- All Implemented Interfaces:
TransactionManagerFactory
public final class DefaultTransactionManagerFactory
extends Object
implements TransactionManagerFactory
A factory for creating instances of
DefaultTransactionManager.
This class provides an implementation of the TransactionManagerFactory interface.
It creates transaction manager instances bound to a specific DataSource.
The produced DefaultTransactionManager instances are used to manage
database transactions within a defined transactional context.
This includes managing the lifecycle of transactions (begin, commit, rollback)
and coordinating these with the underlying database system.
This class is immutable and thread-safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(DataSource dataSource) Creates a new transaction manager instance.
-
Constructor Details
-
DefaultTransactionManagerFactory
public DefaultTransactionManagerFactory()
-
-
Method Details
-
create
Description copied from interface:TransactionManagerFactoryCreates a new transaction manager instance.- Specified by:
createin interfaceTransactionManagerFactory- Parameters:
dataSource- the data source to use for transactions- Returns:
- a new transaction manager instance
-