org.apache.ojb.broker.core.proxy
Class SetProxyDefaultImpl

java.lang.Object
  extended by org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
      extended by org.apache.ojb.broker.core.proxy.SetProxyDefaultImpl
All Implemented Interfaces:
Serializable, Iterable, Collection, Set, CollectionProxy, ManageableCollection

public class SetProxyDefaultImpl
extends CollectionProxyDefaultImpl
implements Set

A placeHolder for a whole set to support deferred loading of relationships. The complete relationship is loaded on request.

Version:
$Id: SetProxyDefaultImpl.java,v 1.1 2007-08-24 22:17:32 ewestfal Exp $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Constructor Summary
SetProxyDefaultImpl(PBKey aKey, Class aCollClass, Query aQuery)
          Constructor for SetProxy.
SetProxyDefaultImpl(PBKey aKey, Query aQuery)
          Constructor for SetProxy.
 
Method Summary
protected  Set getSetData()
           
protected  Collection loadData()
          Loads the data from the database.
 
Methods inherited from class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
add, addAll, addListener, afterLoading, afterStore, beforeLoading, clear, contains, containsAll, getBroker, getBrokerKey, getCollectionClass, getData, getProfileKey, getQuery, isEmpty, isLoaded, iterator, loadProfileIfNeeded, loadSize, ojbAdd, ojbAddAll, ojbIterator, releaseBroker, remove, removeAll, removeListener, retainAll, setBrokerKey, setCollectionClass, setData, setProfileKey, setQuery, setSize, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

SetProxyDefaultImpl

public SetProxyDefaultImpl(PBKey aKey,
                           Query aQuery)
Constructor for SetProxy.

Parameters:
aKey -
aQuery -

SetProxyDefaultImpl

public SetProxyDefaultImpl(PBKey aKey,
                           Class aCollClass,
                           Query aQuery)
Constructor for SetProxy.

Parameters:
aKey -
aCollClass -
aQuery -
Method Detail

getSetData

protected Set getSetData()

loadData

protected Collection loadData()
                       throws PersistenceBrokerException
Description copied from class: CollectionProxyDefaultImpl
Loads the data from the database. Override this method if the objects shall be loaded in a specific way.

Overrides:
loadData in class CollectionProxyDefaultImpl
Returns:
The loaded data
Throws:
PersistenceBrokerException
See Also:
CollectionProxyDefaultImpl.loadData()


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.