public class ProxyDataSource extends ProxyLogicSupport implements DataSource, Closeable
DataSource with QueryExecutionListener.COMMON_METHOD_NAMES| Constructor and Description |
|---|
ProxyDataSource() |
ProxyDataSource(DataSource dataSource) |
handleCommonMethod, isCommonMethod, proceedExecution, proceedMethodExecutionpublic ProxyDataSource()
public ProxyDataSource(DataSource dataSource)
public void setDataSource(DataSource dataSource)
public PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionprotected Object performProxyLogic(Object proxy, Method method, Object[] args, MethodExecutionContext methodContext) throws Throwable
performProxyLogic in class ProxyLogicSupportThrowablepublic void setLogWriter(PrintWriter printWriter) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int i)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLException@IgnoreJRERequirement public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void setListener(QueryExecutionListener listener)
public void addListener(QueryExecutionListener listener)
public void setDataSourceName(String dataSourceName)
public String getDataSourceName()
public ConnectionIdManager getConnectionIdManager()
public void setConnectionIdManager(ConnectionIdManager connectionIdManager)
public ProxyConfig getProxyConfig()
public void setProxyConfig(ProxyConfig proxyConfig)
public DataSource getDataSource()
DataSource.Copyright © 2025. All rights reserved.