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.
-
addElement(Object)
- Add an object to the store table.
-
endContext()
- End the current persistence context.
-
inContext()
- Return true if currently within a persistence
context.
-
index(Object)
- Return the index of an object in the store table.
-
newContext()
- Begin a new persistence context.
-
newContext(int)
- Begin a new persistence context with initial capacity
for the given number of objects.
newContext
public abstract void newContext()
- Begin a new persistence context. A persistence context
defines the scope of back references used for isomorphic
persistence.
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.
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.
endContext
public abstract void endContext()
- End the current persistence context. A persistence context
defines the scope of back references used for isomorphic
persistence.
addElement
public abstract void addElement(Object obj)
- Add an object to the store table.
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