Package org.apache.derby.impl.drda
Class XADatabase
java.lang.Object
org.apache.derby.impl.drda.Database
org.apache.derby.impl.drda.XADatabase
This class contains database state specific to XA,
specifically the XAResource that will be used for XA commands.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResourceAdapter
private XAConnection
private EmbeddedXADataSourceInterface
private XAResource
Fields inherited from class org.apache.derby.impl.drda.Database
accessCount, attrString, byteOrder, ccsidDBC, ccsidDBCEncoding, ccsidMBC, ccsidMBCEncoding, ccsidSBC, ccsidSBCEncoding, crrtkn, decryptedPassword, decryptedUserId, defaultStatement, password, passwordSubstitute, rdbAllowUpdates, RDBUPDRM_sent, secTokenIn, secTokenOut, securityMechanism, sendTRGDFTRT, typDefNam, userId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ResourceAdapter
protected XAResource
get XA Resource for this connection(package private) void
Make a new connection using the database name and set the connection in the databaseprotected void
setXAResource
(XAResource resource) SetXAResourceMethods inherited from class org.apache.derby.impl.drda.Database
appendAttrString, buildRuntimeInfo, close, commit, getConnection, getCurrentStatement, getDatabaseName, getDefaultStatement, getDefaultStatement, getDRDAStatement, getPiggyBackedSessionData, getPrepareIsolation, getShortDbName, makeDummyConnection, newDRDAStatement, removeStatement, reset, rollback, setConnection, setCurrentStatement, setDatabaseName, setDrdaID, setPrepareIsolation, storeStatement, supportsLocator
-
Field Details
-
xaDataSource
-
xaResource
-
xaConnection
-
ra
-
-
Constructor Details
-
XADatabase
XADatabase(String dbName)
-
-
Method Details
-
makeConnection
Make a new connection using the database name and set the connection in the database- Overrides:
makeConnection
in classDatabase
- Parameters:
p
- Properties for connection attributes to pass to connect- Throws:
SQLException
-
setXAResource
SetXAResource- Parameters:
resource
- XAResource for this connection
-
getXAResource
get XA Resource for this connection -
getResourceAdapter
ResourceAdapter getResourceAdapter()- Returns:
- The ResourceAdapter instance for the underlying database.
-