Package org.apache.derby.vti
Class ForwardingVTI
- java.lang.Object
-
- org.apache.derby.vti.VTITemplate
-
- org.apache.derby.vti.ForwardingVTI
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.ResultSet,java.sql.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 Modifier and Type Field Description private java.sql.ResultSet_wrappedResultSet
-
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()java.io.InputStreamgetAsciiStream(int i)java.math.BigDecimalgetBigDecimal(int i)java.math.BigDecimalgetBigDecimal(int i, int scale)Deprecated.java.io.InputStreamgetBinaryStream(int i)java.sql.BlobgetBlob(int i)booleangetBoolean(int i)bytegetByte(int i)byte[]getBytes(int i)java.io.ReadergetCharacterStream(int i)java.sql.ClobgetClob(int i)java.sql.DategetDate(int i)java.sql.DategetDate(int i, java.util.Calendar cal)doublegetDouble(int i)floatgetFloat(int i)intgetInt(int i)longgetLong(int i)java.sql.ResultSetMetaDatagetMetaData()java.lang.ObjectgetObject(int i)shortgetShort(int i)java.lang.StringgetString(int i)java.sql.TimegetTime(int i)java.sql.TimegetTime(int i, java.util.Calendar cal)java.sql.TimestampgetTimestamp(int i)java.sql.TimestampgetTimestamp(int i, java.util.Calendar cal)java.sql.ResultSetgetWrappedResultSet()Get the wrapped ResultSet.booleanisClosed()protected intmapColumnNumber(int ourColumnNumber)This overridable method maps the ForwardVTI's column numbers to those of the wrapped ResultSetbooleannext()booleanwasNull()voidwrapResultSet(java.sql.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, 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, updateTimestamp
-
-
-
-
Method Detail
-
wrapResultSet
public final void wrapResultSet(java.sql.ResultSet wrappedResultSet)
Poke in another ResultSet to which we forward method calls.
-
getWrappedResultSet
public final java.sql.ResultSet getWrappedResultSet()
Get the wrapped ResultSet.
-
mapColumnNumber
protected int mapColumnNumber(int ourColumnNumber)
This overridable method maps the ForwardVTI's column numbers to those of the wrapped ResultSet
-
close
public void close() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
next
public boolean next() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLException- Specified by:
isClosedin interfacejava.sql.ResultSet- Overrides:
isClosedin classVTITemplate- Throws:
java.sql.SQLException
-
wasNull
public boolean wasNull() throws java.sql.SQLException- Specified by:
wasNullin interfacejava.sql.ResultSet- Overrides:
wasNullin classVTITemplate- Throws:
java.sql.SQLException
-
getMetaData
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException- Specified by:
getMetaDatain interfacejava.sql.ResultSet- Overrides:
getMetaDatain classVTITemplate- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream(int i) throws java.sql.SQLException- Specified by:
getAsciiStreamin interfacejava.sql.ResultSet- Overrides:
getAsciiStreamin classVTITemplate- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int i) throws java.sql.SQLException- Specified by:
getBigDecimalin interfacejava.sql.ResultSet- Overrides:
getBigDecimalin classVTITemplate- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(int i, int scale) throws java.sql.SQLExceptionDeprecated.- Specified by:
getBigDecimalin interfacejava.sql.ResultSet- Overrides:
getBigDecimalin classVTITemplate- Throws:
java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream(int i) throws java.sql.SQLException- Specified by:
getBinaryStreamin interfacejava.sql.ResultSet- Overrides:
getBinaryStreamin classVTITemplate- Throws:
java.sql.SQLException
-
getBlob
public java.sql.Blob getBlob(int i) throws java.sql.SQLException- Specified by:
getBlobin interfacejava.sql.ResultSet- Overrides:
getBlobin classVTITemplate- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean(int i) throws java.sql.SQLException- Specified by:
getBooleanin interfacejava.sql.ResultSet- Overrides:
getBooleanin classVTITemplate- Throws:
java.sql.SQLException
-
getByte
public byte getByte(int i) throws java.sql.SQLException- Specified by:
getBytein interfacejava.sql.ResultSet- Overrides:
getBytein classVTITemplate- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes(int i) throws java.sql.SQLException- Specified by:
getBytesin interfacejava.sql.ResultSet- Overrides:
getBytesin classVTITemplate- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream(int i) throws java.sql.SQLException- Specified by:
getCharacterStreamin interfacejava.sql.ResultSet- Overrides:
getCharacterStreamin classVTITemplate- Throws:
java.sql.SQLException
-
getClob
public java.sql.Clob getClob(int i) throws java.sql.SQLException- Specified by:
getClobin interfacejava.sql.ResultSet- Overrides:
getClobin classVTITemplate- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(int i) throws java.sql.SQLException- Specified by:
getDatein interfacejava.sql.ResultSet- Overrides:
getDatein classVTITemplate- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(int i, java.util.Calendar cal) throws java.sql.SQLException- Specified by:
getDatein interfacejava.sql.ResultSet- Overrides:
getDatein classVTITemplate- Throws:
java.sql.SQLException
-
getDouble
public double getDouble(int i) throws java.sql.SQLException- Specified by:
getDoublein interfacejava.sql.ResultSet- Overrides:
getDoublein classVTITemplate- Throws:
java.sql.SQLException
-
getFloat
public float getFloat(int i) throws java.sql.SQLException- Specified by:
getFloatin interfacejava.sql.ResultSet- Overrides:
getFloatin classVTITemplate- Throws:
java.sql.SQLException
-
getInt
public int getInt(int i) throws java.sql.SQLException- Specified by:
getIntin interfacejava.sql.ResultSet- Overrides:
getIntin classVTITemplate- Throws:
java.sql.SQLException
-
getLong
public long getLong(int i) throws java.sql.SQLException- Specified by:
getLongin interfacejava.sql.ResultSet- Overrides:
getLongin classVTITemplate- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int i) throws java.sql.SQLException- Specified by:
getObjectin interfacejava.sql.ResultSet- Overrides:
getObjectin classVTITemplate- Throws:
java.sql.SQLException
-
getShort
public short getShort(int i) throws java.sql.SQLException- Specified by:
getShortin interfacejava.sql.ResultSet- Overrides:
getShortin classVTITemplate- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(int i) throws java.sql.SQLException- Specified by:
getStringin interfacejava.sql.ResultSet- Overrides:
getStringin classVTITemplate- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(int i) throws java.sql.SQLException- Specified by:
getTimein interfacejava.sql.ResultSet- Overrides:
getTimein classVTITemplate- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(int i, java.util.Calendar cal) throws java.sql.SQLException- Specified by:
getTimein interfacejava.sql.ResultSet- Overrides:
getTimein classVTITemplate- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int i) throws java.sql.SQLException- Specified by:
getTimestampin interfacejava.sql.ResultSet- Overrides:
getTimestampin classVTITemplate- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int i, java.util.Calendar cal) throws java.sql.SQLException- Specified by:
getTimestampin interfacejava.sql.ResultSet- Overrides:
getTimestampin classVTITemplate- Throws:
java.sql.SQLException
-
-