Class 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.

    • Field Detail

      • _wrappedResultSet

        private java.sql.ResultSet _wrappedResultSet
    • Constructor Detail

      • ForwardingVTI

        public ForwardingVTI()

        Construct from another ResultSet.

    • 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 interface java.sql.ResultSet
        Overrides:
        isClosed in class VTITemplate
        Throws:
        java.sql.SQLException
      • wasNull

        public boolean wasNull()
                        throws java.sql.SQLException
        Specified by:
        wasNull in interface java.sql.ResultSet
        Overrides:
        wasNull in class VTITemplate
        Throws:
        java.sql.SQLException
      • getMetaData

        public java.sql.ResultSetMetaData getMetaData()
                                               throws java.sql.SQLException
        Specified by:
        getMetaData in interface java.sql.ResultSet
        Overrides:
        getMetaData in class VTITemplate
        Throws:
        java.sql.SQLException
      • getAsciiStream

        public java.io.InputStream getAsciiStream​(int i)
                                           throws java.sql.SQLException
        Specified by:
        getAsciiStream in interface java.sql.ResultSet
        Overrides:
        getAsciiStream in class VTITemplate
        Throws:
        java.sql.SQLException
      • getBigDecimal

        public java.math.BigDecimal getBigDecimal​(int i)
                                           throws java.sql.SQLException
        Specified by:
        getBigDecimal in interface java.sql.ResultSet
        Overrides:
        getBigDecimal in class VTITemplate
        Throws:
        java.sql.SQLException
      • getBigDecimal

        @Deprecated
        public java.math.BigDecimal getBigDecimal​(int i,
                                                  int scale)
                                           throws java.sql.SQLException
        Deprecated.
        Specified by:
        getBigDecimal in interface java.sql.ResultSet
        Overrides:
        getBigDecimal in class VTITemplate
        Throws:
        java.sql.SQLException
      • getBinaryStream

        public java.io.InputStream getBinaryStream​(int i)
                                            throws java.sql.SQLException
        Specified by:
        getBinaryStream in interface java.sql.ResultSet
        Overrides:
        getBinaryStream in class VTITemplate
        Throws:
        java.sql.SQLException
      • getBlob

        public java.sql.Blob getBlob​(int i)
                              throws java.sql.SQLException
        Specified by:
        getBlob in interface java.sql.ResultSet
        Overrides:
        getBlob in class VTITemplate
        Throws:
        java.sql.SQLException
      • getBoolean

        public boolean getBoolean​(int i)
                           throws java.sql.SQLException
        Specified by:
        getBoolean in interface java.sql.ResultSet
        Overrides:
        getBoolean in class VTITemplate
        Throws:
        java.sql.SQLException
      • getByte

        public byte getByte​(int i)
                     throws java.sql.SQLException
        Specified by:
        getByte in interface java.sql.ResultSet
        Overrides:
        getByte in class VTITemplate
        Throws:
        java.sql.SQLException
      • getBytes

        public byte[] getBytes​(int i)
                        throws java.sql.SQLException
        Specified by:
        getBytes in interface java.sql.ResultSet
        Overrides:
        getBytes in class VTITemplate
        Throws:
        java.sql.SQLException
      • getCharacterStream

        public java.io.Reader getCharacterStream​(int i)
                                          throws java.sql.SQLException
        Specified by:
        getCharacterStream in interface java.sql.ResultSet
        Overrides:
        getCharacterStream in class VTITemplate
        Throws:
        java.sql.SQLException
      • getClob

        public java.sql.Clob getClob​(int i)
                              throws java.sql.SQLException
        Specified by:
        getClob in interface java.sql.ResultSet
        Overrides:
        getClob in class VTITemplate
        Throws:
        java.sql.SQLException
      • getDate

        public java.sql.Date getDate​(int i)
                              throws java.sql.SQLException
        Specified by:
        getDate in interface java.sql.ResultSet
        Overrides:
        getDate in class VTITemplate
        Throws:
        java.sql.SQLException
      • getDate

        public java.sql.Date getDate​(int i,
                                     java.util.Calendar cal)
                              throws java.sql.SQLException
        Specified by:
        getDate in interface java.sql.ResultSet
        Overrides:
        getDate in class VTITemplate
        Throws:
        java.sql.SQLException
      • getDouble

        public double getDouble​(int i)
                         throws java.sql.SQLException
        Specified by:
        getDouble in interface java.sql.ResultSet
        Overrides:
        getDouble in class VTITemplate
        Throws:
        java.sql.SQLException
      • getFloat

        public float getFloat​(int i)
                       throws java.sql.SQLException
        Specified by:
        getFloat in interface java.sql.ResultSet
        Overrides:
        getFloat in class VTITemplate
        Throws:
        java.sql.SQLException
      • getInt

        public int getInt​(int i)
                   throws java.sql.SQLException
        Specified by:
        getInt in interface java.sql.ResultSet
        Overrides:
        getInt in class VTITemplate
        Throws:
        java.sql.SQLException
      • getLong

        public long getLong​(int i)
                     throws java.sql.SQLException
        Specified by:
        getLong in interface java.sql.ResultSet
        Overrides:
        getLong in class VTITemplate
        Throws:
        java.sql.SQLException
      • getObject

        public java.lang.Object getObject​(int i)
                                   throws java.sql.SQLException
        Specified by:
        getObject in interface java.sql.ResultSet
        Overrides:
        getObject in class VTITemplate
        Throws:
        java.sql.SQLException
      • getShort

        public short getShort​(int i)
                       throws java.sql.SQLException
        Specified by:
        getShort in interface java.sql.ResultSet
        Overrides:
        getShort in class VTITemplate
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString​(int i)
                                   throws java.sql.SQLException
        Specified by:
        getString in interface java.sql.ResultSet
        Overrides:
        getString in class VTITemplate
        Throws:
        java.sql.SQLException
      • getTime

        public java.sql.Time getTime​(int i)
                              throws java.sql.SQLException
        Specified by:
        getTime in interface java.sql.ResultSet
        Overrides:
        getTime in class VTITemplate
        Throws:
        java.sql.SQLException
      • getTime

        public java.sql.Time getTime​(int i,
                                     java.util.Calendar cal)
                              throws java.sql.SQLException
        Specified by:
        getTime in interface java.sql.ResultSet
        Overrides:
        getTime in class VTITemplate
        Throws:
        java.sql.SQLException
      • getTimestamp

        public java.sql.Timestamp getTimestamp​(int i)
                                        throws java.sql.SQLException
        Specified by:
        getTimestamp in interface java.sql.ResultSet
        Overrides:
        getTimestamp in class VTITemplate
        Throws:
        java.sql.SQLException
      • getTimestamp

        public java.sql.Timestamp getTimestamp​(int i,
                                               java.util.Calendar cal)
                                        throws java.sql.SQLException
        Specified by:
        getTimestamp in interface java.sql.ResultSet
        Overrides:
        getTimestamp in class VTITemplate
        Throws:
        java.sql.SQLException