public class LogicalConnectionManagedImpl extends AbstractLogicalConnectionImplementor
resourceRegistry| Constructor and Description |
|---|
LogicalConnectionManagedImpl(JdbcConnectionAccess jdbcConnectionAccess,
JdbcSessionContext jdbcSessionContext) |
LogicalConnectionManagedImpl(JdbcConnectionAccess jdbcConnectionAccess,
JdbcSessionContext jdbcSessionContext,
ResourceRegistry resourceRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterCompletion() |
void |
afterStatement()
Notification indicating a JDBC statement has been executed to trigger
ConnectionReleaseMode.AFTER_STATEMENT releasing if needed |
void |
afterTransaction()
Notification indicating a transaction has completed to trigger
ConnectionReleaseMode.AFTER_TRANSACTION releasing if needed |
void |
begin()
Begin the resource transaction
|
java.sql.Connection |
close()
Closes the JdbcSession, making it inactive and forcing release of any held resources
|
static LogicalConnectionManagedImpl |
deserialize(java.io.ObjectInputStream ois,
JdbcConnectionAccess jdbcConnectionAccess,
JdbcSessionContext jdbcSessionContext) |
protected java.sql.Connection |
getConnectionForTransactionManagement() |
java.sql.Connection |
getPhysicalConnection()
Exposes access to the "real" Connection.
|
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)?
|
LogicalConnectionImplementor |
makeShareableCopy()
Creates a shareable copy of itself for use in "shared sessions"
|
java.sql.Connection |
manualDisconnect()
Manually disconnect the underlying JDBC Connection.
|
void |
manualReconnect(java.sql.Connection suppliedConnection)
Manually reconnect the underlying JDBC Connection.
|
void |
serialize(java.io.ObjectOutputStream oos)
Serialization hook
|
commit, determineInitialAutoCommitMode, errorIfClosed, getPhysicalJdbcTransaction, getResourceRegistry, getStatus, resetConnection, rollbackpublic LogicalConnectionManagedImpl(JdbcConnectionAccess jdbcConnectionAccess, JdbcSessionContext jdbcSessionContext)
public LogicalConnectionManagedImpl(JdbcConnectionAccess jdbcConnectionAccess, JdbcSessionContext jdbcSessionContext, ResourceRegistry resourceRegistry)
public boolean isOpen()
LogicalConnectionLogicalConnection.close() not been called yet?true if still open (LogicalConnection.close() has not been called yet); false if not open
((LogicalConnection.close() has been called).public boolean isPhysicallyConnected()
LogicalConnectiontrue if the JdbcSession currently hold a JDBC Connection; false if it does not.public java.sql.Connection getPhysicalConnection()
LogicalConnectionImplementorpublic void afterStatement()
LogicalConnectionImplementorConnectionReleaseMode.AFTER_STATEMENT releasing if neededafterStatement in interface LogicalConnectionImplementorafterStatement in class AbstractLogicalConnectionImplementorpublic void afterTransaction()
LogicalConnectionImplementorConnectionReleaseMode.AFTER_TRANSACTION releasing if neededafterTransaction in interface LogicalConnectionImplementorafterTransaction in class AbstractLogicalConnectionImplementorpublic java.sql.Connection manualDisconnect()
LogicalConnectionImplementornull if
there was no connection cached internally.public void manualReconnect(java.sql.Connection suppliedConnection)
LogicalConnectionImplementorsuppliedConnection - For user supplied connection strategy the user needs to hand us the connection
with which to reconnect. It is an error to pass a connection in the other strategies.public LogicalConnectionImplementor makeShareableCopy()
LogicalConnectionImplementorpublic void serialize(java.io.ObjectOutputStream oos)
throws java.io.IOException
LogicalConnectionImplementoroos - The stream to write out state tojava.io.IOException - Problem accessing streampublic static LogicalConnectionManagedImpl deserialize(java.io.ObjectInputStream ois, JdbcConnectionAccess jdbcConnectionAccess, JdbcSessionContext jdbcSessionContext) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.sql.Connection close()
LogicalConnectionprotected java.sql.Connection getConnectionForTransactionManagement()
getConnectionForTransactionManagement in class AbstractLogicalConnectionImplementorpublic void begin()
JdbcResourceTransactionbegin in interface JdbcResourceTransactionbegin in class AbstractLogicalConnectionImplementorprotected void afterCompletion()
afterCompletion in class AbstractLogicalConnectionImplementorCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.