org.exolab.core.database.recman
Class PageManagedDatabase

java.lang.Object
  extended by org.exolab.core.database.recman.PageManagedDatabase
All Implemented Interfaces:
DatabaseIfc

public class PageManagedDatabase
extends java.lang.Object
implements DatabaseIfc

This is a wrapper for PageManager supplied by Cees de Groot. This will be used to support Serailized data storage in a page-based file.

Version:
$version$
Author:
Jim Alateras
See Also:
Database

Constructor Summary
PageManagedDatabase(java.lang.String name)
          The constructor for a paged managed database takes a string to identify the name of the database.
 
Method Summary
 long allocateObject(int size)
          This method will pre-allocate an obect of a particular size.
 void bind(java.lang.String name, PersistentCapableIfc object)
          Bind the specified name to an object.
 void close()
          Close this database.
 void delete(PersistentCapableIfc object)
          Delete the specified object form the database.
 void deleteObject(long id)
          Delete the object with the specified id from the database.
protected  int getFirstFreeRootSlot()
          Return the next available root slot.
protected  org.exolab.core.database.recman.PMDRootTable getNamedRootTable()
          Return the named root table.
 java.util.Enumeration getRootNames()
          Return an enumeration of all the database root names.
 java.lang.Object getRootObject(java.lang.String name)
          Lookup the object specified by name.
 void insert(PersistentCapableIfc object)
          Insert the specified object into the database.
 long insertBoolean(boolean value)
          Insert the boolean entity into the database and return the id of the stored record.
 long insertByte(byte value)
          Insert the byte entity into the database and return the id of the stored record.
 long insertBytes(byte[] value)
          Insert the String entity into the database and return the id of the stored record.
 long insertChar(char value)
          Insert the char entity into the database and return the id of the stored record.
 long insertDouble(double value)
          Insert the double entity into the database and return the id of the stored record.
 long insertFloat(float value)
          Insert the float entity into the database and return the id of the stored record.
 long insertInt(int value)
          Insert the int entity into the database and return the id of the stored record.
 long insertLong(long value)
          Insert the long entity into the database and return the id of the stored record.
 long insertObject(java.lang.Object value)
          Insert the object entity into the database and return the id of the stored record.
 long insertShort(short value)
          Insert the short entity into the database and return the id of the stored record.
 long insertString(java.lang.String value)
          Insert the String entity into the database and return the id of the stored record.
 boolean isBound(java.lang.String name)
          Check if the specified object is already bound in the database
 boolean isOpen()
          Test if the database is open
 PersistentCapableIfc lookup(java.lang.String name)
          Lookup the object specified by name.
 void open()
          Opens the specified database.
 boolean readBoolean(long id)
          read the boolean from the database given the specified record id.
 byte readByte(long id)
          Read the byte from the database given the specified record id.
 byte[] readBytes(long id)
          Read the byte[] from the database given the specified record id.
 char readChar(long id)
          Read the char from the database given the specified record id.
 double readDouble(long id)
          Read the double from the database given the specified record id.
 float readFloat(long id)
          Read the float from the database given the specified record id.
 int readInt(long id)
          Read the int from the database given the specified record id.
 long readLong(long id)
          Read the long from the database given the specified record id.
 java.lang.Object readObject(long id)
          Read the object from the database given the specified record id.
 short readShort(long id)
          Read the short from the database given the specified record id.
 java.lang.String readString(long id)
          Read the string from the database given the specified record id.
 void removeRootObject(java.lang.String name)
          Remove the binding between the specified name and the object.If the nroot name does not exist then raise the ObjectNameNotFound= Exception.
