jdbm.recman
Class LogicalRowIdManager

java.lang.Object
  extended by jdbm.recman.LogicalRowIdManager

final class LogicalRowIdManager
extends java.lang.Object

This class manages the linked lists of logical rowid pages.


Constructor Summary
LogicalRowIdManager(RecordFile file, PageManager pageman)
          Creates a log rowid manager using the indicated record file and page manager
 
Method Summary
(package private)  void delete(Location rowid)
          Releases the indicated logical rowid.
(package private)  Location fetch(Location rowid)
          Returns a mapping
(package private)  Location insert(Location loc)
          Creates a new logical rowid pointing to the indicated physical id
(package private)  void update(Location rowid, Location loc)
          Updates the mapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalRowIdManager

LogicalRowIdManager(RecordFile file,
                    PageManager pageman)
              throws java.io.IOException
Creates a log rowid manager using the indicated record file and page manager

Throws:
java.io.IOException
Method Detail

insert

Location insert(Location loc)
          throws java.io.IOException
Creates a new logical rowid pointing to the indicated physical id

Throws:
java.io.IOException

delete

void delete(Location rowid)
      throws java.io.IOException
Releases the indicated logical rowid.

Throws:
java.io.IOException

update

void update(Location rowid,
            Location loc)
      throws java.io.IOException
Updates the mapping

Parameters:
rowid - The logical rowid
loc - The physical rowid
Throws:
java.io.IOException

fetch

Location fetch(Location rowid)
         throws java.io.IOException
Returns a mapping

Parameters:
rowid - The logical rowid
Returns:
The physical rowid
Throws:
java.io.IOException


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