@MBean @Description(value="Database accessed via a DataSource") public class DataSourceDatabase extends CommonDataSourceDatabase<DataSource>
DataSource.ID_MAX_SIZE| Constructor and Description |
|---|
DataSourceDatabase() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connect(DataSource dataSource,
String password)
Connects to the database using the specified connection factory.
|
getConnectionSource, setLocationassertInactive, checkDirty, clean, compareTo, decodePassword, equals, getId, getLocation, getPassword, getProperties, getUser, getWeight, hashCode, isActive, isDirty, isLocal, removeProperty, requiresAuthentication, setActive, setId, setLocal, setPassword, setProperty, setUser, setWeight, toStringpublic DataSourceDatabase()
public Connection connect(DataSource 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.