package net.sf.hajdbc;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.logging.Logger;
import javax.sql.DataSource;
public class MockDataSource implements DataSource
{
private String name;
public String getName()
{
return this.name;
}
public void setName(String name)
{
this.name = name;
}
@Override
public PrintWriter getLogWriter() throws SQLException
{
// TODO Auto-generated method stub
return null;
}
@Override
public int getLoginTimeout() throws SQLException
{
// TODO Auto-generated method stub
return 0;
}
@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException
{
// TODO Auto-generated method stub
return null;
}
@Override
public void setLogWriter(PrintWriter arg0) throws SQLException
{
// TODO Auto-generated method stub
}
@Override
public void setLoginTimeout(int arg0) throws SQLException
{
// TODO Auto-generated method stub
}
@Override
public boolean isWrapperFor(Class<?> arg0) throws SQLException
{
// TODO Auto-generated method stub
return false;
}
@Override
public <T> T unwrap(Class<T> arg0) throws SQLException
{
// TODO Auto-generated method stub
return null;
}
@Override
public Connection getConnection() throws SQLException
{
// TODO Auto-generated method stub
return null;
}
@Override
public Connection getConnection(String arg0, String arg1) throws SQLException
{
// TODO Auto-generated method stub
return null;
}
}