jdk 7 compile support

This commit is contained in:
wenshao
2012-07-02 07:26:25 +08:00
parent bd3f2ebb92
commit 0497a47977
2 changed files with 28 additions and 0 deletions
@@ -3,7 +3,9 @@ package com.alibaba.druid.hdriver;
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;
import com.alibaba.druid.hdriver.impl.HBaseConnectionImpl;
import com.alibaba.druid.hdriver.impl.HEngine;
@@ -56,4 +58,8 @@ public class HDriver implements Driver {
return false;
}
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
throw new SQLFeatureNotSupportedException();
}
}
@@ -16,6 +16,7 @@ import java.sql.Savepoint;
import java.sql.Struct;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.client.HTableInterface;
@@ -256,4 +257,25 @@ public class HBaseConnectionImpl extends ConnectionBase implements HConnection {
return engine.getHTable(tableName);
}
public void setSchema(String schema) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public String getSchema() throws SQLException {
throw new SQLFeatureNotSupportedException();
}
public void abort(Executor executor) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
public int getNetworkTimeout() throws SQLException {
throw new SQLFeatureNotSupportedException();
}
}