BasicEmbeddedXADataSource40 is similar to
EmbeddedXADataSource40, except that it does not support JNDI
naming, i.e. it does not implement javax.naming.Referenceable.
EmbeddedXADataSource40
| Modifier and Type | Field and Description |
|---|---|
| private transient ResourceAdapter | ra
link to the database |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private XAConnection | Returns: An XA connection to the databaseThe resource adapter for this database ra, String The user name user, String The password password, boolean @ requestPassword)false if original call is from a
no-argument constructor, otherwise trueInstantiate and return an EmbedXAConnection from this instance of EmbeddedXADataSource. |
| public ResourceAdapter | Returns: The ResourceAdapter instance for the underlying databaseImplements org. |
| public final XAConnection | getXAConnection()
Implements javax. |
| public final XAConnection | getXAConnection(String
the database user on whose behalf the connection is being made user, String the user's password password)Implements javax. |
| protected void | update()
Overrides org. jdbcurl from attributes set.
|
| ra | back to summary |
|---|---|
| private transient ResourceAdapter ra link to the database | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| BasicEmbeddedXADataSource40 | back to summary |
|---|---|
| public BasicEmbeddedXADataSource40() Constructs a basic embedded XA data source. See the class Javadoc. | |
| createXAConnection | back to summary |
|---|---|
| private XAConnection createXAConnection(ResourceAdapter ra, String user, String password, boolean requestPassword) throws SQLException Instantiate and return an EmbedXAConnection from this instance of EmbeddedXADataSource. Minion method.
| |
| getResourceAdapter | back to summary |
|---|---|
| public ResourceAdapter getResourceAdapter() Implements org.
| |
| getXAConnection | back to summary |
|---|---|
| public final XAConnection getXAConnection() throws SQLException Implements javax. Doc from javax. Attempts to establish a physical database connection that can be used in a distributed transaction.
| |
| getXAConnection | back to summary |
|---|---|
| public final XAConnection getXAConnection(String user, String password) throws SQLException Implements javax. Doc from javax. Attempts to establish a physical database connection, using the given user name and password. The connection that is returned is one that can be used in a distributed transaction.
| |
| update | back to summary |
|---|---|
| protected void update() Overrides org. Doc from org. Update
Also clears
| |