Package db
Interface DBFieldIterator
-
public interface DBFieldIteratorDBFieldIteratorprovides the ability to iterate over Field values within a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete()Delete the last record(s) associated with the last Field value read via the next or previous methods.booleanhasNext()Return true if a Field is available in the forward direction.booleanhasPrevious()Return true if a Field is available in the reverse directionFieldnext()Return the next Field value or null if one is not available.Fieldprevious()Return the previous Field value or null if one is not available.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.io.IOExceptionReturn true if a Field 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 Field is available in the reverse direction- Throws:
java.io.IOException- thrown if an IO error occurs
-
next
Field next() throws java.io.IOException
Return the next Field value or null if one is not available.- Throws:
java.io.IOException- thrown if an IO error occurs
-
previous
Field previous() throws java.io.IOException
Return the previous Field value 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(s) associated with the last Field value read via the next or previous methods.- Returns:
- true if record(s) was successfully deleted.
- Throws:
java.io.IOException- thrown if an IO error occurs.
-
-