CoreTransactionManager

Represents the object responsible for storing internal data related to each registered database and its transaction manager.

Functions

Link copied to clipboard

Clears any association between the provided database instance and its transaction manager, and completely removes the database instance from the internal storage.

Link copied to clipboard

Returns the current Transaction from the current transaction manager instance.

Link copied to clipboard

Returns the current Transaction from the current transaction manager instance, or null if none exists.

Link copied to clipboard

Returns the transaction manager instance stored in the current thread's copy of its thread-local variable.

Link copied to clipboard

Returns the transaction manager instance that is associated with the provided database key, or null if a manager has not been registered for the database.

Link copied to clipboard

Returns the database that has been set as the default for all transactions.

Link copied to clipboard

Returns the database that has been set as the default for all transactions, or, if none was set, the last instance created.

Link copied to clipboard

Stores the specified database instance as a key for the provided transaction manager value.

Link copied to clipboard

Sets the current thread's copy of its thread-local variable to the specified manager instance, or removes the value entirely if a null instance is provided.

Link copied to clipboard

Sets the specified database instance as the default for all transactions.