edu.indiana.util.db
Class RDBHashSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
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
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 |
RDBHashSet
public RDBHashSet(JDBCDriverInfo driverInfo,
RDBCollectionInfo collectionInfo,
RDBCollectionID collectionID)
throws RDBException
- Constructor
- Parameters:
driverInfo
- a JDBCDriverInfocollectionInfo
- a RDBCollectionInfocollectionID
- a RDBCollectionID
- Throws:
RDBException
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