public abstract class ClientXAConnection extends ClientPooledConnection implements XAConnection
logWriter_, rmId_| Constructor and Description |
|---|
ClientXAConnection(ClientXADataSource ds,
NetLogWriter logWtr,
String userId,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the physical connection to the data source and frees all
assoicated resources.
|
NetXAConnection |
createControlConnection(NetLogWriter logWriter,
String user,
String password,
ClientDataSource dataSource,
int rmId,
boolean isXAConn) |
Connection |
getConnection()
Creates a logical connection.
|
ClientXADataSource |
getDataSource() |
int |
getRmId() |
XAResource |
getXAResource() |
addConnectionEventListener, finalize, getNetXAConnection, informListeners, isStatementPoolingEnabled, nullLogicalConnection, onStatementClose, onStatementErrorOccurred, recycleConnection, removeConnectionEventListenerclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionEventListener, addStatementEventListener, removeConnectionEventListener, removeStatementEventListenerpublic ClientXAConnection(ClientXADataSource ds, NetLogWriter logWtr, String userId, String password) throws SQLException
SQLExceptionpublic Connection getConnection() throws SQLException
ClientPooledConnectionThis is the standard API for getting a logical connection handle for a pooled connection. No "resettable" properties are passed, so user, password, and all other properties may not change.
getConnection in interface PooledConnectiongetConnection in class ClientPooledConnectionSQLException - if creating a new logical connection failspublic int getRmId()
public XAResource getXAResource() throws SQLException
getXAResource in interface XAConnectionSQLExceptionpublic ClientXADataSource getDataSource() throws SqlException
SqlExceptionpublic NetXAConnection createControlConnection(NetLogWriter logWriter, String user, String password, ClientDataSource dataSource, int rmId, boolean isXAConn) throws SQLException
SQLExceptionpublic void close()
throws SQLException
ClientPooledConnectionclose in interface PooledConnectionclose in class ClientPooledConnectionSQLException - if closing the connection causes an error. Note that
this connection can still be considered closed even if an error
occurs.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.