public class UnconfiguredDataSource extends Object implements io.agroal.api.AgroalDataSource
| Constructor and Description |
|---|
UnconfiguredDataSource(String errorMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush(io.agroal.api.AgroalDataSource.FlushMode mode) |
io.agroal.api.configuration.AgroalDataSourceConfiguration |
getConfiguration() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
io.agroal.api.AgroalDataSourceMetrics |
getMetrics() |
Logger |
getParentLogger() |
List<io.agroal.api.AgroalPoolInterceptor> |
getPoolInterceptors() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setPoolInterceptors(Collection<io.agroal.api.AgroalPoolInterceptor> interceptors) |
void |
throwException() |
<T> T |
unwrap(Class<T> iface) |
public UnconfiguredDataSource(String errorMessage)
public void throwException()
public io.agroal.api.configuration.AgroalDataSourceConfiguration getConfiguration()
getConfiguration in interface io.agroal.api.AgroalDataSourcepublic io.agroal.api.AgroalDataSourceMetrics getMetrics()
getMetrics in interface io.agroal.api.AgroalDataSourcepublic void flush(io.agroal.api.AgroalDataSource.FlushMode mode)
flush in interface io.agroal.api.AgroalDataSourcepublic void setPoolInterceptors(Collection<io.agroal.api.AgroalPoolInterceptor> interceptors)
setPoolInterceptors in interface io.agroal.api.AgroalDataSourcepublic List<io.agroal.api.AgroalPoolInterceptor> getPoolInterceptors()
getPoolInterceptors in interface io.agroal.api.AgroalDataSourcepublic void close()
close in interface io.agroal.api.AgroalDataSourceclose in interface AutoCloseablepublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.