hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r731809 [1/3] - in /hadoop/hive/trunk: ./ jdbc/ jdbc/src/ jdbc/src/java/ jdbc/src/java/org/ jdbc/src/java/org/apache/ jdbc/src/java/org/apache/hadoop/ jdbc/src/java/org/apache/hadoop/hive/ jdbc/src/java/org/apache/hadoop/hive/jdbc/ jdbc/src...
Date Tue, 06 Jan 2009 02:06:21 GMT
Author: dhruba
Date: Mon Jan  5 18:06:20 2009
New Revision: 731809

URL: http://svn.apache.org/viewvc?rev=731809&view=rev
Log:
HIVE-48.  Support JDBC connections for interoperability between 
Hive and RDBMS.  (Raghotham Murthy and Michi Mutsuzaki via dhruba)


Added:
    hadoop/hive/trunk/jdbc/
    hadoop/hive/trunk/jdbc/build.xml
    hadoop/hive/trunk/jdbc/src/
    hadoop/hive/trunk/jdbc/src/java/
    hadoop/hive/trunk/jdbc/src/java/org/
    hadoop/hive/trunk/jdbc/src/java/org/apache/
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDriver.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveResultSet.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveResultSetMetaData.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveStatement.java
    hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/JdbcSessionState.java
    hadoop/hive/trunk/jdbc/src/test/
    hadoop/hive/trunk/jdbc/src/test/org/
    hadoop/hive/trunk/jdbc/src/test/org/apache/
    hadoop/hive/trunk/jdbc/src/test/org/apache/hadoop/
    hadoop/hive/trunk/jdbc/src/test/org/apache/hadoop/hive/
    hadoop/hive/trunk/jdbc/src/test/org/apache/hadoop/hive/jdbc/
    hadoop/hive/trunk/jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java
Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/build.xml
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Driver.java

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=731809&r1=731808&r2=731809&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Mon Jan  5 18:06:20 2009
@@ -173,3 +173,6 @@
     HIVE-202. Fix Lineage for join queries.
     (Suresh Antony via dhruba)
 
+    HIVE-48.  Support JDBC connections for interoperability between 
+    Hive and RDBMS.  (Raghotham Murthy and Michi Mutsuzaki via dhruba)
+

Modified: hadoop/hive/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/build.xml?rev=731809&r1=731808&r2=731809&view=diff
==============================================================================
--- hadoop/hive/trunk/build.xml (original)
+++ hadoop/hive/trunk/build.xml Mon Jan  5 18:06:20 2009
@@ -70,6 +70,9 @@
     <subant target="compile">
       <fileset dir="." includes="service/build.xml"/>
     </subant>
+    <subant target="compile">
+      <fileset dir="." includes="jdbc/build.xml"/>
+    </subant>
   </target>
 
   <!-- ====================================================== -->
@@ -95,6 +98,9 @@
     <subant target="deploy">
       <fileset dir="." includes="service/build.xml"/>
     </subant>
+    <subant target="deploy">
+      <fileset dir="." includes="jdbc/build.xml"/>
+    </subant>
   </target>
 
   <!-- ====================================================== -->

Added: hadoop/hive/trunk/jdbc/build.xml
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/jdbc/build.xml?rev=731809&view=auto
==============================================================================
--- hadoop/hive/trunk/jdbc/build.xml (added)
+++ hadoop/hive/trunk/jdbc/build.xml Mon Jan  5 18:06:20 2009
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<project name="jdbc" default="jar">
+  <property name="src.dir" value="${basedir}/src"/>
+    
+  <!--
+    Override properties defined in ../build-common.xml.
+  <property name="test.junit.output.format" value="brief"/>
+  <property name="test.output" value="false"/>
+  <property name="test.junit.output.usefile" value="false"/>
+  -->
+
+  <import file="../build-common.xml"/>
+
+  <target name="core-compile" depends="init">
+    <javac
+     encoding="${build.encoding}"
+     srcdir="${src.dir}/java"
+     includes="**/*.java"
+     destdir="${build.classes}"
+     debug="${javac.debug}"
+     deprecation="${javac.deprecation}"
+     >
+      <classpath refid="classpath"/>
+    </javac>
+  </target>
+ 
+  <target name="compile" depends="core-compile">
+  </target>
+
+  <target name="clean">
+      <delete dir="${build.classes}/../"/>
+  </target>
+</project>

