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.
-
VectorDB()
-
-
addElement(Object)
- Add a new element to the vector at the next available position.
-
defineObject(PersistController)
- Method to support the JOP.persist.Persistable interface.
-
elements()
- Return an enumeration of all elements in the vector.
-
removeAllElements()
- Remove all the elements of this vector.
-
size()
- Return the number of elements in the vector
-
streamIn(PersistController)
- Method to support the JOP.persist.Persistable interface
-
streamOut(PersistController)
- Method to support the JOP.persist.Persistable interface
VectorDB
public VectorDB()
removeAllElements
public void removeAllElements()
- Remove all the elements of this vector.
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.
size
public int size()
- Return the number of elements in the vector
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.
streamIn
public synchronized void streamIn(PersistController c) throws Exception
- Method to support the JOP.persist.Persistable interface
streamOut
public synchronized void streamOut(PersistController c) throws Exception
- Method to support the JOP.persist.Persistable interface
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