public class JDBCXADataSource extends JDBCCommonDataSource implements javax.sql.XADataSource, java.io.Serializable, javax.naming.Referenceable, javax.sql.CommonDataSource
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
JDBCXADataSource() |
Modifier and Type | Method and Description |
---|---|
void |
addResource(javax.transaction.xa.Xid xid,
JDBCXAResource xaResource) |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object.
|
javax.sql.XAConnection |
getXAConnection()
Get new XAConnection connection, to be managed by a connection manager.
|
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Gets a new XAConnection after validating the given username
and password.
|
JDBCXAResource |
removeResource(javax.transaction.xa.Xid xid) |
getDatabase, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getNetworkProtocol, getParentLogger, getServerName, getUrl, getUser, setDatabase, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setNetworkProtocol, setPassword, setProperties, setServerName, setUrl, setUser
public JDBCXADataSource() throws SQLException
SQLException
public javax.sql.XAConnection getXAConnection() throws SQLException
getXAConnection
in interface javax.sql.XADataSource
SQLException
public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws SQLException
getXAConnection
in interface javax.sql.XADataSource
user
- String which must match the 'user' configured for this
JDBCXADataSource.password
- String which must match the 'password' configured
for this JDBCXADataSource.SQLException
getXAConnection()
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- If a naming exception was encountered
while retrieving the reference.public void addResource(javax.transaction.xa.Xid xid, JDBCXAResource xaResource)
public JDBCXAResource removeResource(javax.transaction.xa.Xid xid)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.