@MBean @Description(value="Database accessed via DriverManager") public class DriverDatabase extends AbstractDatabase<Driver>
ID_MAX_SIZE| Constructor and Description |
|---|
DriverDatabase() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connect(Driver driver,
String password)
Connects to the database using the specified connection factory.
|
Driver |
getConnectionSource()
Returns a connection source for this database.
|
String |
parseVendor() |
void |
setLocation(String location) |
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, toStringpublic DriverDatabase()
@ManagedAttribute @Description(value="JDBC url") public void setLocation(String location)
setLocation in class AbstractDatabase<Driver>AbstractDatabase.setLocation(java.lang.String)public Connection connect(Driver driver, String password) throws SQLException
driver - a factory object for creating connectionspassword - a decoded passwordSQLException - if connection failsDatabase.connect(java.lang.Object, java.lang.String)public Driver getConnectionSource()
DatabaseDatabase.getConnectionSource()public String parseVendor()
Copyright © 2004–2014 Paul Ferraro. All rights reserved.