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 DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void setLoginTimeout(int loginTimeout)
setLoginTimeout in interface CommonDataSourcepublic int getLoginTimeout()
getLoginTimeout in interface CommonDataSourcepublic void setLogWriter(PrintWriter logWriter)
setLogWriter in interface CommonDataSourcepublic PrintWriter getLogWriter()
getLogWriter in interface CommonDataSourcepublic 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 WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic Logger getParentLogger()
getParentLogger in interface CommonDataSourceCopyright © 2009–2021 MyBatis.org. All rights reserved.