public interface LogicalConnection
Models the logical notion of a JDBC Connection. We may release/re-acquire physical JDBC connections under the covers, but this logically represents the overall access to the JDBC Connection.
Modifier and Type | Method and Description |
---|---|
Connection |
close()
Closes the JdbcSession, making it inactive and forcing release of any held resources
|
ResourceRegistry |
getResourceRegistry()
Provides access to the registry of JDBC resources associated with this LogicalConnection.
|
boolean |
isOpen()
Is this (logical) JDBC Connection still open/active.
|
boolean |
isPhysicallyConnected()
Is this JdbcSession currently physically connected (meaning does it currently hold a JDBC Connection)?
|
boolean isOpen()
Is this (logical) JDBC Connection still open/active. In other words, has close()
not been called yet?
Connection close()
Closes the JdbcSession, making it inactive and forcing release of any held resources
boolean isPhysicallyConnected()
Is this JdbcSession currently physically connected (meaning does it currently hold a JDBC Connection)?
true
if the JdbcSession currently hold a JDBC Connection; false
if it does not.ResourceRegistry getResourceRegistry()
Provides access to the registry of JDBC resources associated with this LogicalConnection.
ResourceClosedException
- if the LogicalConnection is closedCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.