edu.indiana.util.db
Class RDBHashSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by edu.indiana.util.db.RDBHashSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set

public class RDBHashSet
extends java.util.HashSet

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

See Also:
Serialized Form

Constructor Summary
RDBHashSet(JDBCDriverInfo driverInfo, RDBCollectionInfo collectionInfo, RDBCollectionID collectionID)
          Constructor
 
Method Summary
 void finalize()
          Method finalize
 void updateMemoryToDB()
          Writes the hashset from memory into the hashsettable in the database.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

RDBHashSet

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

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

finalize

public void finalize()
Method finalize

Overrides:
finalize in class java.lang.Object

updateMemoryToDB

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

Throws:
NullTableNameException
InvalidCollectionIDException