Class CoreResultSet

  • All Implemented Interfaces:
    Codes
    Direct Known Subclasses:
    JDBC3ResultSet

    public abstract class CoreResultSet
    extends Object
    implements Codes
    Implements a JDBC ResultSet.
    • Field Detail

      • open

        public boolean open
      • maxRows

        public int maxRows
      • colsMeta

        public String[] colsMeta
      • meta

        protected boolean[][] meta
      • limitRows

        protected int limitRows
      • row

        protected int row
      • lastCol

        protected int lastCol
      • closeStmt

        public boolean closeStmt
    • Constructor Detail

      • CoreResultSet

        protected CoreResultSet​(CoreStatement stmt)
        Default constructor for a given statement.
        Parameters:
        stmt - The statement.
    • Method Detail

      • getDatabase

        protected DB getDatabase()
      • isOpen

        public boolean isOpen()
        Checks the status of the result set.
        Returns:
        True if has results and can iterate them; false otherwise.
      • checkCol

        public int checkCol​(int col)
                     throws SQLException
        Takes col in [1,x] form, returns in [0,x-1] form
        Parameters:
        col -
        Returns:
        Throws:
        SQLException
      • markCol

        protected int markCol​(int col)
                       throws SQLException
        Takes col in [1,x] form, marks it as last accessed and returns [0,x-1]
        Parameters:
        col -
        Returns:
        Throws:
        SQLException
      • findColumnIndexInCache

        protected Integer findColumnIndexInCache​(String col)
      • addColumnIndexInCache

        protected int addColumnIndexInCache​(String col,
                                            int index)