org.apache.derby.client.net
Class NetXAConnection
- java.lang.Object
-
- org.apache.derby.client.net.NetXAConnection
-
public class NetXAConnection extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description NetXAConnection(LogWriter logWriter, java.lang.String user, java.lang.String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc)The construcor for the NetXAConnection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description NetConnectiongetNetConnection()Returns underlying net connectionvoidsetCorrelatorToken(byte[] crttoken)
-
-
-
Constructor Detail
-
NetXAConnection
public NetXAConnection(LogWriter logWriter, java.lang.String user, java.lang.String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
The construcor for the NetXAConnection. The parameter is set tothisfrom ClientXAConnection when it creates an instance of NetXAConnection. This is then passed on the underlying NetConnection constructor and is used to raise StatementEvents from any PreparedStatement that would be created from that NetConnection.- Parameters:
logWriter- LogWriter object associated with this connectionuser- user id for this connectionpassword- password for this connectiondataSource- The DataSource object passed from the ClientXAConnection object from which this constructor was calledrmId- The Resource manager ID for XA ConnectionsisXAConn- true if this is a XA connectioncpc- The ClientPooledConnection object from which this NetConnection constructor was called. This is used to pass StatementEvents back to the pooledConnection object- Throws:
SqlException
-
-
Method Detail
-
setCorrelatorToken
public void setCorrelatorToken(byte[] crttoken)
-
getNetConnection
public NetConnection getNetConnection()
Returns underlying net connection- Returns:
- NetConnection
-
-
DataMelt 3.0 © DataMelt by jWork.ORG