org.apache.derby.client
Class ClientXAConnection
- java.lang.Object
-
- org.apache.derby.client.ClientPooledConnection
-
- org.apache.derby.client.ClientXAConnection
-
- All Implemented Interfaces:
- javax.sql.PooledConnection, javax.sql.XAConnection
public class ClientXAConnection extends ClientPooledConnection implements javax.sql.XAConnection
-
-
Constructor Summary
Constructors Constructor and Description ClientXAConnection(BasicClientDataSource40 ds, LogWriter logWtr, java.lang.String userId, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Closes the physical connection to the data source and frees all associated resources.java.sql.ConnectiongetConnection()Creates a logical connection.intgetRmId()javax.transaction.xa.XAResourcegetXAResource()-
Methods inherited from class org.apache.derby.client.ClientPooledConnection
addConnectionEventListener, addStatementEventListener, informListeners, isStatementPoolingEnabled, nullLogicalConnection, onStatementClose, onStatementErrorOccurred, recycleConnection, removeConnectionEventListener, removeStatementEventListener
-
-
-
-
Constructor Detail
-
ClientXAConnection
public ClientXAConnection(BasicClientDataSource40 ds, LogWriter logWtr, java.lang.String userId, java.lang.String password) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLExceptionDescription copied from class:ClientPooledConnectionCreates a logical connection.This 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.
- Specified by:
getConnectionin interfacejavax.sql.PooledConnection- Overrides:
getConnectionin classClientPooledConnection- Throws:
java.sql.SQLException- if creating a new logical connection fails
-
getRmId
public int getRmId()
-
getXAResource
public javax.transaction.xa.XAResource getXAResource() throws java.sql.SQLException- Specified by:
getXAResourcein interfacejavax.sql.XAConnection- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLExceptionDescription copied from class:ClientPooledConnectionCloses the physical connection to the data source and frees all associated resources.- Specified by:
closein interfacejavax.sql.PooledConnection- Overrides:
closein classClientPooledConnection- Throws:
java.sql.SQLException- if closing the connection causes an error. Note that this connection can still be considered closed even if an error occurs.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG