Java tutorial
/** * Starschema Big Query JDBC Driver * Copyright (C) 2012, Starschema Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * This class implements the java.sql.ResultSet interface's Cursor * */ package net.starschema.clouddb.jdbc; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.io.StringReader; import java.io.UnsupportedEncodingException; import java.math.BigDecimal; import java.net.MalformedURLException; import java.net.URL; import java.sql.Array; import java.sql.Blob; import java.sql.Clob; import java.sql.Date; import java.sql.NClob; import java.sql.Ref; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.RowId; import java.sql.SQLException; import java.sql.SQLWarning; import java.sql.SQLXML; import java.sql.Statement; import java.sql.Time; import java.sql.Timestamp; import java.util.Calendar; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; // import net.starschema.clouddb.bqjdbc.logging.Logger; /** * This class implements the java.sql.ResultSet interface's Cursor and is a * Superclass for BQResultset and DMDResultSet * * @author Horvth Attila * * @param <T> * Type of Array that cursor operates with */ abstract class ScrollableResultset<T> implements java.sql.ResultSet { protected final Log logger = LogFactory.getLog(getClass()); /** Reference for holding the current InputStream given back by get methods */ protected InputStream Strm = null; /** The boolean that holds if the last get has given back null or not */ protected boolean wasnull = false; /** The Array which get iterated with cursor */ protected T[] RowsofResult; /** This holds the current position of the cursor */ protected int Cursor = -1; /** This holds if the resultset is closed or not */ protected Boolean Closed = false; /** {@inheritDoc} */ @Override public boolean absolute(int row) throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null) { return false; } if (row > 0) { if (row <= this.RowsofResult.length) { this.Cursor = row - 1; return true; } else { // An attempt to position the cursor beyond the first/last row // in the result set leaves the cursor before the first row or // after the last row. this.Cursor = this.RowsofResult.length; // false if the cursor is before the first row or after the last // row return false; } } // If the given row number is negative, the cursor moves to an absolute // row position with respect to the end of the result set. else if (row < 0) { if (Math.abs(row) <= this.RowsofResult.length) { this.Cursor = this.RowsofResult.length + row; return true; } else { // An attempt to position the cursor beyond the first/last // row // in the result set leaves the cursor before the first row // or // after the last row. this.Cursor = -1; // false if the cursor is before the first row or after the // last // row return false; } } // if 0 else { /* * //Check if cursor is before first of after last row if * (this.Cursor == RowsofResult.size() || this.Cursor == -1) * return * false; else return true; */ if (this.Cursor == this.RowsofResult.length || this.Cursor == -1) { return false; } else { this.Cursor = -1; } return false; } } /** {@inheritDoc} */ @Override public void afterLast() throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null) { return; } if (this.RowsofResult.length > 0) { this.Cursor = this.RowsofResult.length; } } /** {@inheritDoc} */ @Override public void beforeFirst() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.RowsofResult == null) { return; } if (this.RowsofResult.length > 0) { this.Cursor = -1; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public void cancelRowUpdates() throws SQLException { throw new BQSQLFeatureNotSupportedException("cancelWorUpdates()"); } /** * <p> * <h1>Implementation Details:</h1><br> * Currently its a noop * </p> */ @Override public void clearWarnings() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is closed"); // TODO implement Warnings } } /** {@inheritDoc} */ @Override public void close() throws SQLException { // TODO free occupied resources this.Closed = true; this.RowsofResult = null; } /** * If the Strm reference is not null it closes the underlying stream, if an * error occurs throws SQLException</p> * * @throws SQLException * if error occurs while trying to close the stream */ protected void closestrm() throws SQLException { if (this.Strm != null) { try { this.Strm.close(); } catch (IOException e) { throw new BQSQLException(e); } } } /** * <p> * <h1>Implementation Details:</h1><br> * We support read only functions in the current version. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void deleteRow() throws SQLException { throw new BQSQLFeatureNotSupportedException("deleteRow()"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public int findColumn(String columnLabel) throws SQLException { throw new BQSQLException("Not implemented." + "findColumn(string)"); } /** {@inheritDoc} */ @Override public boolean first() throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null || this.RowsofResult.length == 0) { return false; } else { this.Cursor = 0; return true; } } /** * <p> * <h1>Implementation Details:</h1><br> * Arrays are not supported in the current version * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Array getArray(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException("getArray(int)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Arrays are not supported in the current version * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Array getArray(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException("getArray(string)"); } /** {@inheritDoc} */ @Override public InputStream getAsciiStream(int columnIndex) throws SQLException { this.closestrm(); java.io.InputStream inptstrm; String Value = this.getString(columnIndex); if (Value == null) { this.wasnull = true; this.Strm = null; return this.Strm; } else { this.wasnull = false; try { inptstrm = new java.io.ByteArrayInputStream(Value.getBytes("US-ASCII")); } catch (UnsupportedEncodingException e) { throw new BQSQLException(e); } this.Strm = inptstrm; return this.Strm; } } /** {@inheritDoc} */ @Override public InputStream getAsciiStream(String columnLabel) throws SQLException { this.closestrm(); java.io.InputStream inptstrm; String Value = this.getString(columnLabel); if (Value == null) { this.wasnull = true; this.Strm = null; return this.Strm; } else { this.wasnull = false; try { inptstrm = new java.io.ByteArrayInputStream(Value.getBytes("US-ASCII")); } catch (UnsupportedEncodingException e) { throw new BQSQLException(e); } this.Strm = inptstrm; return this.Strm; } } /** {@inheritDoc} */ @Override public BigDecimal getBigDecimal(int columnIndex) throws SQLException { String coltype = this.getMetaData().getColumnTypeName(columnIndex); if (coltype.equals("STRING")) { String Value = this.getString(columnIndex); if (this.wasNull()) { return null; } else { try { return new java.math.BigDecimal(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } else if (coltype.equals("INTEGER")) { int Value = this.getInt(columnIndex); if (this.wasNull()) { return null; } else { return new java.math.BigDecimal(Value); } } else if (coltype.equals("FLOAT")) { Float Value = this.getFloat(columnIndex); if (this.wasNull()) { return null; } else { return new java.math.BigDecimal(Value); } } else if (coltype.equals("BOOLEAN")) { throw new NumberFormatException("Cannot format Boolean to BigDecimal"); } else { throw new NumberFormatException("Undefined format"); } } // Implemented Get functions Using Cursor /** {@inheritDoc} */ @Override public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { return this.getBigDecimal(columnIndex).setScale(scale); } /** {@inheritDoc} */ @Override public BigDecimal getBigDecimal(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getBigDecimal(columnIndex); } /** {@inheritDoc} */ @Override public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getBigDecimal(columnIndex, scale); } /** {@inheritDoc} */ @Override public InputStream getBinaryStream(int columnIndex) throws SQLException { this.closestrm(); java.io.InputStream inptstrm; String Value = this.getString(columnIndex); if (Value == null) { this.wasnull = true; this.Strm = null; return this.Strm; } else { this.wasnull = false; inptstrm = new java.io.ByteArrayInputStream(Value.getBytes()); this.Strm = inptstrm; return this.Strm; } } /** {@inheritDoc} */ @Override public InputStream getBinaryStream(String columnLabel) throws SQLException { this.closestrm(); java.io.InputStream inptstrm; String Value = this.getString(columnLabel); if (Value == null) { this.wasnull = true; this.Strm = null; return this.Strm; } else { this.wasnull = false; inptstrm = new java.io.ByteArrayInputStream(Value.getBytes()); this.Strm = inptstrm; return this.Strm; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Blob getBlob(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException("getBlob(int)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Blob getBlob(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException("getBlob(string)"); } /** {@inheritDoc} */ @Override public boolean getBoolean(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return false; } else { return Boolean.parseBoolean(Value); } } /** {@inheritDoc} */ @Override public boolean getBoolean(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getBoolean(columnIndex); } /** {@inheritDoc} */ @Override public byte getByte(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return 0; } else { try { return Byte.parseByte(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public byte getByte(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getByte(columnIndex); } /** {@inheritDoc} */ @Override public byte[] getBytes(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return null; } else { return Value.getBytes(); } } /** {@inheritDoc} */ @Override public byte[] getBytes(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getBytes(columnIndex); } /** {@inheritDoc} */ @Override public Reader getCharacterStream(int columnIndex) throws SQLException { this.closestrm(); String Value = this.getString(columnIndex); if (Value == null) { this.wasnull = true; return null; } else { this.wasnull = false; Reader rdr = new StringReader(Value); return rdr; } } /** {@inheritDoc} */ @Override public Reader getCharacterStream(String columnLabel) throws SQLException { this.closestrm(); String Value = this.getString(columnLabel); if (Value == null) { this.wasnull = true; return null; } else { this.wasnull = false; Reader rdr = new StringReader(Value); return rdr; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Clob getClob(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException("getClob(int)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Clob getClob(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException("getClob(string)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Always Returns ResultSet.CONCUR_READ_ONLY * </p> * * @return ResultSet.CONCUR_READ_ONLY */ @Override public int getConcurrency() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } return ResultSet.CONCUR_READ_ONLY; } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public String getCursorName() throws SQLException { throw new BQSQLFeatureNotSupportedException("getCursorName()"); } /** {@inheritDoc} */ @Override public Date getDate(int columnIndex) throws SQLException { Long value = this.getLong(columnIndex); if (this.wasNull()) { return null; } else { return new java.sql.Date(value); } } /** {@inheritDoc} */ @Override public Date getDate(int columnIndex, Calendar cal) throws SQLException { Long value = this.getLong(columnIndex); if (this.wasNull()) { return null; } else { return new java.sql.Date(value + cal.getTimeZone().getRawOffset()); } } /** {@inheritDoc} */ @Override public Date getDate(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getDate(columnIndex); } /** {@inheritDoc} */ @Override public Date getDate(String columnLabel, Calendar cal) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getDate(columnIndex, cal); } /** {@inheritDoc} */ @Override public double getDouble(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return 0; } else { try { return Double.parseDouble(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public double getDouble(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getDouble(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public int getFetchDirection() throws SQLException { throw new BQSQLException("Not implemented." + "getFetchDirection()"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public int getFetchSize() throws SQLException { throw new BQSQLException("Not implemented." + "getfetchSize()"); } /** {@inheritDoc} */ @Override public float getFloat(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return 0; } else { try { return Float.parseFloat(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public float getFloat(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getFloat(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Read only mode, no commits. * </p> * * @return CLOSE_CURSORS_AT_COMMIT */ @Override public int getHoldability() throws SQLException { return ResultSet.CLOSE_CURSORS_AT_COMMIT; } /** {@inheritDoc} */ @Override public int getInt(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return 0; } else { try { return Integer.parseInt(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public int getInt(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getInt(columnIndex); } /** {@inheritDoc} */ @Override public long getLong(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return 0; } else { try { return Long.parseLong(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public long getLong(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getLong(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public ResultSetMetaData getMetaData() throws SQLException { logger.debug("ResultSetMetaData getMetaData()" + "Not implemented"); throw new BQSQLException("Not implemented." + "getMetaData()"); // TODO Implement } /** * <p> * <h1>Implementation Details:</h1><br> * Returns the value of getCharacterStream(columnIndex) * </p> * * @see #getCharacterStream(int) */ @Override public Reader getNCharacterStream(int columnIndex) throws SQLException { return this.getCharacterStream(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Returns the value of getCharacterStream(columnLabel) * </p> * * @see #getCharacterStream(String) */ @Override public Reader getNCharacterStream(String columnLabel) throws SQLException { return this.getCharacterStream(columnLabel); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public NClob getNClob(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException("getNClob(int"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public NClob getNClob(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException("getNClob(string)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Returns the value getString(columnIndex) * </p> * * @see #getString(int) */ @Override public String getNString(int columnIndex) throws SQLException { return this.getString(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Returns the value getString(columnLabel) * </p> * * @see #getString(String) */ @Override public String getNString(String columnLabel) throws SQLException { return this.getString(columnLabel); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException { throw new BQSQLFeatureNotSupportedException("getObject(int,Map)"); // TODO Implement TypeMaps } /** {@inheritDoc} */ @Override public Object getObject(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getObject(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Not s. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException { throw new BQSQLFeatureNotSupportedException("getObject(string,Map)"); // TODO Implement TypeMaps } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Ref getRef(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException("getRef(int)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public Ref getRef(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException("getref(String)"); } /** {@inheritDoc} */ @Override public int getRow() throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null || this.RowsofResult.length == 0 || this.Cursor == -1 || this.Cursor > this.RowsofResult.length - 1) { return 0; } else { return this.Cursor + 1; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public RowId getRowId(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException("getRowId(int)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public RowId getRowId(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException("getRowId(String)"); } /** {@inheritDoc} */ @Override public short getShort(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return 0; } else { try { return Short.parseShort(Value); } catch (NumberFormatException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public short getShort(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getShort(columnIndex); } /** {@inheritDoc} */ @Override public SQLXML getSQLXML(int columnIndex) throws SQLException { return new net.starschema.clouddb.jdbc.BQSQLXML(this.getString(columnIndex)); } /** {@inheritDoc} */ @Override public SQLXML getSQLXML(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getSQLXML(columnIndex); } /** * <p> * <h1>Implementation Details:</h1><br> * Always Returns null * </p> * * @return null */ @Override public Statement getStatement() throws SQLException { return null; } /** {@inheritDoc} */ @Override public String getString(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getString(columnIndex); } /** {@inheritDoc} */ @Override public Time getTime(int columnIndex) throws SQLException { Long value = this.getLong(columnIndex); if (this.wasNull()) { return null; } else { return new java.sql.Time(value); } } /** {@inheritDoc} */ @Override public Time getTime(int columnIndex, Calendar cal) throws SQLException { /* * Select STRFTIME_UTC_USEC(NOW(),'%x-%X%Z') AS One, * FORMAT_UTC_USEC(NOW()) as Two"; Result: One Two 08/21/12-15:40:45GMT * 2012-08-21 15:40:45.703908 */ Long value = this.getLong(columnIndex); if (this.wasNull()) { return null; } else { return new java.sql.Time(cal.getTimeZone().getRawOffset() + value); } } /** {@inheritDoc} */ @Override public Time getTime(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getTime(columnIndex); } /** {@inheritDoc} */ @Override public Time getTime(String columnLabel, Calendar cal) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getTime(columnIndex, cal); } /** {@inheritDoc} */ @Override public Timestamp getTimestamp(int columnIndex) throws SQLException { Long value = this.getLong(columnIndex); if (this.wasNull()) { return null; } else { return new java.sql.Timestamp(value); } } /** {@inheritDoc} */ @Override public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { Long value = this.getLong(columnIndex); if (this.wasNull()) { return null; } else { return new java.sql.Timestamp(cal.getTimeZone().getRawOffset() + value); } } /** {@inheritDoc} */ @Override public Timestamp getTimestamp(String columnLabel) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getTimestamp(columnIndex); } /** {@inheritDoc} */ @Override public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException { int columnIndex = this.findColumn(columnLabel); return this.getTimestamp(columnIndex, cal); } /** * <p> * <h1>Implementation Details:</h1><br> * Always returns ResultSet.TYPE_SCROLL_INSENSITIVE * </p> * * @return ResultSet.TYPE_SCROLL_INSENSITIVE */ @Override public int getType() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } return ResultSet.TYPE_SCROLL_INSENSITIVE; } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public InputStream getUnicodeStream(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException( "Deprecated. use getCharacterStream in place of getUnicodeStream"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public InputStream getUnicodeStream(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException( "Deprecated. use getCharacterStream in place of getUnicodeStream"); } /** {@inheritDoc} */ @Override public URL getURL(int columnIndex) throws SQLException { String Value = this.getString(columnIndex); if (this.wasNull()) { return null; } else { try { return new URL(Value); } catch (MalformedURLException e) { throw new BQSQLException(e); } } } /** {@inheritDoc} */ @Override public URL getURL(String columnLabel) throws SQLException { String Value = this.getString(columnLabel); if (this.wasNull()) { return null; } else { try { return new URL(Value); } catch (MalformedURLException e) { throw new BQSQLException(e); } } } /** * <p> * <h1>Implementation Details:</h1><br> * Always returns null * </p> * * @return null */ @Override public SQLWarning getWarnings() throws SQLException { // TODO implement error handling return null; } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void insertRow() throws SQLException { throw new BQSQLFeatureNotSupportedException("insertRow()"); } /** {@inheritDoc} */ @Override public boolean isAfterLast() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult != null && this.Cursor == this.RowsofResult.length && this.RowsofResult.length != 0) { return true; } else { return false; } } /** {@inheritDoc} */ @Override public boolean isBeforeFirst() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult != null && this.Cursor == -1 && this.RowsofResult.length != 0) { return true; } else { return false; } } /** {@inheritDoc} */ @Override public boolean isClosed() throws SQLException { return this.Closed; } /** {@inheritDoc} */ @Override public boolean isFirst() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.Cursor == 0 && this.RowsofResult != null && this.RowsofResult.length != 0) { return true; } else { return false; } } /** {@inheritDoc} */ @Override public boolean isLast() throws SQLException { if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult != null && this.Cursor == this.RowsofResult.length - 1 && this.RowsofResult.length - 1 >= 0) { return true; } else { return false; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @return false */ @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return false; } /** {@inheritDoc} */ @Override public boolean last() throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null || this.RowsofResult.length == 0) { return false; } else { this.Cursor = this.RowsofResult.length - 1; return true; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void moveToCurrentRow() throws SQLException { throw new BQSQLFeatureNotSupportedException("moveToCurrentRow()"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void moveToInsertRow() throws SQLException { throw new BQSQLFeatureNotSupportedException("moveToInsertRow()"); } /** {@inheritDoc} */ @Override public boolean next() throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null) { return false; } if (this.RowsofResult.length > this.Cursor + 1) { this.Cursor++; return true; } else { this.Cursor = this.RowsofResult.length; return false; } } /** {@inheritDoc} */ @Override public boolean previous() throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null) { return false; } if (this.Cursor > 0) { this.Cursor--; return true; } else { this.Cursor = -1; return false; } } /** * <p> * <h1>Implementation Details:</h1><br> * Not supported. * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void refreshRow() throws SQLException { throw new BQSQLFeatureNotSupportedException("refreshRow()"); } /** {@inheritDoc} */ @Override public boolean relative(int rows) throws SQLException { if (this.getType() == ResultSet.TYPE_FORWARD_ONLY) { throw new BQSQLException("The Type of the Resultset is TYPE_FORWARD_ONLY"); } if (this.isClosed()) { throw new BQSQLException("This Resultset is Closed"); } if (this.RowsofResult == null) { return false; } if (rows == 0) { if (this.RowsofResult.length != 0 && this.Cursor < this.RowsofResult.length && this.Cursor > -1) { return true; } else { return false; } } else if (rows < 0) { if (this.Cursor + rows < 0) { this.Cursor = -1; return false; } else { this.Cursor = this.Cursor + rows; return true; } } else if (rows + this.Cursor > (this.RowsofResult.length - 1)) { this.Cursor = this.RowsofResult.length; return false; } else { this.Cursor += rows; return true; } } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public boolean rowDeleted() throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public boolean rowInserted() throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public boolean rowUpdated() throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public void setFetchDirection(int direction) throws SQLException { throw new BQSQLException("Not implemented." + "setFetchDirection(int)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public void setFetchSize(int rows) throws SQLException { throw new BQSQLException("Not implemented." + "setFetchSize(int)"); } /** * @throws SQLException * if Cursor is not in a valid Position */ public void ThrowCursorNotValidExeption() throws SQLException { if (this.RowsofResult == null || this.RowsofResult.length == 0) { throw new BQSQLException("There are no rows in this Resultset" + String.valueOf(this.Cursor) + "RowsofResult.length" + String.valueOf(this.RowsofResult.length)); } else if (this.Cursor >= this.RowsofResult.length || this.Cursor <= -1) { throw new BQSQLException( "Cursor is not in a valid Position. Cursor Position is:" + String.valueOf(this.Cursor) + "RowsofResult.length" + String.valueOf(this.RowsofResult.length)); } } /** * <p> * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override @SuppressWarnings("hiding") public <T> T unwrap(Class<T> iface) throws SQLException { throw new BQSQLException("Not implemented." + "unwrap(Class<T>)"); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateArray(int columnIndex, Array x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateArray(String columnLabel, Array x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBlob(int columnIndex, Blob x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBlob(String columnLabel, Blob x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBoolean(int columnIndex, boolean x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBoolean(String columnLabel, boolean x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateByte(int columnIndex, byte x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateByte(String columnLabel, byte x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBytes(int columnIndex, byte[] x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateBytes(String columnLabel, byte[] x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateCharacterStream(int columnIndex, Reader x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateClob(int columnIndex, Clob x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateClob(int columnIndex, Reader reader) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateClob(int columnIndex, Reader reader, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateClob(String columnLabel, Clob x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateClob(String columnLabel, Reader reader) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Not impel * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateClob(String columnLabel, Reader reader, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateDate(int columnIndex, Date x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateDate(String columnLabel, Date x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateDouble(int columnIndex, double x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateDouble(String columnLabel, double x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateFloat(int columnIndex, float x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateFloat(String columnLabel, float x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateInt(int columnIndex, int x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateInt(String columnLabel, int x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateLong(int columnIndex, long x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateLong(String columnLabel, long x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNClob(int columnIndex, NClob nClob) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNClob(int columnIndex, Reader reader) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNClob(String columnLabel, NClob nClob) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNClob(String columnLabel, Reader reader) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNString(int columnIndex, String nString) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNString(String columnLabel, String nString) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNull(int columnIndex) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateNull(String columnLabel) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateObject(int columnIndex, Object x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateObject(String columnLabel, Object x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateRef(int columnIndex, Ref x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateRef(String columnLabel, Ref x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateRow() throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateRowId(int columnIndex, RowId x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateRowId(String columnLabel, RowId x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateShort(int columnIndex, short x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateShort(String columnLabel, short x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateString(int columnIndex, String x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateString(String columnLabel, String x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateTime(int columnIndex, Time x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateTime(String columnLabel, Time x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** * <p> * <h1>Implementation Details:</h1><br> * Throws BQSQLFeatureNotSupportedException * </p> * * @throws BQSQLFeatureNotSupportedException */ @Override public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException { throw new BQSQLFeatureNotSupportedException(); } /** {@inheritDoc} */ @Override public boolean wasNull() throws SQLException { return this.wasnull; } }