protected  void setNamedRootTable(org.exolab.core.database.recman.PMDRootTable table)
          Set the named root table.
 void setObjectCacheSize(int size)
          Set the cache size for the database.
 void setRootObject(java.lang.String name, java.lang.Object object)
          Store the specified object with the passed in name.
 java.lang.String toString()
          This will print the names of all the root entries
 void unbind(java.lang.String name)
          Unbind the object associated with the specified name.
 void update(PersistentCapableIfc object)
          Update the specified object form the database.
 long updateBoolean(long id, boolean value)
          Insert the boolean entity into the database and return the id of the stored record.
 long updateByte(long id, byte value)
          Insert the byte entity into the database and return the id of the stored record.
 long updateBytes(long id, byte[] value)
          Insert the String entity into the database and return the id of the stored record.
 long updateChar(long id, char value)
          Insert the char entity into the database and return the id of the stored record.
 long updateDouble(long id, double value)
          Insert the double entity into the database and return the id of the stored record.
 long updateFloat(long id, float value)
          Insert the float entity into the database and return the id of the stored record.
 long updateInt(long id, int value)
          Insert the int entity into the database and return the id of the stored record.
 long updateLong(long id, long value)
          Insert the long entity into the database and return the id of the stored record.
protected  void updateNamedRootTable()
          Update the persistent copy of the named root table.
 long updateObject(long id, java.lang.Object value)
          Insert the object entity into the database and return the id of the stored record.
 long updateShort(long id, short value)
          Insert the short entity into the database and return the id of the stored record.
 long updateString(long id, java.lang.String value)
          Insert the String entity into the database and return the id of the stored record.
protected  long writeBoolean(long id, boolean value)
          Write the boolean to the database and return the id of the written entity.
protected  long writeByte(long id, byte value)
          Write the byte to the database and return the id of the written entity.
protected  long writeBytes(long id, byte[] value)
          Write the bytes[] to the database and return the id of the written entity.
protected  long writeChar(long id, char value)
          Write the char to the database and return the id of the written entity.
protected  long writeDouble(long id, double value)
          Write the double to the database and return the id of the written entity.
protected  long writeFloat(long id, float value)
          Write the float to the database and return the id of the written entity.
protected  long writeInt(long id, int value)
          Write the int to the database and return the id of the written entity.
protected  long writeLong(long id, long value)
          Write the long to the database and return the id of the written entity.
protected  long writeObject(long id, java.lang.Object value)
          Write the object to the database and return the id of the written entity.
protected  long writeShort(long id, short value)
          Write the short to the database and return the id of the written entity.
protected  long writeString(long id, java.lang.String value)
          Write the string to the database and return the id of the written entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageManagedDatabase

public PageManagedDatabase(java.lang.String name)
                    throws FailedToCreateDatabaseException
The constructor for a paged managed database takes a string to identify the name of the database.

Parameters:
name - name of the database
Throws:
FailedToCreateDatabaseException
Method Detail

open

public void open()
          throws FailedToOpenDatabaseException
Description copied from interface: DatabaseIfc
Opens the specified database. If it fails to open the database then it throws the FailedToOpenDatabase

Specified by:
open in interface DatabaseIfc
Throws:
FailedToOpenDatabaseException

close

public void close()
Description copied from interface: DatabaseIfc
Close this database. If it is already closed then this becomes a no-op

Specified by:
close in interface DatabaseIfc

isOpen

public boolean isOpen()
Description copied from interface: DatabaseIfc
Test if the database is open

Specified by:
isOpen in interface DatabaseIfc
Returns:
boolean true if it open and false otherwise

getRootNames

public java.util.Enumeration getRootNames()
Description copied from interface: DatabaseIfc
Return an enumeration of all the database root names. A database root is one that is bound by name and represents an entry point in the database.

Specified by:
getRootNames in interface DatabaseIfc
Returns:
Enumeration collection of root names (i.e .string)

bind

public void bind(java.lang.String name,
                 PersistentCapableIfc object)
          throws ObjectNameExistsException,
                 DatabaseIOException
Description copied from interface: DatabaseIfc
Bind the specified name to an object. All bound objects are actually database roots. If an object is already bound to this name the method throws the ObjectNameExistsException .

Specified by:
bind in interface DatabaseIfc
Parameters:
name - binding name
object - object to bind
Throws:
ObjectNameExistsException
DatabaseIOException

unbind

public void unbind(java.lang.String name)
            throws ObjectNameNotFoundException,
                   DatabaseIOException
