Methods Summary |
---|
public synchronized void | addPersistent(Persistent p)Called by its peer to add a restored Persistent to the set.
if( !objects.contains(p) ) {
objects.addElement(p);
}
|
protected abstract PersistentSetPeer | getPersistentSetPeer()Subclasses must implement this method in order to tell
this class what to use for a PersistentSetPeer.
|
public synchronized RemotePersistent[] | getPersistents()Allows external objects to get a list of the Persistent objects
in this set.
RemotePersistent[] persistents = new RemotePersistent[objects.size()];
objects.copyInto(persistents);
return persistents;
|
public synchronized void | restore()Loads the set without any query criteria. In other words,
it loads all objects of a given type.
Transaction t = Transaction.getTransaction();
t.restore(this, null);
|
public synchronized void | restore(java.util.Hashtable h)Loads a set of persistent objects based on query criteria listed in
a the Hashtable values.
Transaction t = Transaction.getTransaction();
t.restore(this, h);
|
public synchronized void | restore(Transaction trans, java.util.Hashtable data)Loads a set of persistent objects based on query criteria listed in
a the Hashtable values.
getPersistentSetPeer().restore(this, trans, data);
|