package kr.debop4j.data.ogm.test.utils.jpa;
import lombok.extern.slf4j.Slf4j;
import javax.sql.DataSource;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.logging.Logger;
/**
* 테스트를 목적으로 아무런 작업도 하지 않는 Database 를 표현합니다.
*
* @author 배성혁 ( sunghyouk.bae@gmail.com )
* @since 13. 4. 12. 오전 11:42
*/
@Slf4j
public class NoopDatasource implements DataSource {
@Override
public Connection getConnection() throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public Connection getConnection(String username, String password) throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public PrintWriter getLogWriter() throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public void setLogWriter(PrintWriter out) throws SQLException {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
public void setLoginTimeout(int seconds) throws SQLException {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
public int getLoginTimeout() throws SQLException {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
}