Description copied from interface: DatabaseIfc
Unbind the object associated with the specified name. IF the name does not exist then throw the ObjectNameNotFoundException

Specified by:
unbind in interface DatabaseIfc
Parameters:
name - binding name
Throws:
ObjectNameNotFoundException
DatabaseIOException

lookup

public PersistentCapableIfc lookup(java.lang.String name)
Description copied from interface: DatabaseIfc
Lookup the object specified by name. If the object does not exists then return null.

Specified by:
lookup in interface DatabaseIfc
Parameters:
name - lookup name
Returns:
PersistentCapableIfc

getRootObject

public java.lang.Object getRootObject(java.lang.String name)
Lookup the object specified by name. If the object does not exists then return null.

Parameters:
name - lookup name
Returns:
PersistentCapableIfc

setRootObject

public void setRootObject(java.lang.String name,
                          java.lang.Object object)
                   throws ObjectNameExistsException,
                          DatabaseIOException
Store the specified object with the passed in name. This is stored as a root objeect. Root objects are special database entry points

If the name is already bound to another object then throw the ObjectNameExistsException exception. If there is any other error raise the DatabaseIOException exception

Parameters:
name - name of the object
object - object to bind
Throws:
ObjectNameExistsException
DatabaseIOException

removeRootObject

public void removeRootObject(java.lang.String name)
                      throws ObjectNameNotFoundException,
                             DatabaseIOException
Remove the binding between the specified name and the object.If the nroot name does not exist then raise the ObjectNameNotFound= Exception.

If there is any other problem removing the binding then throw the DatabaseIOException exception

Parameters:
name - name of the object
Throws:
ObjectNameNotFoundException
DatabaseIOException

isBound

public boolean isBound(java.lang.String name)
Check if the specified object is already bound in the database

Specified by:
isBound in interface DatabaseIfc
Parameters:
name - lookup name
Returns:
boolean true if name is bound top object

deleteObject

public void deleteObject(long id)
                  throws DatabaseIOException
Delete the object with the specified id from the database. If it fails to delete the object then throw the DatabaseIOException exception

Parameters:
id - id of object to destroy
Throws:
DatabaseIOException

allocateObject

public long allocateObject(int size)
                    throws DatabaseIOException
This method will pre-allocate an obect of a particular size. It will initially fill the block in will nulls. Thisi sone way to overcome some of the deficiencies of the JDBM, until a better block merging algorithm is available.

If it fails to delete the object then throw the DatabaseIOException exception.

Parameters:
int - sizeof the object
Returns:
long identity of the object
Throws:
DatabasEIOException
DatabaseIOException

insert

public void insert(PersistentCapableIfc object)
            throws DatabaseIOException
Description copied from interface: DatabaseIfc
Insert the specified object into the database. Throw DatabaseIOException if there is any problem

Specified by:
insert in interface DatabaseIfc
Parameters:
object - object to store
Throws:
DatabaseIOException

delete

public void delete(PersistentCapableIfc object)
            throws DatabaseIOException
Description copied from interface: DatabaseIfc
Delete the specified object form the database. Throw DatabaseIOException if there are any errors

Specified by:
delete in interface DatabaseIfc
Parameters:
object - object to delete
Throws:
DatabaseIOException

update

public void update(PersistentCapableIfc object)
            throws DatabaseIOException
Description copied from interface: DatabaseIfc
Update the specified object form the database. Throw DatabaseIOException if there are any errors

Specified by:
update in interface DatabaseIfc
Parameters:
object - object to update
Throws:
DatabaseIOException

insertBoolean

public long insertBoolean(boolean value)
                   throws DatabaseIOException
Insert the boolean entity into the database and return the id of the stored record.

Parameters:
value - boolean value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertByte

public long insertByte(byte value)
                throws DatabaseIOException
Insert the byte entity into the database and return the id of the stored record.

Parameters:
value - byte value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertShort

public long insertShort(short value)
                 throws DatabaseIOException
Insert the short entity into the database and return the id of the stored record.

Parameters:
value - short value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertChar

public long insertChar(char value)
                throws DatabaseIOException
