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) |
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 void setLoginTimeout(int loginTimeout)
setLoginTimeout
in interface CommonDataSource
public int getLoginTimeout()
getLoginTimeout
in interface CommonDataSource
public void setLogWriter(PrintWriter logWriter)
setLogWriter
in interface CommonDataSource
public PrintWriter getLogWriter()
getLogWriter
in interface CommonDataSource
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 Integer getDefaultNetworkTimeout()
public void setDefaultNetworkTimeout(Integer defaultNetworkTimeout)
Connection.setNetworkTimeout(java.util.concurrent.Executor, int)
defaultNetworkTimeout
- The time in milliseconds to wait for the database operation to complete.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
public Logger getParentLogger()
getParentLogger
in interface CommonDataSource
Copyright © 2009–2021 MyBatis.org. All rights reserved.