Top Description Fields Constructors Methods
org.apache.derby.impl.drda

pack-priv Class XADatabase

extends Database
Class Inheritance
Imports
java.sql.SQLException, java.util.Properties, javax.sql.XAConnection, javax.transaction.xa.XAResource, org.apache.derby.shared.common.error.ExceptionSeverity, org.apache.derby.iapi.jdbc.EngineConnection, .ResourceAdapter, .EmbeddedXADataSourceInterface, org.apache.derby.shared.common.reference.MessageId, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.shared.common.info.JVMInfo

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

Field Summary

Modifier and TypeField and Description
private ResourceAdapter
private XAConnection
private EmbeddedXADataSourceInterface
private XAResource
Inherited from org.apache.derby.impl.drda.Database:
accessCountattrStringbyteOrderccsidDBCccsidDBCEncodingccsidMBCccsidMBCEncodingccsidSBCccsidSBCEncodingcrrtkndecryptedPassworddecryptedUserIddefaultStatementpasswordpasswordSubstituterdbAllowUpdatesRDBUPDRM_sentsecTokenInsecTokenOutsecurityMechanismsendTRGDFTRTtypDefNamuserId

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv ResourceAdapter

Returns:

The ResourceAdapter instance for the underlying database.
getResourceAdapter
()

protected XAResource
getXAResource()

get XA Resource for this connection

pack-priv synchronized void
makeConnection(Properties
Properties for connection attributes to pass to connect
p
)

Overrides org.apache.derby.impl.drda.Database.makeConnection.

Make a new connection using the database name and set the connection in the database
protected void
setXAResource(XAResource
XAResource for this connection
resource
)

SetXAResource

Inherited from org.apache.derby.impl.drda.Database:
appendAttrStringbuildRuntimeInfoclosecommitgetConnectiongetCurrentStatementgetDatabaseNamegetDefaultStatementgetDefaultStatementgetDRDAStatementgetPiggyBackedSessionDatagetPrepareIsolationgetShortDbNamemakeDummyConnectionnewDRDAStatementremoveStatementresetrollbacksetConnectionsetCurrentStatementsetDatabaseNamesetDrdaIDsetPrepareIsolationstoreStatementsupportsLocator

Field Detail

raback to summary
private ResourceAdapter ra
xaConnectionback to summary
private XAConnection xaConnection
xaDataSourceback to summary
private EmbeddedXADataSourceInterface xaDataSource
xaResourceback to summary
private XAResource xaResource

Constructor Detail

XADatabaseback to summary
pack-priv XADatabase(String dbName)

Method Detail

getResourceAdapterback to summary
pack-priv ResourceAdapter getResourceAdapter()
Returns:ResourceAdapter

The ResourceAdapter instance for the underlying database.

getXAResourceback to summary
protected XAResource getXAResource()

get XA Resource for this connection

makeConnectionback to summary
pack-priv synchronized void makeConnection(Properties p) throws SQLException

Overrides org.apache.derby.impl.drda.Database.makeConnection.

Make a new connection using the database name and set the connection in the database

Parameters
p:Properties

Doc from org.apache.derby.impl.drda.Database.makeConnection.

Properties for connection attributes to pass to connect

Annotations
@Override
setXAResourceback to summary
protected void setXAResource(XAResource resource)

SetXAResource

Parameters
resource:XAResource

XAResource for this connection