org.apache.ojb.broker.accesslayer
Class SetProxy

java.lang.Object
  extended byorg.apache.ojb.broker.accesslayer.CollectionProxy
      extended byorg.apache.ojb.broker.accesslayer.SetProxy
All Implemented Interfaces:
java.util.Collection, ManageableCollection, java.io.Serializable, java.util.Set

public class SetProxy
extends CollectionProxy
implements java.util.Set

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

Version:
$Id: SetProxy.java,v 1.2 2003/04/15 19:20:42 brj Exp $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.ojb.broker.ManageableCollection
serialVersionUID
 
Constructor Summary
SetProxy(PBKey aKey, java.lang.Class aCollClass, Query aQuery)
          Constructor for SetProxy.
SetProxy(PBKey aKey, Query aQuery)
          Constructor for SetProxy.
 
Method Summary
protected  java.util.Set getSetData()
           
protected  java.util.Collection loadData()
          loads the data from the database, if count(*) returned > 0
 
Methods inherited from class org.apache.ojb.broker.accesslayer.CollectionProxy
add, addAll, addListener, afterLoading, afterStore, beforeLoading, clear, contains, containsAll, getBroker, getBrokerKey, getCollectionClass, getData, getQuery, isEmpty, isLoaded, iterator, loadSize, ojbAdd, ojbAddAll, ojbIterator, releaseBroker, remove, removeAll, removeListener, retainAll, setBrokerKey, setCollectionClass, setData, setQuery, 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

SetProxy

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

Parameters:
aKey -
aQuery -

SetProxy

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

Parameters:
aKey -
aCollClass -
aQuery -
Method Detail

getSetData

protected java.util.Set getSetData()

loadData

protected java.util.Collection loadData()
                                 throws PersistenceBrokerException
Description copied from class: CollectionProxy
loads the data from the database, if count(*) returned > 0

Overrides:
loadData in class CollectionProxy
Throws:
PersistenceBrokerException
See Also:
CollectionProxy.loadData()


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