public class XADataSourceDatabase extends CommonDataSourceDatabase<javax.sql.XADataSource>
XADataSource
.Constructor and Description |
---|
XADataSourceDatabase()
Constructs a new database described by an
XADataSource . |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
connect(javax.sql.XADataSource dataSource)
Connects to the database using the specified connection factory.
|
createConnectionFactory, getActiveMBean, getInactiveMBean, getName, setName
checkDirty, clean, compareTo, equals, getId, getPassword, getProperties, getUser, getWeight, hashCode, isDirty, isLocal, removeProperty, setId, setLocal, setPassword, setProperties, setProperty, setUser, setWeight, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
removeProperty, setLocal, setPassword, setProperty, setUser, setWeight
getId, getPassword, getProperties, getUser, getWeight, isLocal
public XADataSourceDatabase()
XADataSource
.public java.sql.Connection connect(javax.sql.XADataSource dataSource) throws java.sql.SQLException
Database
dataSource
- a factory object for creating connectionsjava.sql.SQLException
- if connection failsDatabase.connect(java.lang.Object)