This datasource is suitable for a client/server use of Derby, running on full Java SE 6 and higher, corresponding to JDBC 4.0 and higher.
An XADataSource is a factory for XAConnection objects. It represents a RM in a DTP environment. An object that implements the XADataSource interface is typically registered with a JNDI service provider.ClientXADataSource automatically supports the correct JDBC specification version for the Java Virtual Machine's environment.
ClientXADataSource is serializable and referenceable.
See ClientDataSource for DataSource properties.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ShardingKeyBuilder | createShardingKeyBuilder()
Overrides default org. |
| public XAConnection | getXAConnection()
Implements javax. |
| public XAConnection | getXAConnection(String
the database user on whose behalf the connection is being made user, String the user's password password)Implements javax. |
| className__ | back to summary |
|---|---|
| public static final String className__ | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| ClientXADataSource | back to summary |
|---|---|
| public ClientXADataSource() | |
| createShardingKeyBuilder | back to summary |
|---|---|
| public ShardingKeyBuilder createShardingKeyBuilder() throws SQLException Overrides default org. Added by Java 9
| |
| getXAConnection | back to summary |
|---|---|
| public 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 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.
| |