}
}
void assignReferenceObject(Object collOrArray)
{
CollectionProxy colProxy = ProxyHelper.getCollectionProxy(collOrArray);
if(colProxy != null)
{
if(colProxy.isLoaded())
{
status = IS_MATERIALIZED_PROXY;
/*
TODO: avoid dependency to CollectionProxyDefaultImpl
e.g. change CollectionProxy interface - CollectionProxy should
extend Collection to support Iterator
*/
handleCollectionOrArray(((CollectionProxyDefaultImpl) colProxy).getData());
}
else
{
status = IS_UNMATERIALIZED_PROXY;
// TODO: ObjectEnvelopeTable#register take care of proxy objects/collection, no need to handle proxy objects??
colProxy.addListener(this);
collectionHandler = colProxy;
}
}
else
{