public class ConnectionInfo
extends java.lang.Object
| Constructor and Description |
|---|
ConnectionInfo(java.sql.Connection connection) |
ConnectionInfo(java.sql.Connection connection,
boolean isPooled) |
ConnectionInfo(java.sql.Connection connection,
boolean isPooled,
@Nullable javax.sql.XAConnection xaConnection)
Creates a
ConnectionInfo that also carries the owning XAConnection for the XA
datasource path. |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
@Nullable javax.sql.XAConnection |
getXaConnection()
Returns the owning
XAConnection when this info was produced on the XA datasource path,
or null otherwise. |
boolean |
isPooled() |
public ConnectionInfo(java.sql.Connection connection,
boolean isPooled)
public ConnectionInfo(java.sql.Connection connection)
public ConnectionInfo(java.sql.Connection connection,
boolean isPooled,
@Nullable javax.sql.XAConnection xaConnection)
ConnectionInfo that also carries the owning XAConnection for the XA
datasource path. The connection is the logical connection obtained from
xaConnection.getConnection(); xaConnection owns the physical session and the
XAResource.connection - the (logical) physical connection handed to the wrapper.isPooled - whether the connection came from a pool.xaConnection - the owning XA connection, or null on the non-XA path.public java.sql.Connection getConnection()
public boolean isPooled()
public @Nullable javax.sql.XAConnection getXaConnection()
XAConnection when this info was produced on the XA datasource path,
or null otherwise.