Package db
Interface RecordIterator
- 
- All Known Implementing Classes:
 AddressKeyRecordIterator,ConvertedRecordIterator,EmptyRecordIterator,KeyToRecordIterator,QueryRecordIterator,TranslatedRecordIterator
public interface RecordIteratorRecordIteratorprovides the ability to iterate over data records within a table. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete()Delete the last Record read via the next or previous methods.booleanhasNext()Return true if a Record is available in the forward direction.booleanhasPrevious()Return true if a Record is available in the reverse directionDBRecordnext()Return the nexy Record or null if one is not available.DBRecordprevious()Return the previous Record or null if one is not available. 
 - 
 
- 
- 
Method Detail
- 
hasNext
boolean hasNext() throws java.io.IOExceptionReturn 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.IOExceptionReturn true if a Record is available in the reverse direction- Throws:
 java.io.IOException- thrown if an IO error occurs
 
- 
next
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
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.IOExceptionDelete 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.
 
 - 
 
 -