public final class SQLConnectionLease implements AutoClosable:
Scoped SQL connection access used by one provider operation.
A direct repository lease owns its connection. A manager session lease borrows the session connection and therefore leaves it open for transaction continuity.
try lease = session.openConnection(): statement = lease.connection.statement()
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | connectionconnection as Connection |
Open low-level SQL connection. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SQLConnectionLeaseSQLConnectionLease(connection as Connection, ownsConnection as Boolean): |
Creates an owned or borrowed connection lease. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void: |
Releases an owned connection idempotently. |