- java.lang.Object
-
- org.apache.derby.vti.VTITemplate
-
- org.apache.derby.vti.ForwardingVTI
-
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper,AwareVTI
- Direct Known Subclasses:
ForeignTableVTI
public class ForwardingVTI extends VTITemplate
This class contains a table function which forwards its behavior to another ResultSet wrapped inside it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.derby.vti.VTITemplate
VTITemplate.ColumnDescriptor
-
-
Field Summary
-
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
-
-
Constructor Summary
Constructors Constructor Description ForwardingVTI()Construct from another ResultSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()InputStreamgetAsciiStream(int i)BigDecimalgetBigDecimal(int i)BigDecimalgetBigDecimal(int i, int scale)Deprecated.InputStreamgetBinaryStream(int i)BlobgetBlob(int i)booleangetBoolean(int i)bytegetByte(int i)byte[]getBytes(int i)ReadergetCharacterStream(int i)ClobgetClob(int i)DategetDate(int i)DategetDate(int i, Calendar cal)doublegetDouble(int i)floatgetFloat(int i)intgetInt(int i)longgetLong(int i)ResultSetMetaDatagetMetaData()ObjectgetObject(int i)shortgetShort(int i)StringgetString(int i)TimegetTime(int i)TimegetTime(int i, Calendar cal)TimestampgetTimestamp(int i)TimestampgetTimestamp(int i, Calendar cal)ResultSetgetWrappedResultSet()Get the wrapped ResultSet.booleanisClosed()booleannext()booleanwasNull()voidwrapResultSet(ResultSet wrappedResultSet)Poke in another ResultSet to which we forward method calls.-
Methods inherited from class org.apache.derby.vti.VTITemplate
absolute, 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, 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, updateTimestamp
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
-
-
-
Method Detail
-
wrapResultSet
public final void wrapResultSet(ResultSet wrappedResultSet)
Poke in another ResultSet to which we forward method calls.- Parameters:
wrappedResultSet- ResultSet to which to forward method calls
-
getWrappedResultSet
public final ResultSet getWrappedResultSet()
Get the wrapped ResultSet.- Returns:
- the wrapped ResultSet
-
close
public void close() throws SQLException- Throws:
SQLException
-
next
public boolean next() throws SQLException- Throws:
SQLException
-
isClosed
public boolean isClosed() throws SQLException- Specified by:
isClosedin interfaceResultSet- Overrides:
isClosedin classVTITemplate- Throws:
SQLException
-
wasNull
public boolean wasNull() throws SQLException- Specified by:
wasNullin interfaceResultSet- Overrides:
wasNullin classVTITemplate- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- Specified by:
getMetaDatain interfaceResultSet- Overrides:
getMetaDatain classVTITemplate- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(int i) throws SQLException
- Specified by:
getAsciiStreamin interfaceResultSet- Overrides:
getAsciiStreamin classVTITemplate- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int i) throws SQLException
- Specified by:
getBigDecimalin interfaceResultSet- Overrides:
getBigDecimalin classVTITemplate- Throws:
SQLException
-
getBigDecimal
@Deprecated public BigDecimal getBigDecimal(int i, int scale) throws SQLException
Deprecated.- Specified by:
getBigDecimalin interfaceResultSet- Overrides:
getBigDecimalin classVTITemplate- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(int i) throws SQLException
- Specified by:
getBinaryStreamin interfaceResultSet- Overrides:
getBinaryStreamin classVTITemplate- Throws:
SQLException
-
getBlob
public Blob getBlob(int i) throws SQLException
- Specified by:
getBlobin interfaceResultSet- Overrides:
getBlobin classVTITemplate- Throws:
SQLException
-
getBoolean
public boolean getBoolean(int i) throws SQLException- Specified by:
getBooleanin interfaceResultSet- Overrides:
getBooleanin classVTITemplate- Throws:
SQLException
-
getByte
public byte getByte(int i) throws SQLException- Specified by:
getBytein interfaceResultSet- Overrides:
getBytein classVTITemplate- Throws:
SQLException
-
getBytes
public byte[] getBytes(int i) throws SQLException- Specified by:
getBytesin interfaceResultSet- Overrides:
getBytesin classVTITemplate- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(int i) throws SQLException
- Specified by:
getCharacterStreamin interfaceResultSet- Overrides:
getCharacterStreamin classVTITemplate- Throws:
SQLException
-
getClob
public Clob getClob(int i) throws SQLException
- Specified by:
getClobin interfaceResultSet- Overrides:
getClobin classVTITemplate- Throws:
SQLException
-
getDate
public Date getDate(int i) throws SQLException
- Specified by:
getDatein interfaceResultSet- Overrides:
getDatein classVTITemplate- Throws:
SQLException
-
getDate
public Date getDate(int i, Calendar cal) throws SQLException
- Specified by:
getDatein interfaceResultSet- Overrides:
getDatein classVTITemplate- Throws:
SQLException
-
getDouble
public double getDouble(int i) throws SQLException- Specified by:
getDoublein interfaceResultSet- Overrides:
getDoublein classVTITemplate- Throws:
SQLException
-
getFloat
public float getFloat(int i) throws SQLException- Specified by:
getFloatin interfaceResultSet- Overrides:
getFloatin classVTITemplate- Throws:
SQLException
-
getInt
public int getInt(int i) throws SQLException- Specified by:
getIntin interfaceResultSet- Overrides:
getIntin classVTITemplate- Throws:
SQLException
-
getLong
public long getLong(int i) throws SQLException- Specified by:
getLongin interfaceResultSet- Overrides:
getLongin classVTITemplate- Throws:
SQLException
-
getObject
public Object getObject(int i) throws SQLException
- Specified by:
getObjectin interfaceResultSet- Overrides:
getObjectin classVTITemplate- Throws:
SQLException
-
getShort
public short getShort(int i) throws SQLException- Specified by:
getShortin interfaceResultSet- Overrides:
getShortin classVTITemplate- Throws:
SQLException
-
getString
public String getString(int i) throws SQLException
- Specified by:
getStringin interfaceResultSet- Overrides:
getStringin classVTITemplate- Throws:
SQLException
-
getTime
public Time getTime(int i) throws SQLException
- Specified by:
getTimein interfaceResultSet- Overrides:
getTimein classVTITemplate- Throws:
SQLException
-
getTime
public Time getTime(int i, Calendar cal) throws SQLException
- Specified by:
getTimein interfaceResultSet- Overrides:
getTimein classVTITemplate- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int i) throws SQLException
- Specified by:
getTimestampin interfaceResultSet- Overrides:
getTimestampin classVTITemplate- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int i, Calendar cal) throws SQLException
- Specified by:
getTimestampin interfaceResultSet- Overrides:
getTimestampin classVTITemplate- Throws:
SQLException
-
-