void cachePut(Object parentId, CachedManyIds entry) { desc.cacheManyPropPut(manyProperty, parentId, entry); }
/** * After the query execution check for empty collections and load L2 cache if desired. */ public void postLoad() { BeanDescriptor<?> desc = loadContext.getBeanDescriptor(); BeanPropertyAssocMany<?> many = getMany(); // check for BeanCollection's that where never processed // in the +query or +lazy load due to no rows (predicates) for (BeanCollection<?> bc : batch) { if (bc.checkEmptyLazyLoad()) { if (logger.isDebugEnabled()) { EntityBean ownerBean = bc.getOwnerBean(); Object parentId = desc.getId(ownerBean); logger.debug("BeanCollection after lazy load was empty. type:" + ownerBean.getClass().getName() + " id:" + parentId + " owner:" + ownerBean); } } else if (isLoadCache()) { Object parentId = desc.getId(bc.getOwnerBean()); desc.cacheManyPropPut(many, bc, parentId); } } } }
void cachePut(Object parentId, CachedManyIds entry) { desc.cacheManyPropPut(manyProperty, parentId, entry); }
parentDesc.cacheManyPropPut(many, beanCollection, parentId);
/** * After the query execution check for empty collections and load L2 cache if desired. */ public void postLoad() { BeanDescriptor<?> desc = loadContext.getBeanDescriptor(); BeanPropertyAssocMany<?> many = getMany(); // check for BeanCollection's that where never processed // in the +query or +lazy load due to no rows (predicates) for (BeanCollection<?> bc : batch) { if (bc.checkEmptyLazyLoad()) { if (logger.isDebugEnabled()) { EntityBean ownerBean = bc.getOwnerBean(); Object parentId = desc.getId(ownerBean); logger.debug("BeanCollection after lazy load was empty. type:" + ownerBean.getClass().getName() + " id:" + parentId + " owner:" + ownerBean); } } else if (isLoadCache()) { Object parentId = desc.getId(bc.getOwnerBean()); desc.cacheManyPropPut(many, bc, parentId); } } } }
parentDesc.cacheManyPropPut(many, beanCollection, parentId);