public class AgroalDataSource extends Object implements AgroalDataSource, org.springframework.beans.factory.InitializingBean
AgroalDataSource.FlushMode| Constructor and Description |
|---|
AgroalDataSource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, frompublic void afterPropertiesSet()
throws SQLException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanSQLExceptionpublic void setName(String name)
public void setImplementation(String name)
public void setMaxSize(int size)
public void setMinSize(int size)
public void setInitialSize(int size)
public void setAcquisitionTimeout(int timeout)
public void setForegroundValidationTimeout(int timeout)
public void setIdleTimeout(int timeout)
public void setLeakTimeout(int timeout)
public void setLifetimeTimeout(int timeout)
public void setValidationTimeout(int timeout)
public void setJtaTransactionIntegration(org.springframework.transaction.jta.JtaTransactionManager jtaPlatform)
public void setUrl(String url)
public void setDriverClass(Class<? extends DataSource> driver)
public void setDriverClassName(String driver)
public void setUsername(String username)
public void setPassword(String password)
public void setInitialSql(String initialSql)
public void setAutoCommit(boolean autoCommit)
public void setTrackResources(boolean track)
public void setRecoveryUsername(String username)
public void setRecoveryPassword(String password)
public AgroalDataSourceConfiguration getConfiguration()
getConfiguration in interface AgroalDataSourcepublic AgroalDataSourceMetrics getMetrics()
getMetrics in interface AgroalDataSourcepublic void setMetrics(boolean metrics)
public void flush(AgroalDataSource.FlushMode mode)
flush in interface AgroalDataSourcepublic List<AgroalPoolInterceptor> getPoolInterceptors()
getPoolInterceptors in interface AgroalDataSourcepublic void setPoolInterceptors(Collection<AgroalPoolInterceptor> interceptors)
setPoolInterceptors in interface AgroalDataSourcepublic void close()
close in interface AgroalDataSourceclose in interface AutoCloseablepublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.