Interface ResultSetReader


  • public interface ResultSetReader
    Author:
    Sergey Polovko
    • Method Detail

      • isTruncated

        boolean isTruncated()
        Returns true if the result was truncated, false otherwise.
      • getColumnCount

        int getColumnCount()
        Returns number of columns.
      • getRowCount

        int getRowCount()
        Returns number of rows.
      • setRowIndex

        void setRowIndex​(int index)
        Explicitly switch to a specific row.
      • next

        boolean next()
        Set iterator to the next table row. On success tryNextRow will reset all column parsers to the values in next row. Column parsers are invalid before the first TryNextRow call.
      • getColumnName

        String getColumnName​(int index)
        Returns column name by index.
      • getColumnIndex

        int getColumnIndex​(String name)
        Returns column index by name or -1 if column with given name is not present.
      • getColumn

        ValueReader getColumn​(int index)
        Returns value reader for column by index.
      • getColumn

        ValueReader getColumn​(String name)
        Returns value reader for column by name.
      • getColumnType

        Type getColumnType​(int index)
        Returns column type by index (always create a new type instance)