| org.apache.ojb.broker.ManageableCollection
All known Subclasses: org.apache.ojb.odmg.collections.DSetImpl, org.apache.ojb.odmg.collections.DListImpl, xdoclet.modules.ojb.tests.TestCollectionClass, org.apache.ojb.broker.util.collections.ManageableHashSet, org.apache.ojb.broker.util.collections.ManageableArrayList, org.apache.ojb.broker.util.collections.ManageableVector, org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl, org.apache.ojb.broker.ArticleCollection, org.apache.ojb.broker.util.collections.ManageableHashMap,
ManageableCollection | public interface ManageableCollection extends java.io.Serializable(Code) | | OJB can handle java.util.Collection as well as user defined collection classes as collection attributes
in persistent classes. In order to collaborate with the OJB mechanisms these collection must provide a minimum
protocol as defined by this interface ManageableCollection.
The methods have a prefix "ojb" that indicates that these methods are "technical" methods, required
by OJB and not to be used in business code.
author: Thomas Mahler version: $Id: ManageableCollection.java,v 1.7.2.1 2005/12/21 22:22:08 tomdz Exp $ |
afterStore | public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException(Code) | | A callback method to implement 'removal-aware' (track removed objects and delete
them by its own) collection implementations.
Parameters: broker - The persistence broker |
ojbAdd | void ojbAdd(Object anObject)(Code) | | Adds a single object to the Collection. This method is used during reading collection elements
from the database. Thus it is safe to cast the object to the underlying element type of the
collection.
Parameters: anObject - The object to add |
ojbAddAll | void ojbAddAll(ManageableCollection otherCollection)(Code) | | Adds another collection to this collection. Used in reading extents from the database.
Thus it is safe to cast the given collection to this class.
Parameters: otherCollection - The added collection |
ojbIterator | Iterator ojbIterator()(Code) | | 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.
The iterator |
|
|