org.apache.ojb.broker
Class CollectionTest.CollectionClassDummy

java.lang.Object
  extended byorg.apache.ojb.broker.CollectionTest.CollectionClassDummy
All Implemented Interfaces:
ManageableCollection, java.io.Serializable
Enclosing class:
CollectionTest

public static class CollectionTest.CollectionClassDummy
extends java.lang.Object
implements ManageableCollection

See Also:
Serialized Form

Field Summary
(package private)  java.util.ArrayList list
           
 
Fields inherited from interface org.apache.ojb.broker.ManageableCollection
serialVersionUID
 
Constructor Summary
CollectionTest.CollectionClassDummy()
           
 
Method Summary
 void afterStore(PersistenceBroker broker)
          A callback method to implement 'removal-aware' (track removed objects and delete them by its own) collection implementations.
 void ojbAdd(java.lang.Object anObject)
          add a single Object to the Collection.
 void ojbAddAll(ManageableCollection otherCollection)
          adds a Collection to this collection.
 java.util.Iterator ojbIterator()
          returns an Iterator over all elements in the collection.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

java.util.ArrayList list
Constructor Detail

CollectionTest.CollectionClassDummy

public CollectionTest.CollectionClassDummy()
Method Detail

ojbAdd

public void ojbAdd(java.lang.Object anObject)
Description copied from interface: ManageableCollection
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

ojbAddAll

public void ojbAddAll(ManageableCollection otherCollection)
Description copied from interface: ManageableCollection
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

ojbIterator

public java.util.Iterator ojbIterator()
Description copied from interface: ManageableCollection
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

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
Throws:
PersistenceBrokerException

size

public int size()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14