public class DataSourceDatabase extends CommonDataSourceDatabase<javax.sql.DataSource>
DataSource.| Constructor and Description |
|---|
DataSourceDatabase()
Constructs a new database described by a
DataSource. |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
connect(javax.sql.DataSource dataSource)
Connects to the database using the specified connection factory.
|
createConnectionFactory, getActiveMBean, getInactiveMBean, getName, setNamecheckDirty, clean, compareTo, equals, getId, getPassword, getProperties, getUser, getWeight, hashCode, isDirty, isLocal, removeProperty, setId, setLocal, setPassword, setProperties, setProperty, setUser, setWeight, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitremoveProperty, setLocal, setPassword, setProperty, setUser, setWeightgetId, getPassword, getProperties, getUser, getWeight, isLocalpublic DataSourceDatabase()
DataSource.public java.sql.Connection connect(javax.sql.DataSource dataSource) throws java.sql.SQLException
DatabasedataSource - A DataSourcejava.sql.SQLException - if a database connection could not be madeDatabase.connect(Object)