Package io.agroal.test
Interface MockXADataSource
- All Superinterfaces:
CommonDataSource,DataSource,MockDataSource,Wrapper,XADataSource
- All Known Implementing Classes:
MockXADataSource.Empty
- Author:
- Luis Barreiro
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault intdefault PrintWriterdefault XAConnectiondefault XAConnectiongetXAConnection(String user, String password) default voidsetLoginTimeout(int seconds) default voidsetLogWriter(PrintWriter out) Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilderMethods inherited from interface io.agroal.test.MockDataSource
getConnection, getConnection, getParentLogger, isWrapperFor, unwrapMethods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder
-
Method Details
-
getXAConnection
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getXAConnection
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Specified by:
getLogWriterin interfaceMockDataSource- Specified by:
getLogWriterin interfaceXADataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Specified by:
setLogWriterin interfaceMockDataSource- Specified by:
setLogWriterin interfaceXADataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Specified by:
getLoginTimeoutin interfaceMockDataSource- Specified by:
getLoginTimeoutin interfaceXADataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Specified by:
setLoginTimeoutin interfaceMockDataSource- Specified by:
setLoginTimeoutin interfaceXADataSource- Throws:
SQLException
-