public class ConnectionPoolDataSourceDatabase extends CommonDataSourceDatabase<javax.sql.ConnectionPoolDataSource>
ConnectionPoolDataSource
.Constructor and Description |
---|
ConnectionPoolDataSourceDatabase()
Constructs a new database described by a
ConnectionPoolDataSource . |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
connect(javax.sql.ConnectionPoolDataSource 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 ConnectionPoolDataSourceDatabase()
ConnectionPoolDataSource
.public java.sql.Connection connect(javax.sql.ConnectionPoolDataSource dataSource) throws java.sql.SQLException
Database
dataSource
- a factory object for creating connectionsjava.sql.SQLException
- if connection failsDatabase.connect(java.lang.Object)