public void retrieveReferences ( Object newObj , ClassDescriptor cld , boolean forced ) throws PersistenceBrokerException { Iterator i = cld . getObjectReferenceDescriptors ( ) . iterator ( ) ; // turn off auto prefetching for related proxies final Class saveClassToPrefetch = classToPrefetch ; classToPrefetch = null ; pb . getInternalCache ( ) . enableMaterializationCache ( ) ; try { while ( i . hasNext ( ) ) { ObjectReferenceDescriptor rds = ( ObjectReferenceDescriptor ) i . next ( ) ; retrieveReference ( newObj , cld , rds , forced ) ; } pb . getInternalCache ( ) . disableMaterializationCache ( ) ; } catch ( RuntimeException e ) { pb . getInternalCache ( ) . doLocalClear ( ) ; throw e ; } finally { classToPrefetch = saveClassToPrefetch ; } }
Retrieve all References