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, 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 DataSourceDatabase()
DataSource
.public java.sql.Connection connect(javax.sql.DataSource dataSource) throws java.sql.SQLException
Database
dataSource
- A DataSourcejava.sql.SQLException
- if a database connection could not be madeDatabase.connect(Object)