@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.
|
createConnectionSource, 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 Connection connect(DataSource dataSource, String password) throws SQLException
dataSource
- a factory object for creating connectionsSQLException
- if connection failsDatabase.connect(java.lang.Object, java.lang.String)
Copyright © 2004–2013 Paul Ferraro. All rights reserved.