Insert the char entity into the database and return the id of the stored record.

Parameters:
value - char value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertInt

public long insertInt(int value)
               throws DatabaseIOException
Insert the int entity into the database and return the id of the stored record.

Parameters:
value - int value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertLong

public long insertLong(long value)
                throws DatabaseIOException
Insert the long entity into the database and return the id of the stored record.

Parameters:
value - long value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertFloat

public long insertFloat(float value)
                 throws DatabaseIOException
Insert the float entity into the database and return the id of the stored record.

Parameters:
value - float value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertDouble

public long insertDouble(double value)
                  throws DatabaseIOException
Insert the double entity into the database and return the id of the stored record.

Parameters:
value - double value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertBytes

public long insertBytes(byte[] value)
                 throws DatabaseIOException
Insert the String entity into the database and return the id of the stored record.

Parameters:
value - bytes to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertString

public long insertString(java.lang.String value)
                  throws DatabaseIOException
Insert the String entity into the database and return the id of the stored record.

Parameters:
value - String value to store
Returns:
long id of entity
Throws:
DatabaseIOException

insertObject

public long insertObject(java.lang.Object value)
                  throws DatabaseIOException
Insert the object entity into the database and return the id of the stored record.

Parameters:
value - object value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateBoolean

public long updateBoolean(long id,
                          boolean value)
                   throws DatabaseIOException
Insert the boolean entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - boolean value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateByte

public long updateByte(long id,
                       byte value)
                throws DatabaseIOException
Insert the byte entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - byte value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateShort

public long updateShort(long id,
                        short value)
                 throws DatabaseIOException
Insert the short entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - short value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateChar

public long updateChar(long id,
                       char value)
                throws DatabaseIOException
Insert the char entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - char value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateInt

public long updateInt(long id,
                      int value)
               throws DatabaseIOException
Insert the int entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - int value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateLong

public long updateLong(long id,
                       long value)
                throws DatabaseIOException
Insert the long entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - long value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateFloat

public long updateFloat(long id,
                        float value)
                 throws DatabaseIOException
Insert the float entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - float value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateDouble

public long updateDouble(long id,
                         double value)
                  throws DatabaseIOException
Insert the double entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - double value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateBytes

public long updateBytes(long id,
                        byte[] value)
                 throws DatabaseIOException
Insert the String entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - bytes to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateString

public long updateString(long id,
                         java.lang.String value)
                  throws DatabaseIOException
Insert the String entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - String value to store
Returns:
long id of entity
Throws:
DatabaseIOException

updateObject

public long updateObject(long id,
                         java.lang.Object value)
                  throws DatabaseIOException
Insert the object entity into the database and return the id of the stored record.

Parameters:
id - record id of entity to update
value - object value to store
Returns:
long id of entity
Throws:
DatabaseIOException

readBoolean

public boolean readBoolean(long id)
                    throws DatabaseIOException
read the boolean from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
boolean returned value
Throws:
DatabaseIOException

readByte

public byte readByte(long id)
              throws DatabaseIOException
Read the byte from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
byte returned value
Throws:
DatabaseIOException

readShort

public short readShort(long id)
                throws DatabaseIOException
Read the short from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
short returned value
Throws:
DatabaseIOException

readChar

public char readChar(long id)
              throws DatabaseIOException
Read the char from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
char returned value
Throws:
DatabaseIOException

readInt

public int readInt(long id)
            throws DatabaseIOException
Read the int from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
int returned value
Throws:
DatabaseIOException

readLong

public long readLong(long id)
              throws DatabaseIOException
Read the long from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
long returned value
Throws:
DatabaseIOException

readFloat

public float readFloat(long id)
                throws DatabaseIOException
Read the float from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
float returned value
Throws:
DatabaseIOException

readDouble

public double readDouble(long id)
                  throws DatabaseIOException
Read the double from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
double returned value
Throws:
DatabaseIOException

readBytes

public byte[] readBytes(long id)
                 throws DatabaseIOException
Read the byte[] from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
byte[] returned value
Throws:
DatabaseIOException

