|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl org.kuali.rice.core.ojb.ContextClassLoaderCollectionProxy
public class ContextClassLoaderCollectionProxy
Sets up the context classloader properly for OJB proxies. The sequence of events in the super class is as follows:
public synchronized Collection getData() { if (!isLoaded()) { beforeLoading(); setData(loadData()); afterLoading(); } return _data; }Therefore, since there is no try-catch-finally in conjunction with this call, we need to handle exceptions thrown from loadData and unbind the classloader appropriately.
Constructor Summary | |
---|---|
ContextClassLoaderCollectionProxy(org.apache.ojb.broker.PBKey aKey,
Class aCollClass,
org.apache.ojb.broker.query.Query aQuery)
|
|
ContextClassLoaderCollectionProxy(org.apache.ojb.broker.PBKey aKey,
org.apache.ojb.broker.query.Query aQuery)
|
Method Summary | |
---|---|
protected void |
afterLoading()
|
protected void |
beforeLoading()
|
protected Collection |
loadData()
|
Methods inherited from class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl |
---|
add, addAll, addListener, afterStore, 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.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public ContextClassLoaderCollectionProxy(org.apache.ojb.broker.PBKey aKey, Class aCollClass, org.apache.ojb.broker.query.Query aQuery)
public ContextClassLoaderCollectionProxy(org.apache.ojb.broker.PBKey aKey, org.apache.ojb.broker.query.Query aQuery)
Method Detail |
---|
protected void beforeLoading()
beforeLoading
in class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
protected Collection loadData() throws org.apache.ojb.broker.PersistenceBrokerException
loadData
in class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
org.apache.ojb.broker.PersistenceBrokerException
protected void afterLoading()
afterLoading
in class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |