diff --git jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java index 6d4b2b1..ade1900 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java @@ -35,6 +35,7 @@ import java.sql.ResultSetMetaData; import java.sql.RowId; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.sql.SQLWarning; import java.sql.SQLXML; import java.sql.Statement; @@ -67,23 +68,23 @@ private TableSchema schema; public boolean absolute(int row) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void afterLast() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void beforeFirst() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void cancelRowUpdates() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void deleteRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int findColumn(String columnName) throws SQLException { @@ -106,23 +107,23 @@ public int findColumn(String columnName) throws SQLException { } public boolean first() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Array getArray(int i) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Array getArray(String colName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public InputStream getAsciiStream(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public InputStream getAsciiStream(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public BigDecimal getBigDecimal(int columnIndex) throws SQLException { @@ -177,11 +178,11 @@ public InputStream getBinaryStream(String columnName) throws SQLException { } public Blob getBlob(int i) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Blob getBlob(String colName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean getBoolean(int columnIndex) throws SQLException { @@ -217,27 +218,27 @@ public byte getByte(String columnName) throws SQLException { } public byte[] getBytes(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public byte[] getBytes(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Reader getCharacterStream(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Reader getCharacterStream(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Clob getClob(int i) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Clob getClob(String colName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getConcurrency() throws SQLException { @@ -245,7 +246,7 @@ public int getConcurrency() throws SQLException { } public String getCursorName() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Date getDate(int columnIndex) throws SQLException { @@ -274,11 +275,11 @@ public Date getDate(String columnName) throws SQLException { } public Date getDate(int columnIndex, Calendar cal) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Date getDate(String columnName, Calendar cal) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public double getDouble(int columnIndex) throws SQLException { @@ -307,7 +308,7 @@ public int getFetchDirection() throws SQLException { } public int getFetchSize() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public float getFloat(int columnIndex) throws SQLException { @@ -332,7 +333,7 @@ public float getFloat(String columnName) throws SQLException { } public int getHoldability() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getInt(int columnIndex) throws SQLException { @@ -384,27 +385,27 @@ public ResultSetMetaData getMetaData() throws SQLException { } public Reader getNCharacterStream(int arg0) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Reader getNCharacterStream(String arg0) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public NClob getNClob(int arg0) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public NClob getNClob(String columnLabel) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getNString(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getNString(String columnLabel) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } private Object getColumnValue(int columnIndex) throws SQLException { @@ -468,39 +469,39 @@ public Object getObject(String columnName) throws SQLException { } public Object getObject(int i, Map> map) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Object getObject(String colName, Map> map) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Ref getRef(int i) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Ref getRef(String colName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public RowId getRowId(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public RowId getRowId(String columnLabel) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public SQLXML getSQLXML(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public SQLXML getSQLXML(String columnLabel) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public short getShort(int columnIndex) throws SQLException { @@ -548,19 +549,19 @@ public String getString(String columnName) throws SQLException { } public Time getTime(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Time getTime(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Time getTime(int columnIndex, Calendar cal) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Time getTime(String columnName, Calendar cal) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Timestamp getTimestamp(int columnIndex) throws SQLException { @@ -582,11 +583,11 @@ public Timestamp getTimestamp(String columnName) throws SQLException { } public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getType() throws SQLException { @@ -594,67 +595,67 @@ public int getType() throws SQLException { } public URL getURL(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public URL getURL(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public InputStream getUnicodeStream(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public InputStream getUnicodeStream(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void insertRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isAfterLast() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isBeforeFirst() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isClosed() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isFirst() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isLast() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean last() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void moveToCurrentRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void moveToInsertRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean previous() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void refreshRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean relative(int rows) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean rowDeleted() throws SQLException { @@ -670,358 +671,358 @@ public boolean rowUpdated() throws SQLException { } public void setFetchDirection(int direction) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void setFetchSize(int rows) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateArray(int columnIndex, Array x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateArray(String columnName, Array x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBlob(int columnIndex, Blob x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBlob(String columnName, Blob x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBoolean(int columnIndex, boolean x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBoolean(String columnName, boolean x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateByte(int columnIndex, byte x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateByte(String columnName, byte x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBytes(int columnIndex, byte[] x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateBytes(String columnName, byte[] x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateCharacterStream(int columnIndex, Reader x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateClob(int columnIndex, Clob x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateClob(String columnName, Clob x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateClob(int columnIndex, Reader reader) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateClob(String columnLabel, Reader reader) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateClob(int columnIndex, Reader reader, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateClob(String columnLabel, Reader reader, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateDate(int columnIndex, Date x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateDate(String columnName, Date x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateDouble(int columnIndex, double x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateDouble(String columnName, double x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateFloat(int columnIndex, float x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateFloat(String columnName, float x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateInt(int columnIndex, int x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateInt(String columnName, int x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateLong(int columnIndex, long x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateLong(String columnName, long x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNClob(int columnIndex, NClob clob) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNClob(String columnLabel, NClob clob) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNClob(int columnIndex, Reader reader) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNClob(String columnLabel, Reader reader) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNString(int columnIndex, String string) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNString(String columnLabel, String string) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNull(int columnIndex) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateNull(String columnName) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateObject(int columnIndex, Object x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateObject(String columnName, Object x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateObject(int columnIndex, Object x, int scale) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateObject(String columnName, Object x, int scale) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateRef(int columnIndex, Ref x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateRef(String columnName, Ref x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateRow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateRowId(int columnIndex, RowId x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateRowId(String columnLabel, RowId x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateShort(int columnIndex, short x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateShort(String columnName, short x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateString(int columnIndex, String x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateString(String columnName, String x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateTime(int columnIndex, Time x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateTime(String columnName, Time x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void updateTimestamp(String columnName, Timestamp x) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public SQLWarning getWarnings() throws SQLException { @@ -1033,7 +1034,7 @@ public void clearWarnings() throws SQLException { } public void close() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean wasNull() throws SQLException { @@ -1041,11 +1042,11 @@ public boolean wasNull() throws SQLException { } public boolean isWrapperFor(Class iface) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T unwrap(Class iface) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } protected void setSchema(TableSchema schema) { diff --git jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java index d04f786..8947dc8 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveCallableStatement.java @@ -34,6 +34,7 @@ import java.sql.ResultSetMetaData; import java.sql.RowId; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.sql.SQLWarning; import java.sql.SQLXML; import java.sql.Time; @@ -63,7 +64,7 @@ public HiveCallableStatement(Connection connection) { public Array getArray(int i) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -74,7 +75,7 @@ public Array getArray(int i) throws SQLException { public Array getArray(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -85,7 +86,7 @@ public Array getArray(String parameterName) throws SQLException { public BigDecimal getBigDecimal(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -96,7 +97,7 @@ public BigDecimal getBigDecimal(int parameterIndex) throws SQLException { public BigDecimal getBigDecimal(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -107,7 +108,7 @@ public BigDecimal getBigDecimal(String parameterName) throws SQLException { public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -118,7 +119,7 @@ public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLExcepti public Blob getBlob(int i) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -129,7 +130,7 @@ public Blob getBlob(int i) throws SQLException { public Blob getBlob(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -140,7 +141,7 @@ public Blob getBlob(String parameterName) throws SQLException { public boolean getBoolean(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -151,7 +152,7 @@ public boolean getBoolean(int parameterIndex) throws SQLException { public boolean getBoolean(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -162,7 +163,7 @@ public boolean getBoolean(String parameterName) throws SQLException { public byte getByte(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -173,7 +174,7 @@ public byte getByte(int parameterIndex) throws SQLException { public byte getByte(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -184,7 +185,7 @@ public byte getByte(String parameterName) throws SQLException { public byte[] getBytes(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -195,7 +196,7 @@ public byte getByte(String parameterName) throws SQLException { public byte[] getBytes(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -206,7 +207,7 @@ public byte getByte(String parameterName) throws SQLException { public Reader getCharacterStream(int arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -217,7 +218,7 @@ public Reader getCharacterStream(int arg0) throws SQLException { public Reader getCharacterStream(String arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -228,7 +229,7 @@ public Reader getCharacterStream(String arg0) throws SQLException { public Clob getClob(int i) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -239,7 +240,7 @@ public Clob getClob(int i) throws SQLException { public Clob getClob(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -250,7 +251,7 @@ public Clob getClob(String parameterName) throws SQLException { public Date getDate(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -261,7 +262,7 @@ public Date getDate(int parameterIndex) throws SQLException { public Date getDate(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -272,7 +273,7 @@ public Date getDate(String parameterName) throws SQLException { public Date getDate(int parameterIndex, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -284,7 +285,7 @@ public Date getDate(int parameterIndex, Calendar cal) throws SQLException { public Date getDate(String parameterName, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -295,7 +296,7 @@ public Date getDate(String parameterName, Calendar cal) throws SQLException { public double getDouble(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -306,7 +307,7 @@ public double getDouble(int parameterIndex) throws SQLException { public double getDouble(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -317,7 +318,7 @@ public double getDouble(String parameterName) throws SQLException { public float getFloat(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -328,7 +329,7 @@ public float getFloat(int parameterIndex) throws SQLException { public float getFloat(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -339,7 +340,7 @@ public float getFloat(String parameterName) throws SQLException { public int getInt(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -350,7 +351,7 @@ public int getInt(int parameterIndex) throws SQLException { public int getInt(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -361,7 +362,7 @@ public int getInt(String parameterName) throws SQLException { public long getLong(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -372,7 +373,7 @@ public long getLong(int parameterIndex) throws SQLException { public long getLong(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -383,7 +384,7 @@ public long getLong(String parameterName) throws SQLException { public Reader getNCharacterStream(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -394,7 +395,7 @@ public Reader getNCharacterStream(int parameterIndex) throws SQLException { public Reader getNCharacterStream(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -405,7 +406,7 @@ public Reader getNCharacterStream(String parameterName) throws SQLException { public NClob getNClob(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -416,7 +417,7 @@ public NClob getNClob(int parameterIndex) throws SQLException { public NClob getNClob(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -427,7 +428,7 @@ public NClob getNClob(String parameterName) throws SQLException { public String getNString(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -438,7 +439,7 @@ public String getNString(int parameterIndex) throws SQLException { public String getNString(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -449,7 +450,7 @@ public String getNString(String parameterName) throws SQLException { public Object getObject(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -460,17 +461,17 @@ public Object getObject(int parameterIndex) throws SQLException { public Object getObject(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T getObject(int parameterIndex, Class type) throws SQLException { // TODO JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T getObject(String parameterName, Class type) throws SQLException { // TODO JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -481,7 +482,7 @@ public Object getObject(String parameterName) throws SQLException { public Object getObject(int i, Map> map) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -492,7 +493,7 @@ public Object getObject(int i, Map> map) throws SQLException { public Object getObject(String parameterName, Map> map) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -503,7 +504,7 @@ public Object getObject(String parameterName, Map> map) throws public Ref getRef(int i) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -514,7 +515,7 @@ public Ref getRef(int i) throws SQLException { public Ref getRef(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -525,7 +526,7 @@ public Ref getRef(String parameterName) throws SQLException { public RowId getRowId(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -536,7 +537,7 @@ public RowId getRowId(int parameterIndex) throws SQLException { public RowId getRowId(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -547,7 +548,7 @@ public RowId getRowId(String parameterName) throws SQLException { public SQLXML getSQLXML(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -558,7 +559,7 @@ public SQLXML getSQLXML(int parameterIndex) throws SQLException { public SQLXML getSQLXML(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -569,7 +570,7 @@ public SQLXML getSQLXML(String parameterName) throws SQLException { public short getShort(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -580,7 +581,7 @@ public short getShort(int parameterIndex) throws SQLException { public short getShort(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -591,7 +592,7 @@ public short getShort(String parameterName) throws SQLException { public String getString(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -602,7 +603,7 @@ public String getString(int parameterIndex) throws SQLException { public String getString(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -613,7 +614,7 @@ public String getString(String parameterName) throws SQLException { public Time getTime(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -624,7 +625,7 @@ public Time getTime(int parameterIndex) throws SQLException { public Time getTime(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -635,7 +636,7 @@ public Time getTime(String parameterName) throws SQLException { public Time getTime(int parameterIndex, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -647,7 +648,7 @@ public Time getTime(int parameterIndex, Calendar cal) throws SQLException { public Time getTime(String parameterName, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -658,7 +659,7 @@ public Time getTime(String parameterName, Calendar cal) throws SQLException { public Timestamp getTimestamp(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -669,7 +670,7 @@ public Timestamp getTimestamp(int parameterIndex) throws SQLException { public Timestamp getTimestamp(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -680,7 +681,7 @@ public Timestamp getTimestamp(String parameterName) throws SQLException { public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -692,7 +693,7 @@ public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLExcept public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -703,7 +704,7 @@ public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLExce public URL getURL(int parameterIndex) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -714,7 +715,7 @@ public URL getURL(int parameterIndex) throws SQLException { public URL getURL(String parameterName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -725,7 +726,7 @@ public URL getURL(String parameterName) throws SQLException { public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -736,7 +737,7 @@ public void registerOutParameter(int parameterIndex, int sqlType) throws SQLExce public void registerOutParameter(String parameterName, int sqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -748,7 +749,7 @@ public void registerOutParameter(String parameterName, int sqlType) throws SQLEx public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -761,7 +762,7 @@ public void registerOutParameter(int parameterIndex, int sqlType, int scale) public void registerOutParameter(int paramIndex, int sqlType, String typeName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -774,7 +775,7 @@ public void registerOutParameter(int paramIndex, int sqlType, String typeName) public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -787,7 +788,7 @@ public void registerOutParameter(String parameterName, int sqlType, int scale) public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -800,7 +801,7 @@ public void registerOutParameter(String parameterName, int sqlType, public void setAsciiStream(String parameterName, InputStream x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -813,7 +814,7 @@ public void setAsciiStream(String parameterName, InputStream x) public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -826,7 +827,7 @@ public void setAsciiStream(String parameterName, InputStream x, int length) public void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -839,7 +840,7 @@ public void setAsciiStream(String parameterName, InputStream x, long length) public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -852,7 +853,7 @@ public void setBigDecimal(String parameterName, BigDecimal x) public void setBinaryStream(String parameterName, InputStream x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -865,7 +866,7 @@ public void setBinaryStream(String parameterName, InputStream x) public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -878,7 +879,7 @@ public void setBinaryStream(String parameterName, InputStream x, int length) public void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -889,7 +890,7 @@ public void setBinaryStream(String parameterName, InputStream x, long length) public void setBlob(String parameterName, Blob x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -902,7 +903,7 @@ public void setBlob(String parameterName, Blob x) throws SQLException { public void setBlob(String parameterName, InputStream inputStream) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -915,7 +916,7 @@ public void setBlob(String parameterName, InputStream inputStream) public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -926,7 +927,7 @@ public void setBlob(String parameterName, InputStream inputStream, long length) public void setBoolean(String parameterName, boolean x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -937,7 +938,7 @@ public void setBoolean(String parameterName, boolean x) throws SQLException { public void setByte(String parameterName, byte x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -948,7 +949,7 @@ public void setByte(String parameterName, byte x) throws SQLException { public void setBytes(String parameterName, byte[] x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -961,7 +962,7 @@ public void setBytes(String parameterName, byte[] x) throws SQLException { public void setCharacterStream(String parameterName, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -974,7 +975,7 @@ public void setCharacterStream(String parameterName, Reader reader) public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -987,7 +988,7 @@ public void setCharacterStream(String parameterName, Reader reader, int length) public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -998,7 +999,7 @@ public void setCharacterStream(String parameterName, Reader reader, public void setClob(String parameterName, Clob x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1009,7 +1010,7 @@ public void setClob(String parameterName, Clob x) throws SQLException { public void setClob(String parameterName, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1022,7 +1023,7 @@ public void setClob(String parameterName, Reader reader) throws SQLException { public void setClob(String parameterName, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1033,7 +1034,7 @@ public void setClob(String parameterName, Reader reader, long length) public void setDate(String parameterName, Date x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1046,7 +1047,7 @@ public void setDate(String parameterName, Date x) throws SQLException { public void setDate(String parameterName, Date x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1057,7 +1058,7 @@ public void setDate(String parameterName, Date x, Calendar cal) public void setDouble(String parameterName, double x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1068,7 +1069,7 @@ public void setDouble(String parameterName, double x) throws SQLException { public void setFloat(String parameterName, float x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1079,7 +1080,7 @@ public void setFloat(String parameterName, float x) throws SQLException { public void setInt(String parameterName, int x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1090,7 +1091,7 @@ public void setInt(String parameterName, int x) throws SQLException { public void setLong(String parameterName, long x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1103,7 +1104,7 @@ public void setLong(String parameterName, long x) throws SQLException { public void setNCharacterStream(String parameterName, Reader value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1116,7 +1117,7 @@ public void setNCharacterStream(String parameterName, Reader value) public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1127,7 +1128,7 @@ public void setNCharacterStream(String parameterName, Reader value, public void setNClob(String parameterName, NClob value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1138,7 +1139,7 @@ public void setNClob(String parameterName, NClob value) throws SQLException { public void setNClob(String parameterName, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1151,7 +1152,7 @@ public void setNClob(String parameterName, Reader reader) throws SQLException { public void setNClob(String parameterName, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1164,7 +1165,7 @@ public void setNClob(String parameterName, Reader reader, long length) public void setNString(String parameterName, String value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1175,7 +1176,7 @@ public void setNString(String parameterName, String value) public void setNull(String parameterName, int sqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1188,7 +1189,7 @@ public void setNull(String parameterName, int sqlType) throws SQLException { public void setNull(String parameterName, int sqlType, String typeName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1200,7 +1201,7 @@ public void setNull(String parameterName, int sqlType, String typeName) public void setObject(String parameterName, Object x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1213,7 +1214,7 @@ public void setObject(String parameterName, Object x) throws SQLException { public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1226,7 +1227,7 @@ public void setObject(String parameterName, Object x, int targetSqlType) public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1237,7 +1238,7 @@ public void setObject(String parameterName, Object x, int targetSqlType, public void setRowId(String parameterName, RowId x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1250,7 +1251,7 @@ public void setRowId(String parameterName, RowId x) throws SQLException { public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1261,7 +1262,7 @@ public void setSQLXML(String parameterName, SQLXML xmlObject) public void setShort(String parameterName, short x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1273,7 +1274,7 @@ public void setShort(String parameterName, short x) throws SQLException { public void setString(String parameterName, String x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1284,7 +1285,7 @@ public void setString(String parameterName, String x) throws SQLException { public void setTime(String parameterName, Time x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1297,7 +1298,7 @@ public void setTime(String parameterName, Time x) throws SQLException { public void setTime(String parameterName, Time x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1310,7 +1311,7 @@ public void setTime(String parameterName, Time x, Calendar cal) public void setTimestamp(String parameterName, Timestamp x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1323,7 +1324,7 @@ public void setTimestamp(String parameterName, Timestamp x) public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1334,7 +1335,7 @@ public void setTimestamp(String parameterName, Timestamp x, Calendar cal) public void setURL(String parameterName, URL val) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1345,7 +1346,7 @@ public void setURL(String parameterName, URL val) throws SQLException { public boolean wasNull() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1356,7 +1357,7 @@ public boolean wasNull() throws SQLException { public void addBatch() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1367,7 +1368,7 @@ public void addBatch() throws SQLException { public void clearParameters() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1378,7 +1379,7 @@ public void clearParameters() throws SQLException { public boolean execute() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1399,7 +1400,7 @@ public ResultSet executeQuery() throws SQLException { public int executeUpdate() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1410,7 +1411,7 @@ public int executeUpdate() throws SQLException { public ResultSetMetaData getMetaData() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1421,7 +1422,7 @@ public ResultSetMetaData getMetaData() throws SQLException { public ParameterMetaData getParameterMetaData() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1432,7 +1433,7 @@ public ParameterMetaData getParameterMetaData() throws SQLException { public void setArray(int i, Array x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1443,7 +1444,7 @@ public void setArray(int i, Array x) throws SQLException { public void setAsciiStream(int arg0, InputStream arg1) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1456,7 +1457,7 @@ public void setAsciiStream(int arg0, InputStream arg1) throws SQLException { public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1469,7 +1470,7 @@ public void setAsciiStream(int parameterIndex, InputStream x, int length) public void setAsciiStream(int arg0, InputStream arg1, long arg2) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1481,7 +1482,7 @@ public void setAsciiStream(int arg0, InputStream arg1, long arg2) public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1493,7 +1494,7 @@ public void setBigDecimal(int parameterIndex, BigDecimal x) public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1506,7 +1507,7 @@ public void setBinaryStream(int parameterIndex, InputStream x) public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1519,7 +1520,7 @@ public void setBinaryStream(int parameterIndex, InputStream x, int length) public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1530,7 +1531,7 @@ public void setBinaryStream(int parameterIndex, InputStream x, long length) public void setBlob(int i, Blob x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1542,7 +1543,7 @@ public void setBlob(int i, Blob x) throws SQLException { public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1554,7 +1555,7 @@ public void setBlob(int parameterIndex, InputStream inputStream) public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1565,7 +1566,7 @@ public void setBlob(int parameterIndex, InputStream inputStream, long length) public void setBoolean(int parameterIndex, boolean x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1576,7 +1577,7 @@ public void setBoolean(int parameterIndex, boolean x) throws SQLException { public void setByte(int parameterIndex, byte x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1587,7 +1588,7 @@ public void setByte(int parameterIndex, byte x) throws SQLException { public void setBytes(int parameterIndex, byte[] x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1599,7 +1600,7 @@ public void setBytes(int parameterIndex, byte[] x) throws SQLException { public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1612,7 +1613,7 @@ public void setCharacterStream(int parameterIndex, Reader reader) public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1625,7 +1626,7 @@ public void setCharacterStream(int parameterIndex, Reader reader, int length) public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1636,7 +1637,7 @@ public void setCharacterStream(int parameterIndex, Reader reader, long length) public void setClob(int i, Clob x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1647,7 +1648,7 @@ public void setClob(int i, Clob x) throws SQLException { public void setClob(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1659,7 +1660,7 @@ public void setClob(int parameterIndex, Reader reader) throws SQLException { public void setClob(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1670,7 +1671,7 @@ public void setClob(int parameterIndex, Reader reader, long length) public void setDate(int parameterIndex, Date x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1683,7 +1684,7 @@ public void setDate(int parameterIndex, Date x) throws SQLException { public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1694,7 +1695,7 @@ public void setDate(int parameterIndex, Date x, Calendar cal) public void setDouble(int parameterIndex, double x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1705,7 +1706,7 @@ public void setDouble(int parameterIndex, double x) throws SQLException { public void setFloat(int parameterIndex, float x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1716,7 +1717,7 @@ public void setFloat(int parameterIndex, float x) throws SQLException { public void setInt(int parameterIndex, int x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1727,7 +1728,7 @@ public void setInt(int parameterIndex, int x) throws SQLException { public void setLong(int parameterIndex, long x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1739,7 +1740,7 @@ public void setLong(int parameterIndex, long x) throws SQLException { public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1752,7 +1753,7 @@ public void setNCharacterStream(int parameterIndex, Reader value) public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1763,7 +1764,7 @@ public void setNCharacterStream(int parameterIndex, Reader value, long length) public void setNClob(int parameterIndex, NClob value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1774,7 +1775,7 @@ public void setNClob(int parameterIndex, NClob value) throws SQLException { public void setNClob(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1786,7 +1787,7 @@ public void setNClob(int parameterIndex, Reader reader) throws SQLException { public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1797,7 +1798,7 @@ public void setNClob(int parameterIndex, Reader reader, long length) public void setNString(int parameterIndex, String value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1808,7 +1809,7 @@ public void setNString(int parameterIndex, String value) throws SQLException { public void setNull(int parameterIndex, int sqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1820,7 +1821,7 @@ public void setNull(int parameterIndex, int sqlType) throws SQLException { public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1831,7 +1832,7 @@ public void setNull(int paramIndex, int sqlType, String typeName) public void setObject(int parameterIndex, Object x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1843,7 +1844,7 @@ public void setObject(int parameterIndex, Object x) throws SQLException { public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1855,7 +1856,7 @@ public void setObject(int parameterIndex, Object x, int targetSqlType) public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1866,7 +1867,7 @@ public void setObject(int parameterIndex, Object x, int targetSqlType, public void setRef(int i, Ref x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1877,7 +1878,7 @@ public void setRef(int i, Ref x) throws SQLException { public void setRowId(int parameterIndex, RowId x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1889,7 +1890,7 @@ public void setRowId(int parameterIndex, RowId x) throws SQLException { public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1900,7 +1901,7 @@ public void setSQLXML(int parameterIndex, SQLXML xmlObject) public void setShort(int parameterIndex, short x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1911,7 +1912,7 @@ public void setShort(int parameterIndex, short x) throws SQLException { public void setString(int parameterIndex, String x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1922,7 +1923,7 @@ public void setString(int parameterIndex, String x) throws SQLException { public void setTime(int parameterIndex, Time x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1935,7 +1936,7 @@ public void setTime(int parameterIndex, Time x) throws SQLException { public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1946,7 +1947,7 @@ public void setTime(int parameterIndex, Time x, Calendar cal) public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1959,7 +1960,7 @@ public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1970,7 +1971,7 @@ public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) public void setURL(int parameterIndex, URL x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1983,7 +1984,7 @@ public void setURL(int parameterIndex, URL x) throws SQLException { public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1994,7 +1995,7 @@ public void setUnicodeStream(int parameterIndex, InputStream x, int length) public void addBatch(String sql) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2005,7 +2006,7 @@ public void addBatch(String sql) throws SQLException { public void cancel() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2016,7 +2017,7 @@ public void cancel() throws SQLException { public void clearBatch() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2027,7 +2028,7 @@ public void clearBatch() throws SQLException { public void clearWarnings() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2038,17 +2039,17 @@ public void clearWarnings() throws SQLException { public void close() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void closeOnCompletion() throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isCloseOnCompletion() throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2059,7 +2060,7 @@ public boolean isCloseOnCompletion() throws SQLException { public boolean execute(String sql) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2070,7 +2071,7 @@ public boolean execute(String sql) throws SQLException { public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2081,7 +2082,7 @@ public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { public boolean execute(String sql, int[] columnIndexes) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2092,7 +2093,7 @@ public boolean execute(String sql, int[] columnIndexes) throws SQLException { public boolean execute(String sql, String[] columnNames) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2103,7 +2104,7 @@ public boolean execute(String sql, String[] columnNames) throws SQLException { public int[] executeBatch() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2114,7 +2115,7 @@ public boolean execute(String sql, String[] columnNames) throws SQLException { public ResultSet executeQuery(String sql) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2125,7 +2126,7 @@ public ResultSet executeQuery(String sql) throws SQLException { public int executeUpdate(String sql) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2137,7 +2138,7 @@ public int executeUpdate(String sql) throws SQLException { public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2148,7 +2149,7 @@ public int executeUpdate(String sql, int autoGeneratedKeys) public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2160,7 +2161,7 @@ public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { public int executeUpdate(String sql, String[] columnNames) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2181,7 +2182,7 @@ public Connection getConnection() throws SQLException { public int getFetchDirection() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2192,7 +2193,7 @@ public int getFetchDirection() throws SQLException { public int getFetchSize() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2203,7 +2204,7 @@ public int getFetchSize() throws SQLException { public ResultSet getGeneratedKeys() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2214,7 +2215,7 @@ public ResultSet getGeneratedKeys() throws SQLException { public int getMaxFieldSize() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2225,7 +2226,7 @@ public int getMaxFieldSize() throws SQLException { public int getMaxRows() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2236,7 +2237,7 @@ public int getMaxRows() throws SQLException { public boolean getMoreResults() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2247,7 +2248,7 @@ public boolean getMoreResults() throws SQLException { public boolean getMoreResults(int current) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2258,7 +2259,7 @@ public boolean getMoreResults(int current) throws SQLException { public int getQueryTimeout() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2269,7 +2270,7 @@ public int getQueryTimeout() throws SQLException { public ResultSet getResultSet() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2280,7 +2281,7 @@ public ResultSet getResultSet() throws SQLException { public int getResultSetConcurrency() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2291,7 +2292,7 @@ public int getResultSetConcurrency() throws SQLException { public int getResultSetHoldability() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2302,7 +2303,7 @@ public int getResultSetHoldability() throws SQLException { public int getResultSetType() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2313,7 +2314,7 @@ public int getResultSetType() throws SQLException { public int getUpdateCount() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2324,7 +2325,7 @@ public int getUpdateCount() throws SQLException { public SQLWarning getWarnings() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2335,7 +2336,7 @@ public SQLWarning getWarnings() throws SQLException { public boolean isClosed() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2346,7 +2347,7 @@ public boolean isClosed() throws SQLException { public boolean isPoolable() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2357,7 +2358,7 @@ public boolean isPoolable() throws SQLException { public void setCursorName(String name) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2368,7 +2369,7 @@ public void setCursorName(String name) throws SQLException { public void setEscapeProcessing(boolean enable) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2379,7 +2380,7 @@ public void setEscapeProcessing(boolean enable) throws SQLException { public void setFetchDirection(int direction) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2390,7 +2391,7 @@ public void setFetchDirection(int direction) throws SQLException { public void setFetchSize(int rows) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2401,7 +2402,7 @@ public void setFetchSize(int rows) throws SQLException { public void setMaxFieldSize(int max) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2412,7 +2413,7 @@ public void setMaxFieldSize(int max) throws SQLException { public void setMaxRows(int max) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2423,7 +2424,7 @@ public void setMaxRows(int max) throws SQLException { public void setPoolable(boolean arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2434,7 +2435,7 @@ public void setPoolable(boolean arg0) throws SQLException { public void setQueryTimeout(int seconds) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2445,7 +2446,7 @@ public void setQueryTimeout(int seconds) throws SQLException { public boolean isWrapperFor(Class iface) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -2456,7 +2457,7 @@ public boolean isWrapperFor(Class iface) throws SQLException { public T unwrap(Class iface) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } } diff --git jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java index d6cf744..5b71cde 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java @@ -91,6 +91,7 @@ import java.sql.ResultSet; import java.sql.SQLClientInfoException; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.sql.SQLWarning; import java.sql.SQLXML; import java.sql.Savepoint; @@ -740,7 +741,7 @@ private void setupLoginTimeout() { public void abort(Executor executor) throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getDelegationToken(String owner, String renewer) throws SQLException { @@ -824,7 +825,7 @@ public void close() throws SQLException { @Override public void commit() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -837,7 +838,7 @@ public void commit() throws SQLException { @Override public Array createArrayOf(String arg0, Object[] arg1) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -849,7 +850,7 @@ public Array createArrayOf(String arg0, Object[] arg1) throws SQLException { @Override public Blob createBlob() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -861,7 +862,7 @@ public Blob createBlob() throws SQLException { @Override public Clob createClob() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -873,7 +874,7 @@ public Clob createClob() throws SQLException { @Override public NClob createNClob() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -885,7 +886,7 @@ public NClob createNClob() throws SQLException { @Override public SQLXML createSQLXML() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /** @@ -935,7 +936,7 @@ public Statement createStatement(int resultSetType, int resultSetConcurrency) public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -948,7 +949,7 @@ public Statement createStatement(int resultSetType, int resultSetConcurrency, public Struct createStruct(String typeName, Object[] attributes) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -982,7 +983,7 @@ public String getCatalog() throws SQLException { @Override public Properties getClientInfo() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -994,7 +995,7 @@ public Properties getClientInfo() throws SQLException { @Override public String getClientInfo(String name) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1006,7 +1007,7 @@ public String getClientInfo(String name) throws SQLException { @Override public int getHoldability() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1025,7 +1026,7 @@ public DatabaseMetaData getMetaData() throws SQLException { public int getNetworkTimeout() throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getSchema() throws SQLException { @@ -1061,7 +1062,7 @@ public int getTransactionIsolation() throws SQLException { @Override public Map> getTypeMap() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1128,7 +1129,7 @@ public boolean isValid(int timeout) throws SQLException { @Override public String nativeSQL(String sql) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1140,7 +1141,7 @@ public String nativeSQL(String sql) throws SQLException { @Override public CallableStatement prepareCall(String sql) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1153,7 +1154,7 @@ public CallableStatement prepareCall(String sql) throws SQLException { public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1166,7 +1167,7 @@ public CallableStatement prepareCall(String sql, int resultSetType, public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1202,7 +1203,7 @@ public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1216,7 +1217,7 @@ public PreparedStatement prepareStatement(String sql, int[] columnIndexes) public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1241,7 +1242,7 @@ public PreparedStatement prepareStatement(String sql, int resultSetType, public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1253,7 +1254,7 @@ public PreparedStatement prepareStatement(String sql, int resultSetType, @Override public void releaseSavepoint(Savepoint savepoint) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1265,7 +1266,7 @@ public void releaseSavepoint(Savepoint savepoint) throws SQLException { @Override public void rollback() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1277,7 +1278,7 @@ public void rollback() throws SQLException { @Override public void rollback(Savepoint savepoint) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1353,12 +1354,12 @@ public void setClientInfo(String name, String value) @Override public void setHoldability(int holdability) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1390,7 +1391,7 @@ public void setReadOnly(boolean readOnly) throws SQLException { @Override public Savepoint setSavepoint() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1402,7 +1403,7 @@ public Savepoint setSavepoint() throws SQLException { @Override public Savepoint setSavepoint(String name) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public void setSchema(String schema) throws SQLException { @@ -1438,7 +1439,7 @@ public void setTransactionIsolation(int level) throws SQLException { @Override public void setTypeMap(Map> map) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1450,7 +1451,7 @@ public void setTypeMap(Map> map) throws SQLException { @Override public boolean isWrapperFor(Class iface) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -1462,7 +1463,7 @@ public boolean isWrapperFor(Class iface) throws SQLException { @Override public T unwrap(Class iface) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public TProtocolVersion getProtocol() { diff --git jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java index 58feb97..4cf4927 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveDataSource.java @@ -75,7 +75,7 @@ public Connection getConnection(String username, String password) @Override public PrintWriter getLogWriter() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -87,7 +87,7 @@ public PrintWriter getLogWriter() throws SQLException { @Override public int getLoginTimeout() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public Logger getParentLogger() throws SQLFeatureNotSupportedException { @@ -104,7 +104,7 @@ public Logger getParentLogger() throws SQLFeatureNotSupportedException { @Override public void setLogWriter(PrintWriter arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -116,7 +116,7 @@ public void setLogWriter(PrintWriter arg0) throws SQLException { @Override public void setLoginTimeout(int arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -128,7 +128,7 @@ public void setLoginTimeout(int arg0) throws SQLException { @Override public boolean isWrapperFor(Class arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -140,7 +140,7 @@ public boolean isWrapperFor(Class arg0) throws SQLException { @Override public T unwrap(Class arg0) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } } diff --git jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java index fa984f4..e3bdb68 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java @@ -23,6 +23,7 @@ import java.sql.ResultSet; import java.sql.RowIdLifetime; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.Arrays; import java.util.Comparator; import java.util.jar.Attributes; @@ -85,7 +86,7 @@ public HiveDatabaseMetaData(HiveConnection connection, TCLIService.Iface client, } public boolean allProceduresAreCallable() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean allTablesAreSelectable() throws SQLException { @@ -93,33 +94,33 @@ public boolean allTablesAreSelectable() throws SQLException { } public boolean autoCommitFailureClosesAllResultSets() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean dataDefinitionCausesTransactionCommit() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean dataDefinitionIgnoredInTransactions() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean deletesAreDetected(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getCatalogSeparator() throws SQLException { @@ -148,23 +149,23 @@ public ResultSet getCatalogs() throws SQLException { } public ResultSet getClientInfoProperties() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean generatedKeyAlwaysReturned() throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /** @@ -327,7 +328,7 @@ public String getDriverVersion() throws SQLException { public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getExtraNameCharacters() throws SQLException { @@ -337,7 +338,7 @@ public String getExtraNameCharacters() throws SQLException { public ResultSet getFunctionColumns(String arg0, String arg1, String arg2, String arg3) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getFunctions(String catalogName, String schemaPattern, String functionNamePattern) @@ -428,15 +429,15 @@ public int getJDBCMinorVersion() throws SQLException { } public int getMaxBinaryLiteralLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxCatalogNameLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxCharLiteralLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /** @@ -448,67 +449,67 @@ public int getMaxColumnNameLength() throws SQLException { } public int getMaxColumnsInGroupBy() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxColumnsInIndex() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxColumnsInOrderBy() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxColumnsInSelect() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxColumnsInTable() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxConnections() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxCursorNameLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxIndexLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxProcedureNameLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxRowSize() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxSchemaNameLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxStatementLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxStatements() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxTableNameLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxTablesInSelect() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getMaxUserNameLength() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getNumericFunctions() throws SQLException { @@ -572,15 +573,15 @@ public ResultSet getProcedures(String catalog, String schemaPattern, } public int getResultSetHoldability() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public RowIdLifetime getRowIdLifetime() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getSQLKeywords() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int getSQLStateType() throws SQLException { @@ -633,12 +634,12 @@ public String getStringFunctions() throws SQLException { public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getSystemFunctions() throws SQLException { @@ -647,7 +648,7 @@ public String getSystemFunctions() throws SQLException { public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getTableTypes() throws SQLException { @@ -771,123 +772,123 @@ public boolean next() throws SQLException { public T getObject(String columnLabel, Class type) throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T getObject(int columnIndex, Class type) throws SQLException { // JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } }; } public String getURL() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getUserName() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean insertsAreDetected(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isCatalogAtStart() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isReadOnly() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean locatorsUpdateCopy() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean nullPlusNonNullIsNull() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean nullsAreSortedAtEnd() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean nullsAreSortedAtStart() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean nullsAreSortedHigh() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean nullsAreSortedLow() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean othersDeletesAreVisible(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean othersInsertsAreVisible(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean othersUpdatesAreVisible(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean ownDeletesAreVisible(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean ownInsertsAreVisible(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean ownUpdatesAreVisible(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean storesLowerCaseIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean storesLowerCaseQuotedIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean storesMixedCaseIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean storesUpperCaseIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean storesUpperCaseQuotedIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsANSI92EntryLevelSQL() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsANSI92FullSQL() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsANSI92IntermediateSQL() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsAlterTableWithAddColumn() throws SQLException { @@ -927,40 +928,40 @@ public boolean supportsColumnAliasing() throws SQLException { } public boolean supportsConvert() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsConvert(int fromType, int toType) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsCoreSQLGrammar() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsCorrelatedSubqueries() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsDataManipulationTransactionsOnly() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsDifferentTableCorrelationNames() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsExpressionsInOrderBy() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsExtendedSQLGrammar() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsFullOuterJoins() throws SQLException { @@ -968,7 +969,7 @@ public boolean supportsFullOuterJoins() throws SQLException { } public boolean supportsGetGeneratedKeys() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsGroupBy() throws SQLException { @@ -976,19 +977,19 @@ public boolean supportsGroupBy() throws SQLException { } public boolean supportsGroupByBeyondSelect() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsGroupByUnrelated() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsIntegrityEnhancementFacility() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsLikeEscapeClause() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsLimitedOuterJoins() throws SQLException { @@ -996,19 +997,19 @@ public boolean supportsLimitedOuterJoins() throws SQLException { } public boolean supportsMinimumSQLGrammar() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsMixedCaseIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsMultipleOpenResults() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsMultipleResultSets() throws SQLException { @@ -1016,11 +1017,11 @@ public boolean supportsMultipleResultSets() throws SQLException { } public boolean supportsMultipleTransactions() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsNamedParameters() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsNonNullableColumns() throws SQLException { @@ -1028,23 +1029,23 @@ public boolean supportsNonNullableColumns() throws SQLException { } public boolean supportsOpenCursorsAcrossCommit() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsOpenCursorsAcrossRollback() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsOpenStatementsAcrossCommit() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsOpenStatementsAcrossRollback() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsOrderByUnrelated() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsOuterJoins() throws SQLException { @@ -1061,7 +1062,7 @@ public boolean supportsPositionedUpdate() throws SQLException { public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsResultSetHoldability(int holdability) @@ -1102,11 +1103,11 @@ public boolean supportsSelectForUpdate() throws SQLException { } public boolean supportsStatementPooling() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsStoredProcedures() throws SQLException { @@ -1114,28 +1115,28 @@ public boolean supportsStoredProcedures() throws SQLException { } public boolean supportsSubqueriesInComparisons() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsSubqueriesInExists() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsSubqueriesInIns() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsSubqueriesInQuantifieds() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsTableCorrelationNames() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsTransactionIsolationLevel(int level) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean supportsTransactions() throws SQLException { @@ -1151,23 +1152,23 @@ public boolean supportsUnionAll() throws SQLException { } public boolean updatesAreDetected(int type) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean usesLocalFilePerTable() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean usesLocalFiles() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isWrapperFor(Class iface) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T unwrap(Class iface) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public static void main(String[] args) throws SQLException { diff --git jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java index 590a2ed..b842634 100644 --- jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java +++ jdbc/src/java/org/apache/hive/jdbc/HivePreparedStatement.java @@ -34,6 +34,7 @@ import java.sql.ResultSetMetaData; import java.sql.RowId; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.sql.SQLXML; import java.sql.Time; import java.sql.Timestamp; @@ -74,7 +75,7 @@ public HivePreparedStatement(HiveConnection connection, TCLIService.Iface client public void addBatch() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -197,7 +198,7 @@ private String updateSql(final String sql, HashMap parameters) public ResultSetMetaData getMetaData() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -208,7 +209,7 @@ public ResultSetMetaData getMetaData() throws SQLException { public ParameterMetaData getParameterMetaData() throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -219,7 +220,7 @@ public ParameterMetaData getParameterMetaData() throws SQLException { public void setArray(int i, Array x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -230,7 +231,7 @@ public void setArray(int i, Array x) throws SQLException { public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -242,7 +243,7 @@ public void setAsciiStream(int parameterIndex, InputStream x) throws SQLExceptio public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -254,7 +255,7 @@ public void setAsciiStream(int parameterIndex, InputStream x, int length) throws public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -287,7 +288,7 @@ public void setBinaryStream(int parameterIndex, InputStream x) throws SQLExcepti public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -299,7 +300,7 @@ public void setBinaryStream(int parameterIndex, InputStream x, int length) throw public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -310,7 +311,7 @@ public void setBinaryStream(int parameterIndex, InputStream x, long length) thro public void setBlob(int i, Blob x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -321,7 +322,7 @@ public void setBlob(int i, Blob x) throws SQLException { public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -333,7 +334,7 @@ public void setBlob(int parameterIndex, InputStream inputStream) throws SQLExcep public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -364,7 +365,7 @@ public void setByte(int parameterIndex, byte x) throws SQLException { public void setBytes(int parameterIndex, byte[] x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -375,7 +376,7 @@ public void setBytes(int parameterIndex, byte[] x) throws SQLException { public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -388,7 +389,7 @@ public void setCharacterStream(int parameterIndex, Reader reader) throws SQLExce public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -401,7 +402,7 @@ public void setCharacterStream(int parameterIndex, Reader reader, int length) public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -412,7 +413,7 @@ public void setCharacterStream(int parameterIndex, Reader reader, long length) public void setClob(int i, Clob x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -423,7 +424,7 @@ public void setClob(int i, Clob x) throws SQLException { public void setClob(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -434,7 +435,7 @@ public void setClob(int parameterIndex, Reader reader) throws SQLException { public void setClob(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -456,7 +457,7 @@ public void setDate(int parameterIndex, Date x) throws SQLException { public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -507,7 +508,7 @@ public void setLong(int parameterIndex, long x) throws SQLException { public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -520,7 +521,7 @@ public void setNCharacterStream(int parameterIndex, Reader value) throws SQLExce public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -531,7 +532,7 @@ public void setNCharacterStream(int parameterIndex, Reader value, long length) public void setNClob(int parameterIndex, NClob value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -542,7 +543,7 @@ public void setNClob(int parameterIndex, NClob value) throws SQLException { public void setNClob(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -553,7 +554,7 @@ public void setNClob(int parameterIndex, Reader reader) throws SQLException { public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -564,7 +565,7 @@ public void setNClob(int parameterIndex, Reader reader, long length) throws SQLE public void setNString(int parameterIndex, String value) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -637,7 +638,7 @@ public void setObject(int parameterIndex, Object x) throws SQLException { public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -649,7 +650,7 @@ public void setObject(int parameterIndex, Object x, int targetSqlType) public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -660,7 +661,7 @@ public void setObject(int parameterIndex, Object x, int targetSqlType, int scale public void setRef(int i, Ref x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -671,7 +672,7 @@ public void setRef(int i, Ref x) throws SQLException { public void setRowId(int parameterIndex, RowId x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -682,7 +683,7 @@ public void setRowId(int parameterIndex, RowId x) throws SQLException { public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -714,7 +715,7 @@ public void setString(int parameterIndex, String x) throws SQLException { public void setTime(int parameterIndex, Time x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -726,7 +727,7 @@ public void setTime(int parameterIndex, Time x) throws SQLException { public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -749,7 +750,7 @@ public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -760,7 +761,7 @@ public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) public void setURL(int parameterIndex, URL x) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -773,6 +774,6 @@ public void setURL(int parameterIndex, URL x) throws SQLException { public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException { // TODO Auto-generated method stub - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } } diff --git jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java index 6a91381..33b9b84 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java @@ -24,6 +24,7 @@ import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.sql.Statement; import java.util.ArrayList; import java.util.Iterator; @@ -390,7 +391,7 @@ public boolean next() throws SQLException { ex.printStackTrace(); throw new SQLException("Error retrieving next row", ex); } - // NOTE: fetchOne dosn't throw new SQLException("Method not supported"). + // NOTE: fetchOne doesn't throw new SQLFeatureNotSupportedException("Method not supported"). return true; } @@ -432,12 +433,12 @@ public int getFetchSize() throws SQLException { public T getObject(String columnLabel, Class type) throws SQLException { //JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T getObject(int columnIndex, Class type) throws SQLException { //JDK 1.7 - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /** diff --git jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java index f6c38d8..942f38d 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java @@ -20,6 +20,7 @@ import java.sql.ResultSetMetaData; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.List; import org.apache.hadoop.hive.serde2.thrift.Type; @@ -42,7 +43,7 @@ public HiveResultSetMetaData(List columnNames, } public String getCatalogName(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } private Type getHiveType(int column) throws SQLException { @@ -94,11 +95,11 @@ public int getScale(int column) throws SQLException { } public String getSchemaName(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public String getTableName(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isAutoIncrement(int column) throws SQLException { @@ -124,7 +125,7 @@ public boolean isCurrency(int column) throws SQLException { } public boolean isDefinitelyWritable(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public int isNullable(int column) throws SQLException { @@ -137,23 +138,23 @@ public boolean isReadOnly(int column) throws SQLException { } public boolean isSearchable(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isSigned(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isWritable(int column) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public boolean isWrapperFor(Class iface) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } public T unwrap(Class iface) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } protected int toZeroIndex(int column) throws SQLException { diff --git jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java index 56860c4..c846a76 100644 --- jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java +++ jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java @@ -149,7 +149,7 @@ public HiveStatement(HiveConnection connection, TCLIService.Iface client, @Override public void addBatch(String sql) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -187,7 +187,7 @@ public void cancel() throws SQLException { @Override public void clearBatch() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -239,7 +239,7 @@ public void close() throws SQLException { // JDK 1.7 public void closeOnCompletion() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -416,7 +416,7 @@ private void initFlags() { @Override public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -427,7 +427,7 @@ public boolean execute(String sql, int autoGeneratedKeys) throws SQLException { @Override public boolean execute(String sql, int[] columnIndexes) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -438,7 +438,7 @@ public boolean execute(String sql, int[] columnIndexes) throws SQLException { @Override public boolean execute(String sql, String[] columnNames) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -449,7 +449,7 @@ public boolean execute(String sql, String[] columnNames) throws SQLException { @Override public int[] executeBatch() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -486,7 +486,7 @@ public int executeUpdate(String sql) throws SQLException { @Override public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -497,7 +497,7 @@ public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException @Override public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -508,7 +508,7 @@ public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { @Override public int executeUpdate(String sql, String[] columnNames) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -566,7 +566,7 @@ public ResultSet getGeneratedKeys() throws SQLException { @Override public int getMaxFieldSize() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -635,7 +635,7 @@ public ResultSet getResultSet() throws SQLException { @Override public int getResultSetConcurrency() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -646,7 +646,7 @@ public int getResultSetConcurrency() throws SQLException { @Override public int getResultSetHoldability() throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -737,7 +737,7 @@ public void setCursorName(String name) throws SQLException { @Override public void setEscapeProcessing(boolean enable) throws SQLException { if (enable) { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } } @@ -784,7 +784,7 @@ public void setFetchSize(int rows) throws SQLException { @Override public void setMaxFieldSize(int max) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* @@ -810,7 +810,7 @@ public void setMaxRows(int max) throws SQLException { @Override public void setPoolable(boolean poolable) throws SQLException { - throw new SQLException("Method not supported"); + throw new SQLFeatureNotSupportedException("Method not supported"); } /* diff --git jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java index 3ccd5df..b06703d 100644 --- jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java +++ jdbc/src/test/org/apache/hive/jdbc/HiveStatementTest.java @@ -17,11 +17,11 @@ */ package org.apache.hive.jdbc; -import static org.junit.Assert.assertEquals; +import org.junit.Test; import java.sql.SQLException; -import org.junit.Test; +import static org.junit.Assert.assertEquals; public class HiveStatementTest { @@ -45,4 +45,14 @@ public void testSetFetchSize3() throws SQLException { HiveStatement stmt = new HiveStatement(null, null, null); stmt.setFetchSize(-1); } + + @Test + public void testaddBatch() throws SQLException { + HiveStatement stmt = new HiveStatement(null, null, null); + try { + stmt.addBatch(null); + } catch (SQLException e) { + assertEquals("java.sql.SQLFeatureNotSupportedException: Method not supported", e.toString()); + } + } }