diff --git jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java index a07efca..2bc4317 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java @@ -462,6 +462,16 @@ public Object getObject(String parameterName) throws SQLException { throw new SQLException("Method not supported"); } + public T getObject(int parameterIndex, Class type) throws SQLException { + // TODO JDK 1.7 + throw new SQLException("Method not supported"); + } + + public T getObject(String parameterName, Class type) throws SQLException { + // TODO JDK 1.7 + throw new SQLException("Method not supported"); + } + /* * (non-Javadoc) * @@ -2030,6 +2040,16 @@ public void close() throws SQLException { throw new SQLException("Method not supported"); } + public void closeOnCompletion() throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } + + public boolean isCloseOnCompletion() throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } + /* * (non-Javadoc) * diff --git jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java index 0e90fec..00f4351 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java @@ -33,6 +33,7 @@ import java.sql.Savepoint; import java.sql.Statement; import java.sql.Struct; +import java.util.concurrent.Executor; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -160,27 +161,32 @@ private void openTransport(String uri, String host, int port, Map T getObject(String columnLabel, Class type) throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } + + public T getObject(int columnIndex, Class type) throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } }; } diff --git jdbc/src/java/org/apache/hive/jdbc/HiveDriver.java jdbc/src/java/org/apache/hive/jdbc/HiveDriver.java index 2576914..4c4cd85 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveDriver.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveDriver.java @@ -24,9 +24,11 @@ import java.sql.Driver; import java.sql.DriverPropertyInfo; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.Properties; import java.util.jar.Attributes; import java.util.jar.Manifest; +import java.util.logging.Logger; import java.util.regex.Pattern; /** * HiveDriver. @@ -171,6 +173,11 @@ public int getMinorVersion() { return HiveDriver.getMinorDriverVersion(); } + public Logger getParentLogger() throws SQLFeatureNotSupportedException { + // JDK 1.7 + throw new SQLFeatureNotSupportedException("Method not supported"); + } + public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { if (info == null) { info = new Properties(); diff --git jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java index 0d91340..b040d39 100644 --- jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java +++ jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java @@ -858,6 +858,11 @@ public void clearWarnings() throws SQLException { warningChain=null; } + public void closeOnCompletion() throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } + /** * Closes the prepared statement. * @@ -1154,6 +1159,11 @@ public boolean isClosed() throws SQLException { return isClosed; } + public boolean isCloseOnCompletion() throws SQLException { + //JDK 1.7 + throw new SQLException("Method not supported"); + } + /* * (non-Javadoc) * diff --git jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java index 7ac2fac..61985d1 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java @@ -274,4 +274,13 @@ public int getFetchSize() throws SQLException { return fetchSize; } + public T getObject(String columnLabel, Class type) throws SQLException { + //JDK 1.7 + throw new SQLException("Method not supported"); + } + + public T getObject(int columnIndex, Class type) throws SQLException { + //JDK 1.7 + throw new SQLException("Method not supported"); + } } diff --git jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java index a7c432d..982ceb8 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java @@ -163,6 +163,11 @@ public void close() throws SQLException { isClosed = true; } + public void closeOnCompletion() throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } + /* * (non-Javadoc) * @@ -450,6 +455,11 @@ public boolean isClosed() throws SQLException { return isClosed; } + public boolean isCloseOnCompletion() throws SQLException { + // JDK 1.7 + throw new SQLException("Method not supported"); + } + /* * (non-Javadoc) *