public class DriverDatabase extends AbstractDatabase<java.sql.Driver> implements InactiveDriverDatabaseMBean
| Constructor and Description |
|---|
DriverDatabase() |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
connect(java.sql.Driver driver)
Connects to the database using the specified connection factory.
|
java.sql.Driver |
createConnectionFactory()
Factory method for creating a connection factory object for this database.
|
javax.management.DynamicMBean |
getActiveMBean() |
java.lang.String |
getDriver()
Returns the driver class name for this database.
|
javax.management.DynamicMBean |
getInactiveMBean() |
java.lang.String |
getUrl()
Returns the url for this database
|
void |
setDriver(java.lang.String driver)
Set the driver class for this database.
|
void |
setUrl(java.lang.String url)
Set the url for this database
|
checkDirty, clean, compareTo, equals, getId, getPassword, getProperties, getUser, getWeight, hashCode, isDirty, isLocal, removeProperty, setId, setLocal, setPassword, setProperties, setProperty, setUser, setWeight, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitremoveProperty, setLocal, setPassword, setProperty, setUser, setWeightgetId, getPassword, getProperties, getUser, getWeight, isLocalpublic DriverDatabase()
public java.lang.String getUrl()
ActiveDriverDatabaseMBeangetUrl in interface ActiveDriverDatabaseMBeanActiveDriverDatabaseMBean.getUrl()public void setUrl(java.lang.String url)
InactiveDriverDatabaseMBeansetUrl in interface InactiveDriverDatabaseMBeanurl - a database urlInactiveDriverDatabaseMBean.setUrl(java.lang.String)public java.lang.String getDriver()
ActiveDriverDatabaseMBeangetDriver in interface ActiveDriverDatabaseMBeanActiveDriverDatabaseMBean.getDriver()public void setDriver(java.lang.String driver)
InactiveDriverDatabaseMBeansetDriver in interface InactiveDriverDatabaseMBeandriver - the driver class nameInactiveDriverDatabaseMBean.setDriver(java.lang.String)public java.sql.Connection connect(java.sql.Driver driver) throws java.sql.SQLException
Databaseconnect in interface Database<java.sql.Driver>driver - a factory object for creating connectionsjava.sql.SQLException - if connection failsDatabase.connect(java.lang.Object)public java.sql.Driver createConnectionFactory()
DatabasecreateConnectionFactory in interface Database<java.sql.Driver>Database.createConnectionFactory()public javax.management.DynamicMBean getActiveMBean()
getActiveMBean in interface Database<java.sql.Driver>Database.getActiveMBean()public javax.management.DynamicMBean getInactiveMBean()
getInactiveMBean in interface Database<java.sql.Driver>Database.getInactiveMBean()