Package org.hibernate.testing.jdbc
Class DataSourceStub
java.lang.Object
org.hibernate.testing.jdbc.DataSourceStub
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,DataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(String username, String password) getId()
int
boolean
isWrapperFor
(Class<?> iface) void
setLoginTimeout
(int seconds) void
setLogWriter
(PrintWriter out) toString()
<T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
DataSourceStub
-
-
Method Details
-
getId
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
-
getLogWriter
- Specified by:
getLogWriter
in interfaceCommonDataSource
- Specified by:
getLogWriter
in interfaceDataSource
-
setLogWriter
- Specified by:
setLogWriter
in interfaceCommonDataSource
- Specified by:
setLogWriter
in interfaceDataSource
-
setLoginTimeout
public void setLoginTimeout(int seconds) - Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Specified by:
setLoginTimeout
in interfaceDataSource
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Specified by:
getLoginTimeout
in interfaceDataSource
-
getParentLogger
- Specified by:
getParentLogger
in interfaceCommonDataSource
-
unwrap
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
-
toString
-