Class UnpooledDataSource
java.lang.Object
org.apache.ibatis.datasource.unpooled.UnpooledDataSource
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,DataSource
public class UnpooledDataSource extends Object implements DataSource
- Author:
- Clinton Begin, Eduardo Macarron
-
Constructor Summary
Constructors Constructor Description UnpooledDataSource()
UnpooledDataSource(ClassLoader driverClassLoader, String driver, String url, String username, String password)
UnpooledDataSource(ClassLoader driverClassLoader, String driver, String url, Properties driverProperties)
UnpooledDataSource(String driver, String url, String username, String password)
UnpooledDataSource(String driver, String url, Properties driverProperties)
-
Method Summary
-
Constructor Details
-
UnpooledDataSource
public UnpooledDataSource() -
UnpooledDataSource
-
UnpooledDataSource
-
UnpooledDataSource
public UnpooledDataSource(ClassLoader driverClassLoader, String driver, String url, String username, String password) -
UnpooledDataSource
public UnpooledDataSource(ClassLoader driverClassLoader, String driver, String url, Properties driverProperties)
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
setLoginTimeout
public void setLoginTimeout(int loginTimeout)- Specified by:
setLoginTimeout
in interfaceCommonDataSource
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeout
in interfaceCommonDataSource
-
setLogWriter
- Specified by:
setLogWriter
in interfaceCommonDataSource
-
getLogWriter
- Specified by:
getLogWriter
in interfaceCommonDataSource
-
getDriverClassLoader
-
setDriverClassLoader
-
getDriverProperties
-
setDriverProperties
-
getDriver
-
setDriver
-
getUrl
-
setUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
isAutoCommit
-
setAutoCommit
-
getDefaultTransactionIsolationLevel
-
setDefaultTransactionIsolationLevel
-
getDefaultNetworkTimeout
Gets the default network timeout.- Returns:
- the default network timeout
- Since:
- 3.5.2
-
setDefaultNetworkTimeout
Sets the default network timeout value to wait for the database operation to complete. SeeConnection.setNetworkTimeout(java.util.concurrent.Executor, int)
- Parameters:
defaultNetworkTimeout
- The time in milliseconds to wait for the database operation to complete.- Since:
- 3.5.2
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLogger
in interfaceCommonDataSource
-