|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface abstracts a persistent capable Vector data structure so that it can be mapped by various datastores. It basically uses the JDK1.1.2 java.util.Vector to derive the interface and applies only to PersistentCapableIfc instances.
Note that the object is also Serializable
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 notr 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 |
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. |
Methods inherited from interface org.exolab.core.foundation.PersistentCapableIfc |
getMinimumObjectSize, getObjectId, getObjectVersion, setMinimumObjectSize |
Method Detail |
public int size()
public boolean isEmpty()
public java.util.Enumeration elements()
public boolean contains(PersistentCapableIfc element)
element
- element to test for
public int indexOf(PersistentCapableIfc element)
element
- element to search for
public PersistentCapableIfc elementAt(int index)
index
- index to query on
public PersistentCapableIfc firstElement()
public PersistentCapableIfc lastElement()
public void removeElementAt(int index)
index
- index of element to removepublic void addElement(PersistentCapableIfc element)
element
- element to addpublic boolean removeElement(PersistentCapableIfc element)
element
- element to removepublic void removeAllElements()
public java.lang.Object[] toArray()
public PersistentCapableIfc get(int index)
public boolean add(PersistentCapableIfc element)
element
- element to add
public void set(int index, PersistentCapableIfc element)
index
- indexelement
- element to addpublic boolean remove(PersistentCapableIfc element)
element
- element to remove
public void add(int index, PersistentCapableIfc element)
index
- indexelement
- element to addpublic PersistentCapableIfc remove(int index)
index
- index to query
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |