public class JdbcDriverSource extends Object implements DriverSource
Modifier and Type | Field and Description |
---|---|
protected Properties |
mvProperties |
PROP_DATA_LOCATION, PROP_DRIVER_CLASSNAME, PROP_ENABLE_DEBUG, PROP_PASSWORD, PROP_URL, PROP_USERNAME
Constructor and Description |
---|
JdbcDriverSource() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
ClassLoader |
getDriverClassLoader() |
String |
getDriverClassName() |
String |
getPassword() |
protected Properties |
getProperties() |
String |
getProperty(String propName) |
String |
getUrl() |
String |
getUsername() |
boolean |
isDebugEnabled() |
void |
setDebugEnabled(boolean devMode) |
void |
setDriverClassLoader(ClassLoader driverClassLoader) |
void |
setDriverClassName(String driverClassName) |
void |
setPassword(String password) |
void |
setProperty(String propName,
String value) |
void |
setUrl(String jdbcUrl) |
void |
setUsername(String userName) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInfo, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
protected Properties mvProperties
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public ClassLoader getDriverClassLoader()
public void setDriverClassLoader(ClassLoader driverClassLoader)
protected Properties getProperties()
public String getProperty(String propName)
getProperty
in interface DbSettings
public void setProperty(String propName, String value)
setProperty
in interface DbSettings
public String getUrl()
getUrl
in interface DbSettings
public void setUrl(String jdbcUrl)
setUrl
in interface DbSettings
public String getUsername()
getUsername
in interface DbSettings
public void setUsername(String userName)
setUsername
in interface DbSettings
public String getPassword()
getPassword
in interface DbSettings
public void setPassword(String password)
setPassword
in interface DbSettings
public boolean isDebugEnabled()
isDebugEnabled
in interface DbSettings
public void setDebugEnabled(boolean devMode)
setDebugEnabled
in interface DbSettings
public String getDriverClassName()
getDriverClassName
in interface DbSettings
public void setDriverClassName(String driverClassName)
setDriverClassName
in interface DbSettings
Copyright © 2017. All rights reserved.