readString

public java.lang.String readString(long id)
                            throws DatabaseIOException
Read the string from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
String returned value
Throws:
DatabaseIOException

readObject

public java.lang.Object readObject(long id)
                            throws DatabaseIOException
Read the object from the database given the specified record id. If it fails then it throws a DatabaseIOException.

Parameters:
id - record identifier
Returns:
Object returned value
Throws:
DatabaseIOException

setObjectCacheSize

public void setObjectCacheSize(int size)
Set the cache size for the database. If the cases is already configured then it is cleared and reset to the new size. Setting the sizeo to 0 will remove the cache. If 'count' is less than zero it will simply get ignored and a warning message will be issued

Parameters:
count - size of cache

writeBoolean

protected long writeBoolean(long id,
                            boolean value)
                     throws DatabaseIOException
Write the boolean to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - boolean value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeByte

protected long writeByte(long id,
                         byte value)
                  throws DatabaseIOException
Write the byte to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - byte value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeShort

protected long writeShort(long id,
                          short value)
                   throws DatabaseIOException
Write the short to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - short value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeChar

protected long writeChar(long id,
                         char value)
                  throws DatabaseIOException
Write the char to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - char value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeInt

protected long writeInt(long id,
                        int value)
                 throws DatabaseIOException
Write the int to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - long id if avaialable
value - int value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeLong

protected long writeLong(long id,
                         long value)
                  throws DatabaseIOException
Write the long to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - long value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeFloat

protected long writeFloat(long id,
                          float value)
                   throws DatabaseIOException
Write the float to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - float value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeDouble

protected long writeDouble(long id,
                           double value)
                    throws DatabaseIOException
Write the double to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - double value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeBytes

protected long writeBytes(long id,
                          byte[] value)
                   throws DatabaseIOException
Write the bytes[] to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - bytes[] value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeString

protected long writeString(long id,
                           java.lang.String value)
                    throws DatabaseIOException
Write the string to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

Parameters:
id - record id if avaialable
value - string value to store
Returns:
long id of entity
Throws:
DatabaseIOException

writeObject

protected long writeObject(long id,
                           java.lang.Object value)
                    throws DatabaseIOException
Write the object to the database and return the id of the written entity. If the value if id is UNASSIGNED then entity does not currently exist in the database, otherwise the entity exists so we need to update it. If it fails to write then throw a DatabaseIOException

This also does some additional work if the object is of type Persistent- ObjectIfc. It checks the minimumObjectSize to see whether it should create an object which is greater than the current streamed-object size. This is only valid in the 'insert' mode and can drastically effect the size of the database.

Parameters:
id - record id if avaialable
value - object value to store
Returns:
long id of entity
Throws:
DatabaseIOException

getFirstFreeRootSlot

protected int getFirstFreeRootSlot()
                            throws NoAvailableRootException,
                                   java.io.IOException
Return the next available root slot. If there are no free root nodes then throw NoAvailableRootException. If there is a generic error then throw the DatabaseIOException exception

Throws:
NoAvailableRootException
OException
java.io.IOException

setNamedRootTable

protected void setNamedRootTable(org.exolab.core.database.recman.PMDRootTable table)
                          throws java.io.IOException,
                                 DatabaseIOException
Set the named root table. It assumes that it already exists. Should only be called to replace the complete root table. It throws either DatabaseIOException or a IOException if there are any problems updating the root table

Parameters:
PMDRootTable - new root table
Throws:
DatabaseIOException
java.io.IOException

getNamedRootTable

protected org.exolab.core.database.recman.PMDRootTable getNamedRootTable()
Return the named root table. If it doesn't exist then create it. This holds all the named root nodes

Returns:
Hashtable

updateNamedRootTable

protected void updateNamedRootTable()
                             throws java.io.IOException,
                                    DatabaseIOException
Update the persistent copy of the named root table. If there is a problem with the update then propagate the IOException

Throws:
IOExcpetion
java.io.IOException
DatabaseIOException

toString

public java.lang.String toString()
This will print the names of all the root entries

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.