@MBean @Description(value="Database accessed via a server-side ConnectionPoolDataSource") public class ConnectionPoolDataSourceDatabase extends CommonDataSourceDatabase<ConnectionPoolDataSource>
ConnectionPoolDataSource
.ID_MAX_SIZE
Constructor and Description |
---|
ConnectionPoolDataSourceDatabase() |
Modifier and Type | Method and Description |
---|---|
Connection |
connect(ConnectionPoolDataSource dataSource,
String password)
Connects to the database using the specified connection factory.
|
getConnectionSource, setLocation
assertInactive, checkDirty, clean, compareTo, decodePassword, equals, getId, getLocation, getPassword, getProperties, getUser, getWeight, hashCode, isActive, isDirty, isLocal, removeProperty, requiresAuthentication, setActive, setId, setLocal, setPassword, setProperty, setUser, setWeight, toString
public ConnectionPoolDataSourceDatabase()
public Connection connect(ConnectionPoolDataSource dataSource, String password) throws SQLException
dataSource
- a factory object for creating connectionspassword
- a decoded passwordSQLException
- if connection failsDatabase.connect(java.lang.Object, java.lang.String)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.