Top Description Methods
org.hibernate.resource.jdbc

public Interface LogicalConnection

Known Direct Subinterfaces
org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor
Imports
java.sql.Connection

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.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Connection

Returns:

Legacy :( Returns the JDBC Connection *if* the user passed in a Connection originally.
close
()

Closes the JdbcSession, making it inactive and forcing release of any held resources

public ResourceRegistry

Returns:

The JDBC resource registry.
getResourceRegistry
()

Provides access to the registry of JDBC resources associated with this LogicalConnection.

public boolean

Returns:

true if still open (close has not been called yet); false if not open (close has been called).
isOpen
()

Is this (logical) JDBC Connection still open/active.

public boolean

Returns:

true if the JdbcSession currently hold a JDBC Connection; false if it does not.
isPhysicallyConnected
()

Is this JdbcSession currently physically connected (meaning does it currently hold a JDBC Connection)?

Method Detail

closeback to summary
public Connection close()

Closes the JdbcSession, making it inactive and forcing release of any held resources

Returns:Connection

Legacy :( Returns the JDBC Connection *if* the user passed in a Connection originally.

getResourceRegistryback to summary
public ResourceRegistry getResourceRegistry()

Provides access to the registry of JDBC resources associated with this LogicalConnection.

Returns:ResourceRegistry

The JDBC resource registry.

Exceptions
ResourceClosedException:
if the LogicalConnection is closed
isOpenback to summary
public boolean isOpen()

Is this (logical) JDBC Connection still open/active. In other words, has close not been called yet?

Returns:boolean

true if still open (close has not been called yet); false if not open (close has been called).

isPhysicallyConnectedback to summary
public boolean isPhysicallyConnected()

Is this JdbcSession currently physically connected (meaning does it currently hold a JDBC Connection)?

Returns:boolean

true if the JdbcSession currently hold a JDBC Connection; false if it does not.