public class NetXAConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NetConnection |
netCon |
Constructor and Description |
---|
NetXAConnection(NetLogWriter netLogWriter,
java.lang.String user,
java.lang.String password,
ClientBaseDataSourceRoot dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc)
The construcor for the NetXAConnection.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkPlatformVersion() |
protected NetConnection |
createNetConnection(NetLogWriter netLogWriter,
java.lang.String user,
java.lang.String password,
ClientBaseDataSourceRoot dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc)
Creates NetConnection for the supported version of jdbc.
|
protected void |
finalize() |
byte[] |
getCorrelatorToken() |
NetConnection |
getNetConnection()
Returns underlying net connection
|
int |
getPort(javax.transaction.xa.Xid xid) |
byte[] |
getUOWID(javax.transaction.xa.Xid xid) |
void |
readCommit() |
void |
readLocalXACommit_() |
void |
readLocalXARollback_() |
void |
readLocalXAStart_() |
void |
readRollback() |
void |
setCorrelatorToken(byte[] crttoken) |
(package private) void |
setNetXAResource(NetXAResource xares) |
void |
writeCommit() |
void |
writeLocalXACommit_() |
void |
writeLocalXARollback_() |
void |
writeLocalXAStart_() |
void |
writeRollback() |
void |
writeTransactionStart(Statement statement) |
private NetConnection netCon
public NetXAConnection(NetLogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSourceRoot dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
this
from 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.netLogWriter
- NetLogWriter 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
objectSqlException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setCorrelatorToken(byte[] crttoken)
public byte[] getCorrelatorToken()
void setNetXAResource(NetXAResource xares)
public void writeLocalXAStart_() throws SqlException
SqlException
public void readLocalXAStart_() throws SqlException
SqlException
public void writeLocalXACommit_() throws SqlException
SqlException
public void readLocalXACommit_() throws SqlException
SqlException
public void writeLocalXARollback_() throws SqlException
SqlException
public void readLocalXARollback_() throws SqlException
SqlException
public void writeTransactionStart(Statement statement) throws SqlException
SqlException
public byte[] getUOWID(javax.transaction.xa.Xid xid)
public int getPort(javax.transaction.xa.Xid xid)
public void writeCommit() throws SqlException
SqlException
public void readCommit() throws SqlException
SqlException
public void writeRollback() throws SqlException
SqlException
public void readRollback() throws SqlException
SqlException
public NetConnection getNetConnection()
private void checkPlatformVersion() throws SqlException
SqlException
protected NetConnection createNetConnection(NetLogWriter netLogWriter, java.lang.String user, java.lang.String password, ClientBaseDataSourceRoot dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
netLogWriter
- NetLogWriter 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
objectSqlException
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.