public class UnpooledDataSource extends Object implements DataSource
Constructor and Description |
---|
UnpooledDataSource() |
UnpooledDataSource(ClassLoader driverClassLoader,
String driver,
String url,
Properties driverProperties) |
UnpooledDataSource(ClassLoader driverClassLoader,
String driver,
String url,
String username,
String password) |
UnpooledDataSource(String driver,
String url,
Properties driverProperties) |
UnpooledDataSource(String driver,
String url,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
Integer |
getDefaultTransactionIsolationLevel() |
String |
getDriver() |
ClassLoader |
getDriverClassLoader() |
Properties |
getDriverProperties() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getPassword() |
String |
getUrl() |
String |
getUsername() |
Boolean |
isAutoCommit() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setAutoCommit(Boolean autoCommit) |
void |
setDefaultTransactionIsolationLevel(Integer defaultTransactionIsolationLevel) |
void |
setDriver(String driver) |
void |
setDriverClassLoader(ClassLoader driverClassLoader) |
void |
setDriverProperties(Properties driverProperties) |
void |
setLoginTimeout(int loginTimeout) |
void |
setLogWriter(PrintWriter logWriter) |
void |
setPassword(String password) |
void |
setUrl(String url) |
void |
setUsername(String username) |
<T> T |
unwrap(Class<T> iface) |
public UnpooledDataSource()
public UnpooledDataSource(String driver, String url, String username, String password)
public UnpooledDataSource(String driver, String url, Properties driverProperties)
public UnpooledDataSource(ClassLoader driverClassLoader, String driver, String url, String username, String password)
public UnpooledDataSource(ClassLoader driverClassLoader, String driver, String url, Properties driverProperties)
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 int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int loginTimeout) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter logWriter) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public ClassLoader getDriverClassLoader()
public void setDriverClassLoader(ClassLoader driverClassLoader)
public Properties getDriverProperties()
public void setDriverProperties(Properties driverProperties)
public String getDriver()
public void setDriver(String driver)
public String getUrl()
public void setUrl(String url)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public Boolean isAutoCommit()
public void setAutoCommit(Boolean autoCommit)
public Integer getDefaultTransactionIsolationLevel()
public void setDefaultTransactionIsolationLevel(Integer defaultTransactionIsolationLevel)
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.