com.github.javaclub.cdl.client.matrix.jdbc.adapter.AbstractDataSourceAdapter Maven / Gradle / Ivy
package com.github.javaclub.cdl.client.matrix.jdbc.adapter;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.logging.Logger;
import com.github.javaclub.cdl.client.matrix.jdbc.unsupported.AbstractUnsupportedOperationDataSource;
public abstract class AbstractDataSourceAdapter extends AbstractUnsupportedOperationDataSource {
private PrintWriter logWriter = new PrintWriter(System.out);
@Override
public final PrintWriter getLogWriter() throws SQLException {
return logWriter;
}
@Override
public final void setLogWriter(final PrintWriter out) throws SQLException {
this.logWriter = out;
}
@Override
public final Logger getParentLogger() throws SQLFeatureNotSupportedException {
return Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy