jdbm.recman
Class PhysicalRowIdManager

java.lang.Object
  extended byjdbm.recman.PhysicalRowIdManager

final class PhysicalRowIdManager
extends java.lang.Object

This class manages physical row ids, and their data.


Constructor Summary
(package private) PhysicalRowIdManager(RecordFile file, PageManager pageManager)
          Creates a new rowid manager using the indicated record file.
 
Method Summary
(package private)  void delete(Location rowid)
          Deletes a record.
(package private)  byte[] fetch(Location rowid)
          Retrieves a record.
(package private)  Location insert(byte[] data, int start, int length)
          Inserts a new record.
(package private)  Location update(Location rowid, byte[] data, int start, int length)
          Updates an existing record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalRowIdManager

PhysicalRowIdManager(RecordFile file,
                     PageManager pageManager)
               throws java.io.IOException
Creates a new rowid manager using the indicated record file. and page manager.

Method Detail

insert

Location insert(byte[] data,
                int start,
                int length)
          throws java.io.IOException
Inserts a new record. Returns the new physical rowid.

Throws:
java.io.IOException

update

Location update(Location rowid,
                byte[] data,
                int start,
                int length)
          throws java.io.IOException
Updates an existing record. Returns the possibly changed physical rowid.

Throws:
java.io.IOException

delete

void delete(Location rowid)
      throws java.io.IOException
Deletes a record.

Throws:
java.io.IOException

fetch

byte[] fetch(Location rowid)
       throws java.io.IOException
Retrieves a record.

Throws:
java.io.IOException


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