public class LogicalConnectionProvidedImpl extends AbstractLogicalConnectionImplementor
resourceRegistry| Constructor and Description |
|---|
LogicalConnectionProvidedImpl(Connection providedConnection) |
LogicalConnectionProvidedImpl(Connection providedConnection,
ResourceRegistry resourceRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterCompletion() |
Connection |
close()
Closes the JdbcSession, making it inactive and forcing release of any held resources
|
static LogicalConnectionProvidedImpl |
deserialize(ObjectInputStream ois) |
protected Connection |
getConnectionForTransactionManagement() |
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"
|
Connection |
manualDisconnect()
Manually disconnect the underlying JDBC Connection.
|
void |
manualReconnect(Connection connection)
Manually reconnect the underlying JDBC Connection.
|
void |
serialize(ObjectOutputStream oos)
Serialization hook
|
afterStatement, afterTransaction, begin, commit, determineInitialAutoCommitMode, errorIfClosed, getPhysicalJdbcTransaction, getResourceRegistry, getStatus, resetConnection, rollbackpublic LogicalConnectionProvidedImpl(Connection providedConnection)
public LogicalConnectionProvidedImpl(Connection providedConnection, 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 Connection close()
LogicalConnectionpublic boolean isPhysicallyConnected()
LogicalConnectiontrue if the JdbcSession currently hold a JDBC Connection; false if it does not.public Connection getPhysicalConnection()
LogicalConnectionImplementorpublic LogicalConnectionImplementor makeShareableCopy()
LogicalConnectionImplementorpublic void serialize(ObjectOutputStream oos) throws IOException
LogicalConnectionImplementoroos - The stream to write out state toIOException - Problem accessing streampublic static LogicalConnectionProvidedImpl deserialize(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic Connection manualDisconnect()
LogicalConnectionImplementornull if
there was no connection cached internally.public void manualReconnect(Connection connection)
LogicalConnectionImplementorconnection - 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.protected Connection getConnectionForTransactionManagement()
getConnectionForTransactionManagement in class AbstractLogicalConnectionImplementorprotected void afterCompletion()
afterCompletion in class AbstractLogicalConnectionImplementorCopyright © 2016 JBoss by Red Hat. All rights reserved.