java.lang.AutoCloseable, java.sql.ResultSet, java.sql.Wrapper, AwareVTIForeignTableVTIpublic class ForwardingVTI extends VTITemplate
This class contains a table function which forwards its behavior to another ResultSet wrapped inside it.
VTITemplate.ColumnDescriptor| Modifier and Type | Field | Description |
|---|---|---|
private java.sql.ResultSet |
_wrappedResultSet |
| Constructor | Description |
|---|---|
ForwardingVTI() |
Construct from another ResultSet.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
java.io.InputStream |
getAsciiStream(int i) |
|
java.math.BigDecimal |
getBigDecimal(int i) |
|
java.math.BigDecimal |
getBigDecimal(int i,
int scale) |
Deprecated.
|
java.io.InputStream |
getBinaryStream(int i) |
|
java.sql.Blob |
getBlob(int i) |
|
boolean |
getBoolean(int i) |
|
byte |
getByte(int i) |
|
byte[] |
getBytes(int i) |
|
java.io.Reader |
getCharacterStream(int i) |
|
java.sql.Clob |
getClob(int i) |
|
java.sql.Date |
getDate(int i) |
|
java.sql.Date |
getDate(int i,
java.util.Calendar cal) |
|
double |
getDouble(int i) |
|
float |
getFloat(int i) |
|
int |
getInt(int i) |
|
long |
getLong(int i) |
|
java.sql.ResultSetMetaData |
getMetaData() |
|
java.lang.Object |
getObject(int i) |
|
short |
getShort(int i) |
|
java.lang.String |
getString(int i) |
|
java.sql.Time |
getTime(int i) |
|
java.sql.Time |
getTime(int i,
java.util.Calendar cal) |
|
java.sql.Timestamp |
getTimestamp(int i) |
|
java.sql.Timestamp |
getTimestamp(int i,
java.util.Calendar cal) |
|
java.sql.ResultSet |
getWrappedResultSet() |
Get the wrapped ResultSet.
|
boolean |
isClosed() |
|
protected int |
mapColumnNumber(int ourColumnNumber) |
This overridable method maps the ForwardVTI's column numbers to those of the wrapped ResultSet
|
boolean |
next() |
|
boolean |
wasNull() |
|
void |
wrapResultSet(java.sql.ResultSet wrappedResultSet) |
Poke in another ResultSet to which we forward method calls.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateObject, updateObject, updateObject, updateObjectabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getConcurrency, getContext, getCursorName, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getHoldability, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getReturnTableSignature, getRow, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setContext, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamppublic final void wrapResultSet(java.sql.ResultSet wrappedResultSet)
public final java.sql.ResultSet getWrappedResultSet()
protected int mapColumnNumber(int ourColumnNumber)
public void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean next()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.ResultSetisClosed in class VTITemplatejava.sql.SQLExceptionpublic boolean wasNull()
throws java.sql.SQLException
wasNull in interface java.sql.ResultSetwasNull in class VTITemplatejava.sql.SQLExceptionpublic java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.ResultSetgetMetaData in class VTITemplatejava.sql.SQLExceptionpublic java.io.InputStream getAsciiStream(int i)
throws java.sql.SQLException
getAsciiStream in interface java.sql.ResultSetgetAsciiStream in class VTITemplatejava.sql.SQLExceptionpublic java.math.BigDecimal getBigDecimal(int i)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetgetBigDecimal in class VTITemplatejava.sql.SQLException@Deprecated
public java.math.BigDecimal getBigDecimal(int i,
int scale)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetgetBigDecimal in class VTITemplatejava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(int i)
throws java.sql.SQLException
getBinaryStream in interface java.sql.ResultSetgetBinaryStream in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Blob getBlob(int i)
throws java.sql.SQLException
getBlob in interface java.sql.ResultSetgetBlob in class VTITemplatejava.sql.SQLExceptionpublic boolean getBoolean(int i)
throws java.sql.SQLException
getBoolean in interface java.sql.ResultSetgetBoolean in class VTITemplatejava.sql.SQLExceptionpublic byte getByte(int i)
throws java.sql.SQLException
getByte in interface java.sql.ResultSetgetByte in class VTITemplatejava.sql.SQLExceptionpublic byte[] getBytes(int i)
throws java.sql.SQLException
getBytes in interface java.sql.ResultSetgetBytes in class VTITemplatejava.sql.SQLExceptionpublic java.io.Reader getCharacterStream(int i)
throws java.sql.SQLException
getCharacterStream in interface java.sql.ResultSetgetCharacterStream in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Clob getClob(int i)
throws java.sql.SQLException
getClob in interface java.sql.ResultSetgetClob in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Date getDate(int i)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetgetDate in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Date getDate(int i,
java.util.Calendar cal)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetgetDate in class VTITemplatejava.sql.SQLExceptionpublic double getDouble(int i)
throws java.sql.SQLException
getDouble in interface java.sql.ResultSetgetDouble in class VTITemplatejava.sql.SQLExceptionpublic float getFloat(int i)
throws java.sql.SQLException
getFloat in interface java.sql.ResultSetgetFloat in class VTITemplatejava.sql.SQLExceptionpublic int getInt(int i)
throws java.sql.SQLException
getInt in interface java.sql.ResultSetgetInt in class VTITemplatejava.sql.SQLExceptionpublic long getLong(int i)
throws java.sql.SQLException
getLong in interface java.sql.ResultSetgetLong in class VTITemplatejava.sql.SQLExceptionpublic java.lang.Object getObject(int i)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetgetObject in class VTITemplatejava.sql.SQLExceptionpublic short getShort(int i)
throws java.sql.SQLException
getShort in interface java.sql.ResultSetgetShort in class VTITemplatejava.sql.SQLExceptionpublic java.lang.String getString(int i)
throws java.sql.SQLException
getString in interface java.sql.ResultSetgetString in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Time getTime(int i)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetgetTime in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Time getTime(int i,
java.util.Calendar cal)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetgetTime in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(int i)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetgetTimestamp in class VTITemplatejava.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(int i,
java.util.Calendar cal)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetgetTimestamp in class VTITemplatejava.sql.SQLExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.