org.apache.derby.impl.drda
Class XADatabase

java.lang.Object
  extended by org.apache.derby.impl.drda.Database
      extended by org.apache.derby.impl.drda.XADatabase

 class XADatabase
extends Database

This class contains database state specific to XA, specifically the XAResource that will be used for XA commands.


Field Summary
private  ResourceAdapter ra
           
private  javax.sql.XAConnection xaConnection
           
private  EmbeddedXADataSource xaDataSource
           
private  javax.transaction.xa.XAResource xaResource
           
 
Fields inherited from class org.apache.derby.impl.drda.Database
accessCount, attrString, byteOrder, ccsidDBC, ccsidDBCEncoding, ccsidMBC, ccsidMBCEncoding, ccsidSBC, ccsidSBCEncoding, crrtkn, dbName, decryptedPassword, decryptedUserId, defaultStatement, password, passwordSubstitute, rdbAllowUpdates, RDBUPDRM_sent, secTokenIn, secTokenOut, securityMechanism, sendTRGDFTRT, shortDbName, typDefNam, userId
 
Constructor Summary
XADatabase(java.lang.String dbName)
           
 
Method Summary
(package private)  ResourceAdapter getResourceAdapter()
           
protected  javax.transaction.xa.XAResource getXAResource()
          get XA Resource for this connection
(package private)  void makeConnection(java.util.Properties p)
          Make a new connection using the database name and set the connection in the database
protected  void setXAResource(javax.transaction.xa.XAResource resource)
          SetXAResource
 
Methods inherited from class org.apache.derby.impl.drda.Database
appendAttrString, buildRuntimeInfo, close, commit, getConnection, getCurrentStatement, getDefaultStatement, getDefaultStatement, getDRDAStatement, getPiggyBackedSessionData, getPrepareIsolation, makeDummyConnection, newDRDAStatement, removeStatement, reset, rollback, setConnection, setCurrentStatement, setDatabaseName, setDrdaID, setPrepareIsolation, storeStatement, supportsLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xaDataSource

private EmbeddedXADataSource xaDataSource

xaResource

private javax.transaction.xa.XAResource xaResource

xaConnection

private javax.sql.XAConnection xaConnection

ra

private ResourceAdapter ra
Constructor Detail

XADatabase

XADatabase(java.lang.String dbName)
Method Detail

makeConnection

void makeConnection(java.util.Properties p)
              throws java.sql.SQLException
Make a new connection using the database name and set the connection in the database

Overrides:
makeConnection in class Database
Parameters:
p - Properties for connection attributes to pass to connect
Throws:
java.sql.SQLException

setXAResource

protected void setXAResource(javax.transaction.xa.XAResource resource)
SetXAResource

Parameters:
resource - XAResource for this connection

getXAResource

protected javax.transaction.xa.XAResource getXAResource()
get XA Resource for this connection


getResourceAdapter

ResourceAdapter getResourceAdapter()
Returns:
The ResourceAdapter instance for the underlying database.

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.