Under the covers, a physical JDBC Connection might be acquired and then released multiple times,
but those details are hidden from clients.
| Modifier and Type | Method and Description |
|---|---|
| public Connection | Returns: the JDBCConnection if the user passed in a Connection originallyCloses the logical connection, making it inactive and forcing release of any held resources. |
| public ResourceRegistry | Returns: The JDBC resource registry.Provides access to the registry of JDBC resources associated with this logical connection. |
| public boolean | |
| public boolean | Returns: true if currently holding a JDBC Connection;
false if not.Is this logical connection currently physically connected? |
| close | back to summary |
|---|---|
| public Connection close() Closes the logical connection, making it inactive and forcing release of any held resources. API Note The return type accommodates legacy functionality for user-supplied connections.
| |
| getResourceRegistry | back to summary |
|---|---|
| public ResourceRegistry getResourceRegistry() Provides access to the registry of JDBC resources associated with this logical connection.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Is this (logical) JDBC connection still open/active?
That is, has | |
| isPhysicallyConnected | back to summary |
|---|---|
| public boolean isPhysicallyConnected() Is this logical connection currently physically connected?
That is, does it currently hold a physical JDBC
| |