Class ManagedConnection

java.lang.Object
org.litebridgedb.db.spi.tx.ManagedConnection
All Implemented Interfaces:
AutoCloseable, Connection, Wrapper

public final class ManagedConnection extends Object implements Connection
A wrapper for a Connection object that ensures certain methods associated with transaction and connection management are not directly invoked.

The purpose of this class is to provide a managed connection where specific operations like commit, rollback, close, and others related to transaction state or connection properties are restricted, while other operations are delegated to the underlying connection.

This class implements the Connection interface, proxying the majority of its methods to an internal Connection instance. For methods that are deemed unsafe or restricted for managed contexts, an UnsupportedOperationException is thrown.