org.apache.ojb.broker.core.proxy
Interface CollectionProxy

All Known Implementing Classes:
CollectionProxyDefaultImpl, ListProxyDefaultImpl, SetProxyDefaultImpl

public interface CollectionProxy

Interface which Collection proxies need to implement to be treated like collection proxies in ODMG.

Presently the collection proxy impl class can be plugged in and not implement this interface, but those implementations will *not* be treated as proxies by OJB


Method Summary
 void addListener(CollectionProxyListener listener)
          Adds a listener to this collection.
 boolean isLoaded()
          Determines whether the collection data already has been loaded from the database.
 void removeListener(CollectionProxyListener listener)
          Removes the given listener from this collecton.
 

Method Detail

addListener

void addListener(CollectionProxyListener listener)
Adds a listener to this collection.

Parameters:
listener - The listener to add

removeListener

void removeListener(CollectionProxyListener listener)
Removes the given listener from this collecton.

Parameters:
listener - The listener to remove

isLoaded

boolean isLoaded()
Determines whether the collection data already has been loaded from the database.

Returns:
true if the data is already loaded


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30