Added: hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java?rev=731809&view=auto
==============================================================================
--- hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java (added)
+++ hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java Mon Jan  5 18:06:20 2009
@@ -0,0 +1,1978 @@
+/**
+ *
+ */
+package org.apache.hadoop.hive.jdbc;
+
+import java.io.InputStream;
+import java.io.Reader;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.Clob;
+import java.sql.Connection;
+import java.sql.Date;
+import java.sql.NClob;
+import java.sql.ParameterMetaData;
+import java.sql.Ref;
+import java.sql.ResultSet;
+import java.sql.ResultSetMetaData;
+import java.sql.RowId;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.sql.SQLXML;
+import java.sql.Time;
+import java.sql.Timestamp;
+import java.util.Calendar;
+import java.util.Map;
+
+public class HiveCallableStatement implements java.sql.CallableStatement {
+
+  /**
+   *
+   */
+  public HiveCallableStatement() {
+    // TODO Auto-generated constructor stub
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getArray(int)
+   */
+
+  public Array getArray(int i) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getArray(java.lang.String)
+   */
+
+  public Array getArray(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBigDecimal(int)
+   */
+
+  public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBigDecimal(java.lang.String)
+   */
+
+  public BigDecimal getBigDecimal(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBigDecimal(int, int)
+   */
+
+  public BigDecimal getBigDecimal(int parameterIndex, int scale)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBlob(int)
+   */
+
+  public Blob getBlob(int i) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBlob(java.lang.String)
+   */
+
+  public Blob getBlob(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBoolean(int)
+   */
+
+  public boolean getBoolean(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBoolean(java.lang.String)
+   */
+
+  public boolean getBoolean(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getByte(int)
+   */
+
+  public byte getByte(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getByte(java.lang.String)
+   */
+
+  public byte getByte(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBytes(int)
+   */
+
+  public byte[] getBytes(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getBytes(java.lang.String)
+   */
+
+  public byte[] getBytes(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getCharacterStream(int)
+   */
+
+  public Reader getCharacterStream(int arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getCharacterStream(java.lang.String)
+   */
+
+  public Reader getCharacterStream(String arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getClob(int)
+   */
+
+  public Clob getClob(int i) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getClob(java.lang.String)
+   */
+
+  public Clob getClob(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getDate(int)
+   */
+
+  public Date getDate(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getDate(java.lang.String)
+   */
+
+  public Date getDate(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getDate(int, java.util.Calendar)
+   */
+
+  public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getDate(java.lang.String, java.util.Calendar)
+   */
+
+  public Date getDate(String parameterName, Calendar cal) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getDouble(int)
+   */
+
+  public double getDouble(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getDouble(java.lang.String)
+   */
+
+  public double getDouble(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getFloat(int)
+   */
+
+  public float getFloat(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getFloat(java.lang.String)
+   */
+
+  public float getFloat(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getInt(int)
+   */
+
+  public int getInt(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getInt(java.lang.String)
+   */
+
+  public int getInt(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getLong(int)
+   */
+
+  public long getLong(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getLong(java.lang.String)
+   */
+
+  public long getLong(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getNCharacterStream(int)
+   */
+
+  public Reader getNCharacterStream(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getNCharacterStream(java.lang.String)
+   */
+
+  public Reader getNCharacterStream(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getNClob(int)
+   */
+
+  public NClob getNClob(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getNClob(java.lang.String)
+   */
+
+  public NClob getNClob(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getNString(int)
+   */
+
+  public String getNString(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getNString(java.lang.String)
+   */
+
+  public String getNString(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getObject(int)
+   */
+
+  public Object getObject(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getObject(java.lang.String)
+   */
+
+  public Object getObject(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getObject(int, java.util.Map)
+   */
+
+  public Object getObject(int i, Map<String, Class<?>> map)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getObject(java.lang.String, java.util.Map)
+   */
+
+  public Object getObject(String parameterName, Map<String, Class<?>> map)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getRef(int)
+   */
+
+  public Ref getRef(int i) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getRef(java.lang.String)
+   */
+
+  public Ref getRef(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getRowId(int)
+   */
+
+  public RowId getRowId(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getRowId(java.lang.String)
+   */
+
+  public RowId getRowId(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getSQLXML(int)
+   */
+
+  public SQLXML getSQLXML(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getSQLXML(java.lang.String)
+   */
+
+  public SQLXML getSQLXML(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getShort(int)
+   */
+
+  public short getShort(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getShort(java.lang.String)
+   */
+
+  public short getShort(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getString(int)
+   */
+
+  public String getString(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getString(java.lang.String)
+   */
+
+  public String getString(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTime(int)
+   */
+
+  public Time getTime(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTime(java.lang.String)
+   */
+
+  public Time getTime(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTime(int, java.util.Calendar)
+   */
+
+  public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTime(java.lang.String, java.util.Calendar)
+   */
+
+  public Time getTime(String parameterName, Calendar cal) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTimestamp(int)
+   */
+
+  public Timestamp getTimestamp(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTimestamp(java.lang.String)
+   */
+
+  public Timestamp getTimestamp(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTimestamp(int, java.util.Calendar)
+   */
+
+  public Timestamp getTimestamp(int parameterIndex, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getTimestamp(java.lang.String, java.util.Calendar)
+   */
+
+  public Timestamp getTimestamp(String parameterName, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getURL(int)
+   */
+
+  public URL getURL(int parameterIndex) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#getURL(java.lang.String)
+   */
+
+  public URL getURL(String parameterName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#registerOutParameter(int, int)
+   */
+
+  public void registerOutParameter(int parameterIndex, int sqlType)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#registerOutParameter(java.lang.String, int)
+   */
+
+  public void registerOutParameter(String parameterName, int sqlType)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#registerOutParameter(int, int, int)
+   */
+
+  public void registerOutParameter(int parameterIndex, int sqlType, int scale)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#registerOutParameter(int, int, java.lang.String)
+   */
+
+  public void registerOutParameter(int paramIndex, int sqlType,
+      String typeName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#registerOutParameter(java.lang.String, int, int)
+   */
+
+  public void registerOutParameter(String parameterName, int sqlType,
+      int scale) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#registerOutParameter(java.lang.String, int, java.lang.String)
+   */
+
+  public void registerOutParameter(String parameterName, int sqlType,
+      String typeName) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setAsciiStream(java.lang.String, java.io.InputStream)
+   */
+
+  public void setAsciiStream(String parameterName, InputStream x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setAsciiStream(java.lang.String, java.io.InputStream, int)
+   */
+
+  public void setAsciiStream(String parameterName, InputStream x, int length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setAsciiStream(java.lang.String, java.io.InputStream, long)
+   */
+
+  public void setAsciiStream(String parameterName, InputStream x, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBigDecimal(java.lang.String, java.math.BigDecimal)
+   */
+
+  public void setBigDecimal(String parameterName, BigDecimal x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBinaryStream(java.lang.String, java.io.InputStream)
+   */
+
+  public void setBinaryStream(String parameterName, InputStream x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBinaryStream(java.lang.String, java.io.InputStream, int)
+   */
+
+  public void setBinaryStream(String parameterName, InputStream x, int length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBinaryStream(java.lang.String, java.io.InputStream, long)
+   */
+
+  public void setBinaryStream(String parameterName, InputStream x, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBlob(java.lang.String, java.sql.Blob)
+   */
+
+  public void setBlob(String parameterName, Blob x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBlob(java.lang.String, java.io.InputStream)
+   */
+
+  public void setBlob(String parameterName, InputStream inputStream)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBlob(java.lang.String, java.io.InputStream, long)
+   */
+
+  public void setBlob(String parameterName, InputStream inputStream,
+      long length) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBoolean(java.lang.String, boolean)
+   */
+
+  public void setBoolean(String parameterName, boolean x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setByte(java.lang.String, byte)
+   */
+
+  public void setByte(String parameterName, byte x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setBytes(java.lang.String, byte[])
+   */
+
+  public void setBytes(String parameterName, byte[] x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setCharacterStream(java.lang.String, java.io.Reader)
+   */
+
+  public void setCharacterStream(String parameterName, Reader reader)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setCharacterStream(java.lang.String, java.io.Reader, int)
+   */
+
+  public void setCharacterStream(String parameterName, Reader reader,
+      int length) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setCharacterStream(java.lang.String, java.io.Reader, long)
+   */
+
+  public void setCharacterStream(String parameterName, Reader reader,
+      long length) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setClob(java.lang.String, java.sql.Clob)
+   */
+
+  public void setClob(String parameterName, Clob x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setClob(java.lang.String, java.io.Reader)
+   */
+
+  public void setClob(String parameterName, Reader reader)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setClob(java.lang.String, java.io.Reader, long)
+   */
+
+  public void setClob(String parameterName, Reader reader, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setDate(java.lang.String, java.sql.Date)
+   */
+
+  public void setDate(String parameterName, Date x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setDate(java.lang.String, java.sql.Date, java.util.Calendar)
+   */
+
+  public void setDate(String parameterName, Date x, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setDouble(java.lang.String, double)
+   */
+
+  public void setDouble(String parameterName, double x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setFloat(java.lang.String, float)
+   */
+
+  public void setFloat(String parameterName, float x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setInt(java.lang.String, int)
+   */
+
+  public void setInt(String parameterName, int x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setLong(java.lang.String, long)
+   */
+
+  public void setLong(String parameterName, long x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNCharacterStream(java.lang.String, java.io.Reader)
+   */
+
+  public void setNCharacterStream(String parameterName, Reader value)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNCharacterStream(java.lang.String, java.io.Reader, long)
+   */
+
+  public void setNCharacterStream(String parameterName, Reader value,
+      long length) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNClob(java.lang.String, java.sql.NClob)
+   */
+
+  public void setNClob(String parameterName, NClob value) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNClob(java.lang.String, java.io.Reader)
+   */
+
+  public void setNClob(String parameterName, Reader reader)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNClob(java.lang.String, java.io.Reader, long)
+   */
+
+  public void setNClob(String parameterName, Reader reader, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNString(java.lang.String, java.lang.String)
+   */
+
+  public void setNString(String parameterName, String value)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNull(java.lang.String, int)
+   */
+
+  public void setNull(String parameterName, int sqlType) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setNull(java.lang.String, int, java.lang.String)
+   */
+
+  public void setNull(String parameterName, int sqlType, String typeName)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setObject(java.lang.String, java.lang.Object)
+   */
+
+  public void setObject(String parameterName, Object x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setObject(java.lang.String, java.lang.Object, int)
+   */
+
+  public void setObject(String parameterName, Object x, int targetSqlType)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setObject(java.lang.String, java.lang.Object, int, int)
+   */
+
+  public void setObject(String parameterName, Object x, int targetSqlType,
+      int scale) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setRowId(java.lang.String, java.sql.RowId)
+   */
+
+  public void setRowId(String parameterName, RowId x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setSQLXML(java.lang.String, java.sql.SQLXML)
+   */
+
+  public void setSQLXML(String parameterName, SQLXML xmlObject)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setShort(java.lang.String, short)
+   */
+
+  public void setShort(String parameterName, short x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setString(java.lang.String, java.lang.String)
+   */
+
+  public void setString(String parameterName, String x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setTime(java.lang.String, java.sql.Time)
+   */
+
+  public void setTime(String parameterName, Time x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setTime(java.lang.String, java.sql.Time, java.util.Calendar)
+   */
+
+  public void setTime(String parameterName, Time x, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setTimestamp(java.lang.String, java.sql.Timestamp)
+   */
+
+  public void setTimestamp(String parameterName, Timestamp x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setTimestamp(java.lang.String, java.sql.Timestamp, java.util.Calendar)
+   */
+
+  public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#setURL(java.lang.String, java.net.URL)
+   */
+
+  public void setURL(String parameterName, URL val) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.CallableStatement#wasNull()
+   */
+
+  public boolean wasNull() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#addBatch()
+   */
+
+  public void addBatch() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#clearParameters()
+   */
+
+  public void clearParameters() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#execute()
+   */
+
+  public boolean execute() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#executeQuery()
+   */
+
+  public ResultSet executeQuery() throws SQLException {
+    // TODO Auto-generated method stub
+    return new HiveResultSet(null);
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#executeUpdate()
+   */
+
+  public int executeUpdate() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#getMetaData()
+   */
+
+  public ResultSetMetaData getMetaData() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#getParameterMetaData()
+   */
+
+  public ParameterMetaData getParameterMetaData() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setArray(int, java.sql.Array)
+   */
+
+  public void setArray(int i, Array x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream)
+   */
+
+  public void setAsciiStream(int arg0, InputStream arg1) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, int)
+   */
+
+  public void setAsciiStream(int parameterIndex, InputStream x, int length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, long)
+   */
+
+  public void setAsciiStream(int arg0, InputStream arg1, long arg2)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBigDecimal(int, java.math.BigDecimal)
+   */
+
+  public void setBigDecimal(int parameterIndex, BigDecimal x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream)
+   */
+
+  public void setBinaryStream(int parameterIndex, InputStream x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, int)
+   */
+
+  public void setBinaryStream(int parameterIndex, InputStream x, int length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, long)
+   */
+
+  public void setBinaryStream(int parameterIndex, InputStream x, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBlob(int, java.sql.Blob)
+   */
+
+  public void setBlob(int i, Blob x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBlob(int, java.io.InputStream)
+   */
+
+  public void setBlob(int parameterIndex, InputStream inputStream)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBlob(int, java.io.InputStream, long)
+   */
+
+  public void setBlob(int parameterIndex, InputStream inputStream, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBoolean(int, boolean)
+   */
+
+  public void setBoolean(int parameterIndex, boolean x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setByte(int, byte)
+   */
+
+  public void setByte(int parameterIndex, byte x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setBytes(int, byte[])
+   */
+
+  public void setBytes(int parameterIndex, byte[] x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader)
+   */
+
+  public void setCharacterStream(int parameterIndex, Reader reader)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, int)
+   */
+
+  public void setCharacterStream(int parameterIndex, Reader reader, int length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, long)
+   */
+
+  public void setCharacterStream(int parameterIndex, Reader reader,
+      long length) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setClob(int, java.sql.Clob)
+   */
+
+  public void setClob(int i, Clob x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setClob(int, java.io.Reader)
+   */
+
+  public void setClob(int parameterIndex, Reader reader) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setClob(int, java.io.Reader, long)
+   */
+
+  public void setClob(int parameterIndex, Reader reader, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setDate(int, java.sql.Date)
+   */
+
+  public void setDate(int parameterIndex, Date x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setDate(int, java.sql.Date, java.util.Calendar)
+   */
+
+  public void setDate(int parameterIndex, Date x, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setDouble(int, double)
+   */
+
+  public void setDouble(int parameterIndex, double x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setFloat(int, float)
+   */
+
+  public void setFloat(int parameterIndex, float x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setInt(int, int)
+   */
+
+  public void setInt(int parameterIndex, int x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setLong(int, long)
+   */
+
+  public void setLong(int parameterIndex, long x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader)
+   */
+
+  public void setNCharacterStream(int parameterIndex, Reader value)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader, long)
+   */
+
+  public void setNCharacterStream(int parameterIndex, Reader value,
+      long length) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNClob(int, java.sql.NClob)
+   */
+
+  public void setNClob(int parameterIndex, NClob value) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNClob(int, java.io.Reader)
+   */
+
+  public void setNClob(int parameterIndex, Reader reader) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNClob(int, java.io.Reader, long)
+   */
+
+  public void setNClob(int parameterIndex, Reader reader, long length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNString(int, java.lang.String)
+   */
+
+  public void setNString(int parameterIndex, String value)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNull(int, int)
+   */
+
+  public void setNull(int parameterIndex, int sqlType) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setNull(int, int, java.lang.String)
+   */
+
+  public void setNull(int paramIndex, int sqlType, String typeName)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setObject(int, java.lang.Object)
+   */
+
+  public void setObject(int parameterIndex, Object x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setObject(int, java.lang.Object, int)
+   */
+
+  public void setObject(int parameterIndex, Object x, int targetSqlType)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setObject(int, java.lang.Object, int, int)
+   */
+
+  public void setObject(int parameterIndex, Object x, int targetSqlType,
+      int scale) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setRef(int, java.sql.Ref)
+   */
+
+  public void setRef(int i, Ref x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setRowId(int, java.sql.RowId)
+   */
+
+  public void setRowId(int parameterIndex, RowId x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setSQLXML(int, java.sql.SQLXML)
+   */
+
+  public void setSQLXML(int parameterIndex, SQLXML xmlObject)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setShort(int, short)
+   */
+
+  public void setShort(int parameterIndex, short x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setString(int, java.lang.String)
+   */
+
+  public void setString(int parameterIndex, String x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setTime(int, java.sql.Time)
+   */
+
+  public void setTime(int parameterIndex, Time x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setTime(int, java.sql.Time, java.util.Calendar)
+   */
+
+  public void setTime(int parameterIndex, Time x, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp)
+   */
+
+  public void setTimestamp(int parameterIndex, Timestamp x)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp, java.util.Calendar)
+   */
+
+  public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setURL(int, java.net.URL)
+   */
+
+  public void setURL(int parameterIndex, URL x) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.PreparedStatement#setUnicodeStream(int, java.io.InputStream, int)
+   */
+
+  public void setUnicodeStream(int parameterIndex, InputStream x, int length)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#addBatch(java.lang.String)
+   */
+
+  public void addBatch(String sql) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#cancel()
+   */
+
+  public void cancel() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#clearBatch()
+   */
+
+  public void clearBatch() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#clearWarnings()
+   */
+
+  public void clearWarnings() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#close()
+   */
+
+  public void close() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#execute(java.lang.String)
+   */
+
+  public boolean execute(String sql) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#execute(java.lang.String, int)
+   */
+
+  public boolean execute(String sql, int autoGeneratedKeys)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#execute(java.lang.String, int[])
+   */
+
+  public boolean execute(String sql, int[] columnIndexes) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#execute(java.lang.String, java.lang.String[])
+   */
+
+  public boolean execute(String sql, String[] columnNames)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#executeBatch()
+   */
+
+  public int[] executeBatch() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#executeQuery(java.lang.String)
+   */
+
+  public ResultSet executeQuery(String sql) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#executeUpdate(java.lang.String)
+   */
+
+  public int executeUpdate(String sql) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#executeUpdate(java.lang.String, int)
+   */
+
+  public int executeUpdate(String sql, int autoGeneratedKeys)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#executeUpdate(java.lang.String, int[])
+   */
+
+  public int executeUpdate(String sql, int[] columnIndexes)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#executeUpdate(java.lang.String, java.lang.String[])
+   */
+
+  public int executeUpdate(String sql, String[] columnNames)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getConnection()
+   */
+
+  public Connection getConnection() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getFetchDirection()
+   */
+
+  public int getFetchDirection() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getFetchSize()
+   */
+
+  public int getFetchSize() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getGeneratedKeys()
+   */
+
+  public ResultSet getGeneratedKeys() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getMaxFieldSize()
+   */
+
+  public int getMaxFieldSize() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getMaxRows()
+   */
+
+  public int getMaxRows() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getMoreResults()
+   */
+
+  public boolean getMoreResults() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getMoreResults(int)
+   */
+
+  public boolean getMoreResults(int current) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getQueryTimeout()
+   */
+
+  public int getQueryTimeout() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getResultSet()
+   */
+
+  public ResultSet getResultSet() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getResultSetConcurrency()
+   */
+
+  public int getResultSetConcurrency() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getResultSetHoldability()
+   */
+
+  public int getResultSetHoldability() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getResultSetType()
+   */
+
+  public int getResultSetType() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getUpdateCount()
+   */
+
+  public int getUpdateCount() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#getWarnings()
+   */
+
+  public SQLWarning getWarnings() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#isClosed()
+   */
+
+  public boolean isClosed() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#isPoolable()
+   */
+
+  public boolean isPoolable() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setCursorName(java.lang.String)
+   */
+
+  public void setCursorName(String name) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setEscapeProcessing(boolean)
+   */
+
+  public void setEscapeProcessing(boolean enable) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setFetchDirection(int)
+   */
+
+  public void setFetchDirection(int direction) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setFetchSize(int)
+   */
+
+  public void setFetchSize(int rows) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setMaxFieldSize(int)
+   */
+
+  public void setMaxFieldSize(int max) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setMaxRows(int)
+   */
+
+  public void setMaxRows(int max) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setPoolable(boolean)
+   */
+
+  public void setPoolable(boolean arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Statement#setQueryTimeout(int)
+   */
+
+  public void setQueryTimeout(int seconds) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+   */
+
+  public boolean isWrapperFor(Class<?> iface) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Wrapper#unwrap(java.lang.Class)
+   */
+
+  public <T> T unwrap(Class<T> iface) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+}

Added: hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java?rev=731809&view=auto
==============================================================================
--- hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java (added)
+++ hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java Mon Jan  5 18:06:20 2009
@@ -0,0 +1,537 @@
+/**
+ *
+ */
+package org.apache.hadoop.hive.jdbc;
+
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.CallableStatement;
+import java.sql.Clob;
+import java.sql.DatabaseMetaData;
+import java.sql.NClob;
+import java.sql.PreparedStatement;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.sql.SQLXML;
+import java.sql.Savepoint;
+import java.sql.Statement;
+import java.sql.Struct;
+import java.util.*;
+import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.ql.session.SessionState;
+
+import org.apache.hadoop.hive.service.HiveClient;
+import org.apache.hadoop.hive.service.HiveServer;
+import org.apache.hadoop.hive.service.HiveInterface;
+import com.facebook.thrift.protocol.TProtocol;
+import com.facebook.thrift.protocol.TBinaryProtocol;
+import com.facebook.thrift.transport.TSocket;
+import com.facebook.thrift.transport.TTransport;
+import org.apache.hadoop.hive.conf.HiveConf;
+import java.net.URI;
+
+public class HiveConnection implements java.sql.Connection {
+  JdbcSessionState session;
+
+  private HiveInterface client;
+
+  private static final String URI_PREFIX = "jdbc:hive://";
+  /**
+   * TODO: - throw more specific exception
+   *       - parse uri (use java.net.URI?)
+   */
+  public HiveConnection(String uri, Properties info) throws Exception {
+    session = new JdbcSessionState(new HiveConf(SessionState.class));
+    session.in = null;
+    session.out = null;
+    session.err = null;
+    SessionState.start(session);
+
+    if (!uri.startsWith(URI_PREFIX)) {
+      throw new Exception("Invalid URL: " + uri);
+    }
+    // remove prefix
+    uri = uri.substring(URI_PREFIX.length());
+
+    // If uri is not specified, use local mode.
+    if (uri.isEmpty()) {
+      client = new HiveServer.HiveServerHandler();
+    } else {
+      // parse uri
+      // form: hostname:port/databasename
+      String[] parts = uri.split("/");
+      String[] hostport = parts[0].split(":");
+      String databasename = "default";
+      int port = 10000;
+      String host = hostport[0];
+      try {
+        databasename = parts[1];
+        port = Integer.parseInt(hostport[1]);
+      }
+      catch (Exception e) {
+      }
+      TTransport transport = new TSocket(host, port);
+      TProtocol protocol = new TBinaryProtocol(transport);
+      client = new HiveClient(protocol);
+      transport.open();
+    }
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#clearWarnings()
+   */
+
+  public void clearWarnings() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#close()
+   */
+
+  public void close() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#commit()
+   */
+
+  public void commit() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createArrayOf(java.lang.String, java.lang.Object[])
+   */
+
+  public Array createArrayOf(String arg0, Object[] arg1) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createBlob()
+   */
+
+  public Blob createBlob() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createClob()
+   */
+
+  public Clob createClob() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createNClob()
+   */
+
+  public NClob createNClob() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createSQLXML()
+   */
+
+  public SQLXML createSQLXML() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /**
+   * Creates a Statement object for sending SQL statements to the database.
+   *
+   * @throws SQLException if a database access error occurs.
+   * @see java.sql.Connection#createStatement()
+   */
+
+  public Statement createStatement() throws SQLException {
+    return new HiveStatement(session, client);
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createStatement(int, int)
+   */
+
+  public Statement createStatement(int resultSetType, int resultSetConcurrency)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createStatement(int, int, int)
+   */
+
+  public Statement createStatement(int resultSetType,
+      int resultSetConcurrency, int resultSetHoldability)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#createStruct(java.lang.String, java.lang.Object[])
+   */
+
+  public Struct createStruct(String typeName, Object[] attributes)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getAutoCommit()
+   */
+
+  public boolean getAutoCommit() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getCatalog()
+   */
+
+  public String getCatalog() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getClientInfo()
+   */
+
+  public Properties getClientInfo() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getClientInfo(java.lang.String)
+   */
+
+  public String getClientInfo(String name) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getHoldability()
+   */
+
+  public int getHoldability() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getMetaData()
+   */
+
+  public DatabaseMetaData getMetaData() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getTransactionIsolation()
+   */
+
+  public int getTransactionIsolation() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getTypeMap()
+   */
+
+  public Map<String, Class<?>> getTypeMap() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#getWarnings()
+   */
+
+  public SQLWarning getWarnings() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#isClosed()
+   */
+
+  public boolean isClosed() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#isReadOnly()
+   */
+
+  public boolean isReadOnly() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#isValid(int)
+   */
+
+  public boolean isValid(int timeout) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#nativeSQL(java.lang.String)
+   */
+
+  public String nativeSQL(String sql) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareCall(java.lang.String)
+   */
+
+  public CallableStatement prepareCall(String sql) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareCall(java.lang.String, int, int)
+   */
+
+  public CallableStatement prepareCall(String sql, int resultSetType,
+      int resultSetConcurrency) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareCall(java.lang.String, int, int, int)
+   */
+
+  public CallableStatement prepareCall(String sql, int resultSetType,
+      int resultSetConcurrency, int resultSetHoldability)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareStatement(java.lang.String)
+   */
+
+  public PreparedStatement prepareStatement(String sql) throws SQLException {
+    return new HivePreparedStatement(sql);
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareStatement(java.lang.String, int)
+   */
+
+  public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
+      throws SQLException {
+    return new HivePreparedStatement(sql);
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareStatement(java.lang.String, int[])
+   */
+
+  public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareStatement(java.lang.String, java.lang.String[])
+   */
+
+  public PreparedStatement prepareStatement(String sql, String[] columnNames)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareStatement(java.lang.String, int, int)
+   */
+
+  public PreparedStatement prepareStatement(String sql, int resultSetType,
+      int resultSetConcurrency) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#prepareStatement(java.lang.String, int, int, int)
+   */
+
+  public PreparedStatement prepareStatement(String sql, int resultSetType,
+      int resultSetConcurrency, int resultSetHoldability)
+      throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#releaseSavepoint(java.sql.Savepoint)
+   */
+
+  public void releaseSavepoint(Savepoint savepoint) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#rollback()
+   */
+
+  public void rollback() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#rollback(java.sql.Savepoint)
+   */
+
+  public void rollback(Savepoint savepoint) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setAutoCommit(boolean)
+   */
+
+  public void setAutoCommit(boolean autoCommit) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setCatalog(java.lang.String)
+   */
+
+  public void setCatalog(String catalog) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setClientInfo(java.util.Properties)
+   */
+
+  public void setClientInfo(Properties properties)
+      throws SQLClientInfoException {
+    // TODO Auto-generated method stub
+    throw new SQLClientInfoException("Method not supported", null);
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setClientInfo(java.lang.String, java.lang.String)
+   */
+
+  public void setClientInfo(String name, String value)
+      throws SQLClientInfoException {
+    // TODO Auto-generated method stub
+    throw new SQLClientInfoException("Method not supported", null);
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setHoldability(int)
+   */
+
+  public void setHoldability(int holdability) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setReadOnly(boolean)
+   */
+
+  public void setReadOnly(boolean readOnly) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setSavepoint()
+   */
+
+  public Savepoint setSavepoint() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setSavepoint(java.lang.String)
+   */
+
+  public Savepoint setSavepoint(String name) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setTransactionIsolation(int)
+   */
+
+  public void setTransactionIsolation(int level) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Connection#setTypeMap(java.util.Map)
+   */
+
+  public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+   */
+
+  public boolean isWrapperFor(Class<?> iface) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Wrapper#unwrap(java.lang.Class)
+   */
+
+  public <T> T unwrap(Class<T> iface) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+}

Added: hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java?rev=731809&view=auto
==============================================================================
--- hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java (added)
+++ hadoop/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java Mon Jan  5 18:06:20 2009
@@ -0,0 +1,98 @@
+/**
+ *
+ */
+package org.apache.hadoop.hive.jdbc;
+
+import java.io.PrintWriter;
+import java.sql.Connection;
+import java.sql.SQLException;
+
+import javax.sql.DataSource;
+
+
+public class HiveDataSource implements DataSource {
+
+  /**
+   *
+   */
+  public HiveDataSource() {
+    // TODO Auto-generated constructor stub
+  }
+
+  /* (non-Javadoc)
+   * @see javax.sql.DataSource#getConnection()
+   */
+
+  public Connection getConnection() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see javax.sql.DataSource#getConnection(java.lang.String, java.lang.String)
+   */
+
+  public Connection getConnection(String username, String password)
+      throws SQLException {
+    try {
+      return new HiveConnection("", null);
+    } catch (Exception ex) {
+      throw new SQLException();
+    }
+  }
+
+  /* (non-Javadoc)
+   * @see javax.sql.CommonDataSource#getLogWriter()
+   */
+
+  public PrintWriter getLogWriter() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see javax.sql.CommonDataSource#getLoginTimeout()
+   */
+
+  public int getLoginTimeout() throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see javax.sql.CommonDataSource#setLogWriter(java.io.PrintWriter)
+   */
+
+  public void setLogWriter(PrintWriter arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see javax.sql.CommonDataSource#setLoginTimeout(int)
+   */
+
+  public void setLoginTimeout(int arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+   */
+
+  public boolean isWrapperFor(Class<?> arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+  /* (non-Javadoc)
+   * @see java.sql.Wrapper#unwrap(java.lang.Class)
+   */
+
+  public <T> T unwrap(Class<T> arg0) throws SQLException {
+    // TODO Auto-generated method stub
+    throw new SQLException("Method not supported");
+  }
+
+}



Mime
View raw message