All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.roguewave.vsj.ReadTable

java.lang.Object
   |
   +----com.roguewave.vsj.ReadTable

public class ReadTable
extends Object
implements RestoreContext
Class ReadTable is an implementation of the RestoreContext interface written to correspond to the read tables used in Tools.h++. (In particular, this implementation primes itself with the null object at the start of each persistence context.)


Variable Index

 o table_
Implementation of the ReadTable

Constructor Index

 o ReadTable()

Method Index

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

Variables

 o table_
 protected Vector table_
Implementation of the ReadTable

Constructors

 o ReadTable
 public ReadTable()

Methods

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

 o newContext
 public 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 boolean inContext()
Return true if the ReadTable is currently within a persistence context. That is, returns true if newContext() has been called, but endContext() has not.

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

Note that the ReadTable will maintain a reference to every object added since the call to newContext(). Thus you must call this method in order for those objects to be available for garbage collection before either newContext() is called again or the ReadTable itself is reclaimed.

 o addElement
 public void addElement(Object obj)
Add an object to the ReadTable

 o elementAt
 public Object elementAt(int idx)
Return an object from the ReadTable. The index idx is a back reference to a previously read object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index