All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.roguewave.vsj.streamer.DefinePersistableTemplColl

java.lang.Object
   |
   +----com.roguewave.vsj.streamer.DefinePersistableTemplColl

public class DefinePersistableTemplColl
extends Object
implements DefinePersistable
DefinePersistableTemplColl is a flexible implementation of the DefinePersistable interface offering a generic mapping between collections that implement the com.roguewave.tools.v2-0.Collection interface and don't require a Comparator, to any one of several Tools.h++ template collections. These include RWTPtrDeque, RWTPtrDlist, RWTPtrHashTable, RWTPtrHashSet, RWTPtrMultiSet, RWTPtrOrderedVector, RWTPtrSet, RWTPtrSlist, RWTPtrVector, RWTValDeque, RWTValDlist, RWTValHashTable, RWTValHashSet, RWTValMultiSet, RWTValOrderedVector, RWTValSet, RWTValSlist, and RWTValVector.


Constructor Index

 o DefinePersistableTemplColl(Class, ObjectStreamer)
Create a DefinePersistableTemplColl.

Method Index

 o create(VirtualInputStream)
Return a new Collection (to be called from PersistableStreamer).
 o restoreGuts(Object, VirtualInputStream)
Restore the individual elements of the vector (to be called from PersistableStreamer).
 o saveGuts(Object, VirtualOutputStream)
Save the individual elements of the vector (to be called from PersistableStreamer).

Constructors

 o DefinePersistableTemplColl
 public DefinePersistableTemplColl(Class collClass,
                                   ObjectStreamer elemStreamer)
Create a DefinePersistableTemplColl. The given Class object will be used by the create() method when restoring a collection (it is not necessary for saving a collection). The given element streamer is required to stream the individual elements of the Collection.

Methods

 o create
 public Object create(VirtualInputStream vstr) throws IOException
Return a new Collection (to be called from PersistableStreamer).

 o restoreGuts
 public void restoreGuts(Object obj,
                         VirtualInputStream vstr) throws IOException
Restore the individual elements of the vector (to be called from PersistableStreamer).

 o saveGuts
 public void saveGuts(Object obj,
                      VirtualOutputStream vstr) throws IOException
Save the individual elements of the vector (to be called from PersistableStreamer).


All Packages  Class Hierarchy  This Package  Previous  Next  Index