- 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 void
close()
InputStream
getAsciiStream(int i)
BigDecimal
getBigDecimal(int i)
BigDecimal
getBigDecimal(int i, int scale)
Deprecated.InputStream
getBinaryStream(int i)
Blob
getBlob(int i)
boolean
getBoolean(int i)
byte
getByte(int i)
byte[]
getBytes(int i)
Reader
getCharacterStream(int i)
Clob
getClob(int i)
Date
getDate(int i)
Date
getDate(int i, Calendar cal)
double
getDouble(int i)
float
getFloat(int i)
int
getInt(int i)
long
getLong(int i)
ResultSetMetaData
getMetaData()
Object
getObject(int i)
short
getShort(int i)
String
getString(int i)
Time
getTime(int i)
Time
getTime(int i, Calendar cal)
Timestamp
getTimestamp(int i)
Timestamp
getTimestamp(int i, Calendar cal)
ResultSet
getWrappedResultSet()
Get the wrapped ResultSet.boolean
isClosed()
boolean
next()
boolean
wasNull()
void
wrapResultSet(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:
isClosed
in interfaceResultSet
- Overrides:
isClosed
in classVTITemplate
- Throws:
SQLException
-
wasNull
public boolean wasNull() throws SQLException
- Specified by:
wasNull
in interfaceResultSet
- Overrides:
wasNull
in classVTITemplate
- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- Specified by:
getMetaData
in interfaceResultSet
- Overrides:
getMetaData
in classVTITemplate
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(int i) throws SQLException
- Specified by:
getAsciiStream
in interfaceResultSet
- Overrides:
getAsciiStream
in classVTITemplate
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int i) throws SQLException
- Specified by:
getBigDecimal
in interfaceResultSet
- Overrides:
getBigDecimal
in classVTITemplate
- Throws:
SQLException
-
getBigDecimal
@Deprecated public BigDecimal getBigDecimal(int i, int scale) throws SQLException
Deprecated.- Specified by:
getBigDecimal
in interfaceResultSet
- Overrides:
getBigDecimal
in classVTITemplate
- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(int i) throws SQLException
- Specified by:
getBinaryStream
in interfaceResultSet
- Overrides:
getBinaryStream
in classVTITemplate
- Throws:
SQLException
-
getBlob
public Blob getBlob(int i) throws SQLException
- Specified by:
getBlob
in interfaceResultSet
- Overrides:
getBlob
in classVTITemplate
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(int i) throws SQLException
- Specified by:
getBoolean
in interfaceResultSet
- Overrides:
getBoolean
in classVTITemplate
- Throws:
SQLException
-
getByte
public byte getByte(int i) throws SQLException
- Specified by:
getByte
in interfaceResultSet
- Overrides:
getByte
in classVTITemplate
- Throws:
SQLException
-
getBytes
public byte[] getBytes(int i) throws SQLException
- Specified by:
getBytes
in interfaceResultSet
- Overrides:
getBytes
in classVTITemplate
- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(int i) throws SQLException
- Specified by:
getCharacterStream
in interfaceResultSet
- Overrides:
getCharacterStream
in classVTITemplate
- Throws:
SQLException
-
getClob
public Clob getClob(int i) throws SQLException
- Specified by:
getClob
in interfaceResultSet
- Overrides:
getClob
in classVTITemplate
- Throws:
SQLException
-
getDate
public Date getDate(int i) throws SQLException
- Specified by:
getDate
in interfaceResultSet
- Overrides:
getDate
in classVTITemplate
- Throws:
SQLException
-
getDate
public Date getDate(int i, Calendar cal) throws SQLException
- Specified by:
getDate
in interfaceResultSet
- Overrides:
getDate
in classVTITemplate
- Throws:
SQLException
-
getDouble
public double getDouble(int i) throws SQLException
- Specified by:
getDouble
in interfaceResultSet
- Overrides:
getDouble
in classVTITemplate
- Throws:
SQLException
-
getFloat
public float getFloat(int i) throws SQLException
- Specified by:
getFloat
in interfaceResultSet
- Overrides:
getFloat
in classVTITemplate
- Throws:
SQLException
-
getInt
public int getInt(int i) throws SQLException
- Specified by:
getInt
in interfaceResultSet
- Overrides:
getInt
in classVTITemplate
- Throws:
SQLException
-
getLong
public long getLong(int i) throws SQLException
- Specified by:
getLong
in interfaceResultSet
- Overrides:
getLong
in classVTITemplate
- Throws:
SQLException
-
getObject
public Object getObject(int i) throws SQLException
- Specified by:
getObject
in interfaceResultSet
- Overrides:
getObject
in classVTITemplate
- Throws:
SQLException
-
getShort
public short getShort(int i) throws SQLException
- Specified by:
getShort
in interfaceResultSet
- Overrides:
getShort
in classVTITemplate
- Throws:
SQLException
-
getString
public String getString(int i) throws SQLException
- Specified by:
getString
in interfaceResultSet
- Overrides:
getString
in classVTITemplate
- Throws:
SQLException
-
getTime
public Time getTime(int i) throws SQLException
- Specified by:
getTime
in interfaceResultSet
- Overrides:
getTime
in classVTITemplate
- Throws:
SQLException
-
getTime
public Time getTime(int i, Calendar cal) throws SQLException
- Specified by:
getTime
in interfaceResultSet
- Overrides:
getTime
in classVTITemplate
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int i) throws SQLException
- Specified by:
getTimestamp
in interfaceResultSet
- Overrides:
getTimestamp
in classVTITemplate
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int i, Calendar cal) throws SQLException
- Specified by:
getTimestamp
in interfaceResultSet
- Overrides:
getTimestamp
in classVTITemplate
- Throws:
SQLException
-
-