|
|||||||||||
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 VectorIfc
public boolean isEmpty()
isEmpty
in interface VectorIfc
public java.util.Enumeration elements()
elements
in interface VectorIfc
public boolean contains(PersistentCapableIfc element)
contains
in interface VectorIfc
element
- element to test for
public int indexOf(PersistentCapableIfc element)
indexOf
in interface VectorIfc
element
- element to search for
public PersistentCapableIfc elementAt(int index)
elementAt
in interface VectorIfc
index
- index to query on
public PersistentCapableIfc firstElement()
firstElement
in interface VectorIfc
public PersistentCapableIfc lastElement()
lastElement
in interface VectorIfc
public void removeElementAt(int index)
removeElementAt
in interface VectorIfc
index
- index of element to removepublic void addElement(PersistentCapableIfc element)
addElement
in interface VectorIfc
element
- element to addpublic boolean removeElement(PersistentCapableIfc element)
removeElement
in interface VectorIfc
element
- element to remove
public void removeAllElements()
removeAllElements
in interface VectorIfc
public java.lang.Object[] toArray()
toArray
in interface VectorIfc
public PersistentCapableIfc get(int index)
get
in interface VectorIfc
public boolean add(PersistentCapableIfc element)
add
in interface VectorIfc
element
- element to add
public boolean remove(PersistentCapableIfc element)
remove
in interface VectorIfc
element
- element to remove
public void add(int index, PersistentCapableIfc element)
add
in interface VectorIfc
index
- indexelement
- element to addpublic void set(int index, PersistentCapableIfc element)
set
in interface VectorIfc
index
- indexelement
- element to addpublic PersistentCapableIfc remove(int index)
remove
in interface VectorIfc
index
- 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.Externalizable
writeExternal
in class PersistentObject
java.io.IOException
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class PersistentObject
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |