jdbm.recman
Class PageCursor

java.lang.Object
  extended byjdbm.recman.PageCursor

final class PageCursor
extends java.lang.Object

This class provides a cursor that can follow lists of pages bi-directionally.


Field Summary
(package private)  long current
           
(package private)  PageManager pageman
           
(package private)  short type
           
 
Constructor Summary
(package private) PageCursor(PageManager pageman, long current)
          Constructs a page cursor that starts at the indicated block.
(package private) PageCursor(PageManager pageman, short type)
          Constructs a page cursor that starts at the first block of the indicated list.
 
Method Summary
(package private)  long getCurrent()
          Returns the current value of the cursor.
(package private)  long next()
          Returns the next value of the cursor
(package private)  long prev()
          Returns the previous value of the cursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageman

PageManager pageman

current

long current

type

short type
Constructor Detail

PageCursor

PageCursor(PageManager pageman,
           long current)
Constructs a page cursor that starts at the indicated block.


PageCursor

PageCursor(PageManager pageman,
           short type)
     throws java.io.IOException
Constructs a page cursor that starts at the first block of the indicated list.

Method Detail

getCurrent

long getCurrent()
          throws java.io.IOException
Returns the current value of the cursor.

Throws:
java.io.IOException

next

long next()
    throws java.io.IOException
Returns the next value of the cursor

Throws:
java.io.IOException

prev

long prev()
    throws java.io.IOException
Returns the previous value of the cursor

Throws:
java.io.IOException


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