Package db

Interface RecordIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      ChangeModifier and Type Method Description
      boolean delete()
      Delete the last Record read via the next or previous methods.
      boolean hasNext()
      Return true if a Record is available in the forward direction.
      boolean hasPrevious()
      Return true if a Record is available in the reverse direction
      MODIFIEDDBRecord next()
      Return the nexy Record or null if one is not available.
      MODIFIEDDBRecord previous()
      Return the previous Record or null if one is not available.
    • Method Detail

      • hasNext

        boolean hasNext()
                 throws java.io.IOException
        Return true if a Record is available in the forward direction.
        Throws:
        java.io.IOException - thrown if an IO error occurs
      • hasPrevious

        boolean hasPrevious()
                     throws java.io.IOException
        Return true if a Record is available in the reverse direction
        Throws:
        java.io.IOException - thrown if an IO error occurs
      • next MODIFIED

        return type: Record → DBRecord
        -db.Record next() throws IOException
        +db.DBRecord next() throws IOException
        DBRecord next()
               throws java.io.IOException
        Return the nexy Record or null if one is not available.
        Throws:
        java.io.IOException - thrown if an IO error occurs
      • previous MODIFIED

        return type: Record → DBRecord
        -db.Record previous() throws IOException
        +db.DBRecord previous() throws IOException
        DBRecord previous()
                   throws java.io.IOException
        Return the previous Record or null if one is not available.
        Throws:
        java.io.IOException - thrown if an IO error occurs
      • delete

        boolean delete()
                throws java.io.IOException
        Delete the last Record read via the next or previous methods.
        Returns:
        true if record was successfully deleted.
        Throws:
        java.io.IOException - thrown if an IO error occurs.