Class ResultSetToResultAdapter

  • All Implemented Interfaces:
    IResult

    public class ResultSetToResultAdapter
    extends java.lang.Object
    implements IResult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Array getArray​(int columnIndex)  
      java.sql.Array getArray​(java.lang.String columnName)  
      java.io.InputStream getAsciiStream​(int columnIndex)  
      java.io.InputStream getBinaryStream​(int columnIndex)  
      java.lang.Boolean getBoolean​(int columnIndex)  
      boolean getBoolean​(int columnIndex, boolean nullValue)  
      java.lang.Byte getByte​(int columnIndex)  
      byte getByte​(int columnIndex, byte nullValue)  
      byte[] getBytes​(int columnIndex)  
      java.util.List<java.lang.String> getColumnNames()  
      java.sql.Date getDate​(int columnIndex)  
      java.lang.Double getDouble​(int columnIndex)  
      double getDouble​(int columnIndex, double nullValue)  
      java.lang.Float getFloat​(int columnIndex)  
      float getFloat​(int columnIndex, float nullValue)  
      java.lang.Integer getInteger​(int columnIndex)  
      int getInteger​(int columnIndex, int nullValue)  
      java.lang.Long getLong​(int columnIndex)  
      long getLong​(int columnIndex, long nullValue)  
      int getNumberOfValues()  
      java.lang.Object getObject​(int columnIndex)  
      java.lang.Object getObject​(java.lang.String columnName)  
      int getRow()  
      java.lang.Short getShort​(int columnIndex)  
      short getShort​(int columnIndex, short nullValue)  
      java.lang.String getString​(int columnIndex)  
      java.lang.String getString​(java.lang.String columnName)  
      java.sql.Time getTime​(int columnIndex)  
      java.sql.Timestamp getTimestamp​(int columnIndex)  
      boolean hasColumn​(java.lang.String columnName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultSetToResultAdapter

        public ResultSetToResultAdapter​(java.sql.ResultSet resultSet)
    • Method Detail

      • getRow

        public int getRow()
                   throws java.sql.SQLException
        Specified by:
        getRow in interface IResult
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString​(int columnIndex)
                                   throws java.sql.SQLException
        Specified by:
        getString in interface IResult
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString​(java.lang.String columnName)
                                   throws java.sql.SQLException
        Specified by:
        getString in interface IResult
        Throws:
        java.sql.SQLException
      • getBoolean

        public java.lang.Boolean getBoolean​(int columnIndex)
                                     throws java.sql.SQLException
        Specified by:
        getBoolean in interface IResult
        Throws:
        java.sql.SQLException
      • getBoolean

        public boolean getBoolean​(int columnIndex,
                                  boolean nullValue)
                           throws java.sql.SQLException
        Specified by:
        getBoolean in interface IResult
        Throws:
        java.sql.SQLException
      • getByte

        public java.lang.Byte getByte​(int columnIndex)
                               throws java.sql.SQLException
        Specified by:
        getByte in interface IResult
        Throws:
        java.sql.SQLException
      • getByte

        public byte getByte​(int columnIndex,
                            byte nullValue)
                     throws java.sql.SQLException
        Specified by:
        getByte in interface IResult
        Throws:
        java.sql.SQLException
      • getShort

        public java.lang.Short getShort​(int columnIndex)
                                 throws java.sql.SQLException
        Specified by:
        getShort in interface IResult
        Throws:
        java.sql.SQLException
      • getShort

        public short getShort​(int columnIndex,
                              short nullValue)
                       throws java.sql.SQLException
        Specified by:
        getShort in interface IResult
        Throws:
        java.sql.SQLException
      • getInteger

        public java.lang.Integer getInteger​(int columnIndex)
                                     throws java.sql.SQLException
        Specified by:
        getInteger in interface IResult
        Throws:
        java.sql.SQLException
      • getInteger

        public int getInteger​(int columnIndex,
                              int nullValue)
                       throws java.sql.SQLException
        Specified by:
        getInteger in interface IResult
        Throws:
        java.sql.SQLException
      • getLong

        public java.lang.Long getLong​(int columnIndex)
                               throws java.sql.SQLException
        Specified by:
        getLong in interface IResult
        Throws:
        java.sql.SQLException
      • getLong

        public long getLong​(int columnIndex,
                            long nullValue)
                     throws java.sql.SQLException
        Specified by:
        getLong in interface IResult
        Throws:
        java.sql.SQLException
      • getFloat

        public java.lang.Float getFloat​(int columnIndex)
                                 throws java.sql.SQLException
        Specified by:
        getFloat in interface IResult
        Throws:
        java.sql.SQLException
      • getFloat

        public float getFloat​(int columnIndex,
                              float nullValue)
                       throws java.sql.SQLException
        Specified by:
        getFloat in interface IResult
        Throws:
        java.sql.SQLException
      • getDouble

        public java.lang.Double getDouble​(int columnIndex)
                                   throws java.sql.SQLException
        Specified by:
        getDouble in interface IResult
        Throws:
        java.sql.SQLException
      • getDouble

        public double getDouble​(int columnIndex,
                                double nullValue)
                         throws java.sql.SQLException
        Specified by:
        getDouble in interface IResult
        Throws:
        java.sql.SQLException
      • getBytes

        public byte[] getBytes​(int columnIndex)
                        throws java.sql.SQLException
        Specified by:
        getBytes in interface IResult
        Throws:
        java.sql.SQLException
      • getDate

        public java.sql.Date getDate​(int columnIndex)
                              throws java.sql.SQLException
        Specified by:
        getDate in interface IResult
        Throws:
        java.sql.SQLException
      • getTime

        public java.sql.Time getTime​(int columnIndex)
                              throws java.sql.SQLException
        Specified by:
        getTime in interface IResult
        Throws:
        java.sql.SQLException
      • getTimestamp

        public java.sql.Timestamp getTimestamp​(int columnIndex)
                                        throws java.sql.SQLException
        Specified by:
        getTimestamp in interface IResult
        Throws:
        java.sql.SQLException
      • getAsciiStream

        public java.io.InputStream getAsciiStream​(int columnIndex)
                                           throws java.sql.SQLException
        Specified by:
        getAsciiStream in interface IResult
        Throws:
        java.sql.SQLException
      • getBinaryStream

        public java.io.InputStream getBinaryStream​(int columnIndex)
                                            throws java.sql.SQLException
        Specified by:
        getBinaryStream in interface IResult
        Throws:
        java.sql.SQLException
      • getObject

        public java.lang.Object getObject​(int columnIndex)
                                   throws java.sql.SQLException
        Specified by:
        getObject in interface IResult
        Throws:
        java.sql.SQLException
      • getObject

        public java.lang.Object getObject​(java.lang.String columnName)
                                   throws java.sql.SQLException
        Specified by:
        getObject in interface IResult
        Throws:
        java.sql.SQLException
      • getArray

        public java.sql.Array getArray​(int columnIndex)
                                throws java.sql.SQLException
        Specified by:
        getArray in interface IResult
        Throws:
        java.sql.SQLException
      • getArray

        public java.sql.Array getArray​(java.lang.String columnName)
                                throws java.sql.SQLException
        Specified by:
        getArray in interface IResult
        Throws:
        java.sql.SQLException
      • getNumberOfValues

        public int getNumberOfValues()
                              throws java.sql.SQLException
        Specified by:
        getNumberOfValues in interface IResult
        Throws:
        java.sql.SQLException
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
                                                        throws java.sql.SQLException
        Specified by:
        getColumnNames in interface IResult
        Throws:
        java.sql.SQLException
      • hasColumn

        public boolean hasColumn​(java.lang.String columnName)
                          throws java.sql.SQLException
        Specified by:
        hasColumn in interface IResult
        Throws:
        java.sql.SQLException