public class NetXAConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NetConnection |
netCon |
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.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkPlatformVersion() |
private NetConnection |
createNetConnection(LogWriter logWriter,
java.lang.String user,
java.lang.String password,
BasicClientDataSource40 dataSource,
int rmId,
boolean isXAConn,
ClientPooledConnection cpc)
Creates NetConnection for the supported version of jdbc.
|
NetConnection |
getNetConnection()
Returns underlying net connection
|
(package private) void |
readCommit() |
private void |
readLocalXACommit_() |
private void |
readLocalXARollback_() |
(package private) void |
readRollback() |
void |
setCorrelatorToken(byte[] crttoken) |
(package private) void |
setNetXAResource(NetXAResource xares) |
(package private) void |
writeCommit() |
private void |
writeLocalXACommit_() |
private void |
writeLocalXARollback_() |
(package private) void |
writeRollback() |
(package private) void |
writeTransactionStart(ClientStatement statement) |
private NetConnection netCon
public NetXAConnection(LogWriter logWriter, java.lang.String user, java.lang.String password, BasicClientDataSource40 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.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
objectSqlException
public void setCorrelatorToken(byte[] crttoken)
void setNetXAResource(NetXAResource xares)
private void writeLocalXACommit_() throws SqlException
SqlException
private void readLocalXACommit_() throws SqlException
SqlException
private void writeLocalXARollback_() throws SqlException
SqlException
private void readLocalXARollback_() throws SqlException
SqlException
void writeTransactionStart(ClientStatement statement) throws SqlException
SqlException
void writeCommit() throws SqlException
SqlException
void readCommit() throws SqlException
SqlException
void writeRollback() throws SqlException
SqlException
void readRollback() throws SqlException
SqlException
public NetConnection getNetConnection()
private void checkPlatformVersion() throws SqlException
SqlException
private NetConnection createNetConnection(LogWriter logWriter, java.lang.String user, java.lang.String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
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
objectSqlException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.