org.ozoneDB.collections
Interface OzoneCollection

All Superinterfaces:
java.util.Collection, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote
All Known Subinterfaces:
_BaseList_SubList, BaseList, BaseTreeSet, FullLinkedList, FullTreeSet, NodeTreeSet, OzoneArrayList, OzoneHashSet, OzoneLinkedHashSet, OzoneLinkedList, OzoneList, OzoneSet, OzoneSortedSet, OzoneStack, OzoneTreeSet
All Known Implementing Classes:
_AbstractOzoneMap_keySet_Proxy, _AbstractOzoneMap_values, _AbstractOzoneMap_values_Proxy, _BaseList_RandomAccessSubListImpl, _BaseList_SubListImpl, _BaseTreeMap_entrySet, _BaseTreeMap_entrySet_Proxy, _BaseTreeMap_keySet, _BaseTreeMap_keySet_Proxy, _BaseTreeMap_SubMap_entrySet, _BaseTreeMap_SubMap_entrySet_Proxy, _BaseTreeMap_SubMap_keySet, _BaseTreeMap_SubMap_keySet_Proxy, _BaseTreeMap_SubMap_values, _BaseTreeMap_SubMap_values_Proxy, _BaseTreeMap_values, _BaseTreeMap_values_Proxy, AbstractOzoneCollection, AbstractOzoneList, AbstractOzoneSet, BaseListImpl, BaseTreeSetImpl, FullLinkedListImpl, FullTreeSetImpl, FullTreeSetImpl_Proxy, NodeTreeSetImpl, NodeTreeSetImpl_Proxy

public interface OzoneCollection
extends java.util.Collection, org.ozoneDB.OzoneRemote

An ozone aware collection.

Author:
Leo Mekenkamp (mind the anti-sp@m)

Method Summary
 java.util.Iterator _org_ozoneDB_internalIterator()
           
 boolean add(java.lang.Object obj)
           
 boolean addAll(java.util.Collection c)
           
 void clear()
           
 java.util.Collection getClientCollection()
          Returns a non-ozone Collection that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneCollection.
 boolean remove(java.lang.Object obj)
           
 boolean removeAll(java.util.Collection c)
           
 boolean retainAll(java.util.Collection c)
           
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 

Method Detail

getClientCollection

public java.util.Collection getClientCollection()

Returns a non-ozone Collection that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneCollection. I.e. the contents of this OzoneCollection instance are always copied to the client by use of serialization.

This means that if this instance holds non-ozone objects, these objects are send to the calling client by means of serialization. If this instance holds ozone objects, it actually holds proxies to these objects. These proxies are copied and send to the client, resulting in different proxies to the same ozone objects.

Note that all subclasses of OzoneCollection (or OzoneMap) have getClientXxx() member functions that return a collection of type java.util.Xxx; these simply return the same result value as getClientCollection() without the need for a typecast.


add

public boolean add(java.lang.Object obj)
Specified by:
add in interface java.util.Collection

addAll

public boolean addAll(java.util.Collection c)
Specified by:
addAll in interface java.util.Collection

remove

public boolean remove(java.lang.Object obj)
Specified by:
remove in interface java.util.Collection

removeAll

public boolean removeAll(java.util.Collection c)
Specified by:
removeAll in interface java.util.Collection

retainAll

public boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.Collection

clear

public void clear()
Specified by:
clear in interface java.util.Collection

_org_ozoneDB_internalIterator

public java.util.Iterator _org_ozoneDB_internalIterator()


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.