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