org.apache.ojb.broker.util.collections
Class ManageableVector
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.apache.ojb.broker.util.collections.ManageableVector
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess, ManageableCollection
- Direct Known Subclasses:
- RemovalAwareCollection
public class ManageableVector
- extends Vector
- implements ManageableCollection
is a utility class. provides a Vector that addionally implements
the ManageableCollection interface. This class may be used
as a type for collection attributes.
- Version:
- $Id: ManageableVector.java,v 1.1 2007-08-24 22:17:39 ewestfal Exp $
- Author:
- Thomas Mahler
- See Also:
- Serialized Form
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
ManageableVector
public ManageableVector()
ojbAdd
public void ojbAdd(Object anObject)
- add a single Object to the Collection. This method is used during reading Collection elements
from the database. Thus it is is save to cast anObject to the underlying element type of the
collection.
- Specified by:
ojbAdd in interface ManageableCollection
- Parameters:
anObject - The object to add
ojbAddAll
public void ojbAddAll(ManageableCollection otherCollection)
- adds a Collection to this collection. Used in reading Extents from the Database.
Thus it is save to cast otherCollection to this.getClass().
- Specified by:
ojbAddAll in interface ManageableCollection
- Parameters:
otherCollection - The added collection
afterStore
public void afterStore(PersistenceBroker broker)
throws PersistenceBrokerException
- Description copied from interface:
ManageableCollection
- A callback method to implement 'removal-aware' (track removed objects and delete
them by its own) collection implementations.
- Specified by:
afterStore in interface ManageableCollection
- Parameters:
broker - The persistence broker
- Throws:
PersistenceBrokerException
ojbIterator
public Iterator ojbIterator()
- returns an Iterator over all elements in the collection. Used during store and delete Operations.
If the implementor does not return an iterator over ALL elements, OJB cannot store and delete all elements properly.
- Specified by:
ojbIterator in interface ManageableCollection
- Returns:
- The iterator
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.