Package db

Interface RecordIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier 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
      Record next()
      Return the nexy Record or null if one is not available.
      Record 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

        Record 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

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