Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed May 21, 2012
1 parent 90b680e commit 7a8e973
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/alibaba/druid/hdriver/HConnection.java
Expand Up @@ -7,4 +7,6 @@

public interface HConnection extends Connection {
HPreparedStatementImpl prepareStatement(String sql) throws SQLException;

HStatement createStatement() throws SQLException;;
}
Expand Up @@ -13,7 +13,6 @@
import java.sql.SQLFeatureNotSupportedException;
import java.sql.SQLXML;
import java.sql.Savepoint;
import java.sql.Statement;
import java.sql.Struct;
import java.util.Map;
import java.util.Properties;
Expand All @@ -22,6 +21,7 @@
import org.apache.hadoop.hbase.client.HTableInterface;

import com.alibaba.druid.hdriver.HConnection;
import com.alibaba.druid.hdriver.HStatement;
import com.alibaba.druid.util.jdbc.ConnectionBase;

public class HBaseConnectionImpl extends ConnectionBase implements HConnection {
Expand Down Expand Up @@ -76,17 +76,17 @@ public SQLXML createSQLXML() throws SQLException {
}

@Override
public Statement createStatement() throws SQLException {
public HStatement createStatement() throws SQLException {
return new HStatementImpl(this);
}

@Override
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
public HStatement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
throw new SQLFeatureNotSupportedException();
}

@Override
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public HStatement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
throws SQLException {
throw new SQLFeatureNotSupportedException();
}
Expand Down

0 comments on commit 7a8e973

Please sign in to comment.