Identifies all objects that have been (or are about to be) written
to persistence media. This purpose of this table is to remember
objects that have persisted in previous persistence snapshots so
that references to such objects in subsequent persistence deltas
can be replaced with references to the previously persisted
objects. This is similar to the wire handle of the Java
serialization process (ObjectOutputStream), but applies across
persistence snapshots whereas the wire handle applies within a
single snapshot.
This class is essentially a hash table implementation. It differs
from the java.util versions of hash tables in that the values are
WeakReference s so that values to which there are no longer
any references get removed from the table. WeakHashMap has weak
keys, not weak values.
Inner Class :static class MyArrayList extends ArrayList
create(Object o, PersistenceReference ref) Create a new PersistenceAssociation and enter it into the table.
Parameters: o - the object of the PersistenceAssociation Parameters: ref - The PersistenceReference of the object.
Create a new PersistenceAssociation and enter it into the table.
Parameters: o - the object of the PersistenceAssociation Parameters: ref - The PersistenceReference of the object. the new PersistenceAssociation
Find the PersistenceAssociation for an object.
Parameters: object - the object the PersistenceAssociation for the object null if the object has no current association
Assign an identity to the given object. Makes an entry in the
identityTable if not already there and marks the entry as
"needing to be written". The next time the
ObjectOutputStream.replaceObject method is called for the object
it will be written. Thereafter, a reference object will be
written.
Get the PersistenceAssociation corresponding to a PersistenceReference.
Parameters: ref - the PersistenceReference the corresponding PersistenceAssociation null if the is no corresponding PersistenceAssociation
Get the PersistenceAssociation at a particular index.
Parameters: ix - the index the corresponding PersistenceAssociation null if the is no corresponding PersistenceAssociation