Package db

Interface RecordIterator

All Known Implementing Classes:
AddressKeyRecordIterator, ConvertedRecordIterator, EmptyRecordIterator, KeyToRecordIterator, QueryRecordIterator, TranslatedRecordIterator

public interface RecordIterator
RecordIterator provides the ability to iterate over data records within a table.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Delete the last Record read via the next or previous methods.
    boolean
    Return true if a Record is available in the forward direction.
    boolean
    Return true if a Record is available in the reverse direction
    Return the nexy Record or null if one is not available.
    Return the previous Record or null if one is not available.
  • Method Details

    • hasNext

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

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

      DBRecord next() throws IOException
      Return the nexy Record or null if one is not available.
      Throws:
      IOException - thrown if an IO error occurs
    • previous

      DBRecord previous() throws IOException
      Return the previous Record or null if one is not available.
      Throws:
      IOException - thrown if an IO error occurs
    • delete

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