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 ResourceAdapterprivate XAConnectionprivate EmbeddedXADataSourceInterfaceprivate XAResourceFields inherited from class 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) ResourceAdapterprotected XAResourceget XA Resource for this connection(package private) voidMake a new connection using the database name and set the connection in the databaseprotected voidsetXAResource(XAResource resource) SetXAResourceMethods inherited from class 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:
makeConnectionin 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.
-