jdbm.helper
Class TupleBrowser

java.lang.Object
  extended by jdbm.helper.TupleBrowser

public abstract class TupleBrowser
extends java.lang.Object

Browser to traverse a collection of tuples. The browser allows for forward and reverse order traversal.

Version:
$Id: TupleBrowser.java,v 1.2 2001/05/19 14:02:00 boisvert Exp $
Author:
Alex Boisvert

Constructor Summary
TupleBrowser()
           
 
Method Summary
abstract  boolean getNext(Tuple tuple)
          Get the next tuple.
abstract  boolean getPrevious(Tuple tuple)
          Get the previous tuple.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleBrowser

public TupleBrowser()
Method Detail

getNext

public abstract boolean getNext(Tuple tuple)
                         throws java.io.IOException
Get the next tuple.

Parameters:
tuple - Tuple into which values are copied.
Returns:
True if values have been copied in tuple, or false if there is no next tuple.
Throws:
java.io.IOException

getPrevious

public abstract boolean getPrevious(Tuple tuple)
                             throws java.io.IOException
Get the previous tuple.

Parameters:
tuple - Tuple into which values are copied.
Returns:
True if values have been copied in tuple, or false if there is no previous tuple.
Throws:
java.io.IOException


Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net