|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.core.foundation.PersistentObject
org.exolab.core.database.recman.PMDVector
This concrete class implements the VectorIfc interface. and defines a PagemManagedDatabase specific implementation for this type of database. This Vector is specific to objects of type PersistentCapableIfc
| Constructor Summary | |
PMDVector()
Construct an instance of this persistent capable class. |
|
| Method Summary | |
void |
add(int index,
PersistentCapableIfc element)
Add the element at the specified index. |
boolean |
add(PersistentCapableIfc element)
Add the specified element to the end of the Vector. |
void |
addElement(PersistentCapableIfc element)
Add the specified element to the end of the vector. |
void |
clear()
Clear the vector |
boolean |
contains(PersistentCapableIfc element)
Test to see whether the specified object exists. |
PersistentCapableIfc |
elementAt(int index)
Return the object at the specified index or null if one does not exist |
java.util.Enumeration |
elements()
Return an enumeration of all elements in the Vector |
PersistentCapableIfc |
firstElement()
Return the first element in the Vector or null if it is empty |
PersistentCapableIfc |
get(int index)
Return the object at the specified index or null |
int |
indexOf(PersistentCapableIfc element)
Return the index of the specified element or -1 if it does not exist. |
boolean |
isEmpty()
Check to see of the vector is empty. |
PersistentCapableIfc |
lastElement()
Return the last element in the Vector or null if it is empty |
void |
readExternal(java.io.ObjectInput stream)
|
PersistentCapableIfc |
remove(int index)
Remove the element at the specified index and return it to the client |
boolean |
remove(PersistentCapableIfc element)
Remove the specified element from the Vector |
void |
removeAllElements()
Remove all the elements from the Vector. |
boolean |
removeElement(PersistentCapableIfc element)
Remove the specified element from the Vector. |
void |
removeElementAt(int index)
Remove the element at the specified index |
void |
set(int index,
PersistentCapableIfc element)
Set the object at the location given, overwriting the existing object if it exists. |
int |
size()
Return the size of the vector |
java.lang.Object[] |
toArray()
Return the objects in the Vector as an array. |
void |
writeExternal(java.io.ObjectOutput stream)
|
| Methods inherited from class org.exolab.core.foundation.PersistentObject |
clone, equals, getId, getMinimumObjectSize, getObjectId, getObjectVersion, getVersion, setId, setMinimumObjectSize, setObjectId, setObjectVersion, setVersion |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exolab.core.foundation.PersistentCapableIfc |
getMinimumObjectSize, getObjectId, getObjectVersion, setMinimumObjectSize |
| Constructor Detail |
public PMDVector()
| Method Detail |
public int size()
size in interface VectorIfcpublic boolean isEmpty()
isEmpty in interface VectorIfcpublic java.util.Enumeration elements()
elements in interface VectorIfcpublic boolean contains(PersistentCapableIfc element)
contains in interface VectorIfcelement - element to test for
public int indexOf(PersistentCapableIfc element)
indexOf in interface VectorIfcelement - element to search for
public PersistentCapableIfc elementAt(int index)
elementAt in interface VectorIfcindex - index to query on
public PersistentCapableIfc firstElement()
firstElement in interface VectorIfcpublic PersistentCapableIfc lastElement()
lastElement in interface VectorIfcpublic void removeElementAt(int index)
removeElementAt in interface VectorIfcindex - index of element to removepublic void addElement(PersistentCapableIfc element)
addElement in interface VectorIfcelement - element to addpublic boolean removeElement(PersistentCapableIfc element)
removeElement in interface VectorIfcelement - element to remove
public void removeAllElements()
removeAllElements in interface VectorIfcpublic java.lang.Object[] toArray()
toArray in interface VectorIfcpublic PersistentCapableIfc get(int index)
get in interface VectorIfcpublic boolean add(PersistentCapableIfc element)
add in interface VectorIfcelement - element to add
public boolean remove(PersistentCapableIfc element)
remove in interface VectorIfcelement - element to remove
public void add(int index,
PersistentCapableIfc element)
add in interface VectorIfcindex - indexelement - element to add
public void set(int index,
PersistentCapableIfc element)
set in interface VectorIfcindex - indexelement - element to addpublic PersistentCapableIfc remove(int index)
remove in interface VectorIfcindex - index to query
public void clear()
clear in interface VectorIfc
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class PersistentObjectjava.io.IOException
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class PersistentObjectjava.io.IOException
java.lang.ClassNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||