edu.indiana.util.db
Class RDBHashMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by edu.indiana.util.db.RDBHashMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class RDBHashMap
extends java.util.HashMap

This class can be used to store a HashMap into a database.

See Also:
Serialized Form

Constructor Summary
RDBHashMap(JDBCDriverInfo driverInfo, RDBCollectionInfo collectionInfo, RDBCollectionID collectionID)
          Constructor
 
Method Summary
 void updateMemoryToDB()
          Writes the hashmap from memory into the hashmaptable in the database.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RDBHashMap

public RDBHashMap(JDBCDriverInfo driverInfo,
                  RDBCollectionInfo collectionInfo,
                  RDBCollectionID collectionID)
           throws RDBException
Constructor

Parameters:
driverInfo - a JDBCDriverInfo
collectionInfo - a RDBCollectionInfo
collectionID - a RDBCollectionID
Throws:
RDBException
Method Detail

updateMemoryToDB

public void updateMemoryToDB()
                      throws NullTableNameException,
                             InvalidCollectionIDException
Writes the hashmap from memory into the hashmaptable in the database.

Throws:
NullTableNameException
InvalidCollectionIDException