Class JOP.util.VectorDB
All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home

Class JOP.util.VectorDB

java.lang.Object
   |
   +----JOP.util.VectorDB

public class VectorDB
extends Object
implements Persistable
VectorDB offers a subset of the functionality of a Vector with the benefit of supporting a late fetch on object references.

The VectorDB maintains a vector of objects that have been accessed (either by an enumeration or directly) and ensures that all those objects are saved when the VectorDB instance is saved.


Constructor Index

 o VectorDB()

Method Index

 o addElement(Object)
Add a new element to the vector at the next available position.
 o defineObject(PersistController)
Method to support the JOP.persist.Persistable interface.
 o elements()
Return an enumeration of all elements in the vector.
 o removeAllElements()
Remove all the elements of this vector.
 o size()
Return the number of elements in the vector
 o streamIn(PersistController)
Method to support the JOP.persist.Persistable interface
 o streamOut(PersistController)
Method to support the JOP.persist.Persistable interface

Constructors

 o VectorDB
  public VectorDB()

Methods

 o removeAllElements
  public void removeAllElements()
Remove all the elements of this vector.
 o addElement
  public synchronized void addElement(Object obj)
Add a new element to the vector at the next available position. The VectorDB does not support insertAt() - use an array for this capability.
 o size
  public int size()
Return the number of elements in the vector
 o elements
  public Enumeration elements()
Return an enumeration of all elements in the vector. As each enumeration is accessed via nextElement() the object is read from the persist manager if requried.
 o streamIn
  public synchronized void streamIn(PersistController c) throws Exception
Method to support the JOP.persist.Persistable interface
 o streamOut
  public synchronized void streamOut(PersistController c) throws Exception
Method to support the JOP.persist.Persistable interface
 o defineObject
  public void defineObject(PersistController c) throws Exception
Method to support the JOP.persist.Persistable interface. A VectorDB is simply defined as an array of objects. The PersistManager looks after the rest.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home