All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.roguewave.vsj.SaveContext

public interface SaveContext
SaveContext is an interface that allows you to keep track of objects as they are written so that you can write back-references for objects that are encountered multiple times. Thus a SaveContext can be used to maintain the shape of a graph of objects, including graphs that contain circular references.


Method Index

 o addElement(Object)
Add an object to the store table.
 o endContext()
End the current persistence context.
 o inContext()
Return true if currently within a persistence context.
 o index(Object)
Return the index of an object in the store table.
 o newContext()
Begin a new persistence context.
 o newContext(int)
Begin a new persistence context with initial capacity for the given number of objects.

Methods

 o newContext
 public abstract void newContext()
Begin a new persistence context. A persistence context defines the scope of back references used for isomorphic persistence.

 o newContext
 public abstract void newContext(int initCapacity)
Begin a new persistence context with initial capacity for the given number of objects. A persistence context defines the scope of back references used for isomorphic persistence.

 o inContext
 public abstract boolean inContext()
Return true if currently within a persistence context. That is, returns true if newContext() has been called, but endContext() has not.

 o endContext
 public abstract void endContext()
End the current persistence context. A persistence context defines the scope of back references used for isomorphic persistence.

 o addElement
 public abstract void addElement(Object obj)
Add an object to the store table.

 o index
 public abstract int index(Object obj)
Return the index of an object in the store table. The index can be used for back referencing an object already stored.


All Packages  Class Hierarchy  This Package  Previous  Next  Index