1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00
Jobs/com/gamingmesh/jobs/dao/JobsDriver.java
2015-08-21 16:10:08 +03:00

59 lines
1.2 KiB
Java

package com.gamingmesh.jobs.dao;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties;
import java.util.logging.Logger;
public class JobsDriver
implements Driver
{
private Driver driver;
public JobsDriver(Driver driver)
{
this.driver = driver;
}
public Connection connect(String url, Properties info)
throws SQLException
{
return this.driver.connect(url, info);
}
public boolean acceptsURL(String url)
throws SQLException
{
return this.driver.acceptsURL(url);
}
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
throws SQLException
{
return this.driver.getPropertyInfo(url, info);
}
public int getMajorVersion()
{
return this.driver.getMajorVersion();
}
public int getMinorVersion()
{
return this.driver.getMinorVersion();
}
public boolean jdbcCompliant()
{
return this.driver.jdbcCompliant();
}
@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
return this.driver.getParentLogger();
}
}