net.starschema.clouddb.jdbc.ScrollableResultset Maven / Gradle / Ivy
Show all versions of bqjdbc Show documentation
/**
* Copyright (c) 2015, STARSCHEMA LTD. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
*
1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the
* above copyright notice, this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
*
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*
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.slf4j.Logger;
import org.slf4j.LoggerFactory;
// 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 Horváth Attila
* @param Type of Array that cursor operates with
*/
abstract class ScrollableResultset implements java.sql.ResultSet {
Logger logger = LoggerFactory.getLogger(ScrollableResultset.class);
/** 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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @throws BQSQLException
*/
@Override
public void cancelRowUpdates() throws SQLException {
throw new BQSQLFeatureNotSupportedException("cancelWorUpdates()");
}
/**
*
*
* Implementation Details:
*
*
* Currently its a noop
*/
@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
*
* @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);
}
}
}
/**
*
*
* Implementation Details:
*
*
* We support read only functions in the current version.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void deleteRow() throws SQLException {
throw new BQSQLFeatureNotSupportedException("deleteRow()");
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Arrays are not supported in the current version
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Array getArray(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getArray(int)");
}
/**
*
*
* Implementation Details:
*
*
* Arrays are not supported in the current version
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Blob getBlob(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getBlob(int)");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Clob getClob(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getClob(int)");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Clob getClob(String columnLabel) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getClob(string)");
}
/**
*
*
* Implementation Details:
*
*
* Always Returns ResultSet.CONCUR_READ_ONLY
*
* @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;
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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);
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @throws BQSQLException
*/
@Override
public int getFetchDirection() throws SQLException {
throw new BQSQLException("Not implemented." + "getFetchDirection()");
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @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);
}
/**
*
*
* Implementation Details:
*
*
* Read only mode, no commits.
*
* @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);
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @throws BQSQLException
*/
@Override
public ResultSetMetaData getMetaData() throws SQLException {
logger.debug("ResultSetMetaData getMetaData()" + "Not implemented");
throw new BQSQLException("Not implemented." + "getMetaData()");
// TODO Implement
}
/**
*
*
* Implementation Details:
*
*
* Returns the value of getCharacterStream(columnIndex)
*
* @see #getCharacterStream(int)
*/
@Override
public Reader getNCharacterStream(int columnIndex) throws SQLException {
return this.getCharacterStream(columnIndex);
}
/**
*
*
* Implementation Details:
*
*
* Returns the value of getCharacterStream(columnLabel)
*
* @see #getCharacterStream(String)
*/
@Override
public Reader getNCharacterStream(String columnLabel) throws SQLException {
return this.getCharacterStream(columnLabel);
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public NClob getNClob(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getNClob(int");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public NClob getNClob(String columnLabel) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getNClob(string)");
}
/**
*
*
* Implementation Details:
*
*
* Returns the value getString(columnIndex)
*
* @see #getString(int)
*/
@Override
public String getNString(int columnIndex) throws SQLException {
return this.getString(columnIndex);
}
/**
*
*
* Implementation Details:
*
*
* Returns the value getString(columnLabel)
*
* @see #getString(String)
*/
@Override
public String getNString(String columnLabel) throws SQLException {
return this.getString(columnLabel);
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Object getObject(int columnIndex, Map> 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);
}
/**
*
*
* Implementation Details:
*
*
* Not s.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Object getObject(String columnLabel, Map> map) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getObject(string,Map)");
// TODO Implement TypeMaps
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public Ref getRef(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getRef(int)");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public RowId getRowId(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException("getRowId(int)");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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);
}
/**
*
*
* Implementation Details:
*
*
* Always Returns null
*
* @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);
}
/**
*
*
* Implementation Details:
*
*
* Always returns ResultSet.TYPE_SCROLL_INSENSITIVE
*
* @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;
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException(
"Deprecated. use getCharacterStream in place of getUnicodeStream");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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);
}
}
}
/**
*
*
* Implementation Details:
*
*
* Always returns null
*
* @return null
*/
@Override
public SQLWarning getWarnings() throws SQLException {
// TODO implement error handling
return null;
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void moveToCurrentRow() throws SQLException {
throw new BQSQLFeatureNotSupportedException("moveToCurrentRow()");
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Not supported.
*
* @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;
}
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public boolean rowDeleted() throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public boolean rowInserted() throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public boolean rowUpdated() throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @throws BQSQLException
*/
@Override
public void setFetchDirection(int direction) throws SQLException {
throw new BQSQLException("Not implemented." + "setFetchDirection(int)");
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @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));
}
}
/**
*
*
* Implementation Details:
*
*
* Not implemented yet.
*
* @throws BQSQLException
*/
@Override
@SuppressWarnings("hiding")
public T unwrap(Class iface) throws SQLException {
throw new BQSQLException("Not implemented." + "unwrap(Class)");
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateArray(int columnIndex, Array x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateArray(String columnLabel, Array x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateAsciiStream(String columnLabel, InputStream x, long length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBinaryStream(String columnLabel, InputStream x, int length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBinaryStream(String columnLabel, InputStream x, long length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBlob(int columnIndex, Blob x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBlob(int columnIndex, InputStream inputStream, long length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBlob(String columnLabel, Blob x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBlob(String columnLabel, InputStream inputStream, long length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBoolean(int columnIndex, boolean x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBoolean(String columnLabel, boolean x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateByte(int columnIndex, byte x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateByte(String columnLabel, byte x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBytes(int columnIndex, byte[] x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateBytes(String columnLabel, byte[] x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateCharacterStream(String columnLabel, Reader reader, int length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateCharacterStream(String columnLabel, Reader reader, long length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateClob(int columnIndex, Clob x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateClob(int columnIndex, Reader reader) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateClob(String columnLabel, Clob x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateClob(String columnLabel, Reader reader) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Not impel
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateDate(int columnIndex, Date x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateDate(String columnLabel, Date x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateDouble(int columnIndex, double x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateDouble(String columnLabel, double x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateFloat(int columnIndex, float x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateFloat(String columnLabel, float x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateInt(int columnIndex, int x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateInt(String columnLabel, int x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateLong(int columnIndex, long x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateLong(String columnLabel, long x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNCharacterStream(String columnLabel, Reader reader, long length)
throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNClob(int columnIndex, Reader reader) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNClob(String columnLabel, Reader reader) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNString(int columnIndex, String nString) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNString(String columnLabel, String nString) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNull(int columnIndex) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateNull(String columnLabel) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateObject(int columnIndex, Object x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateObject(String columnLabel, Object x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateRef(int columnIndex, Ref x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateRef(String columnLabel, Ref x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateRow() throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateShort(int columnIndex, short x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateShort(String columnLabel, short x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateString(int columnIndex, String x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateString(String columnLabel, String x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateTime(int columnIndex, Time x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateTime(String columnLabel, Time x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @throws BQSQLFeatureNotSupportedException
*/
@Override
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
throw new BQSQLFeatureNotSupportedException();
}
/**
*
*
* Implementation Details:
*
*
* Throws BQSQLFeatureNotSupportedException
*
* @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;
}
}