private void loadOnlyFromCache(CmpEntityBeanContext ctx) {
PersistentContext pctx = (PersistentContext) ctx.getPersistenceContext();
if (pctx == null) {
throw new EJBException("Persistence context is not available! Make sure the CMR collection is accessed in the transaction it was obtained.");
}
pctx.loadCachedRelations(cmrIndex, this);
}
private boolean removeWhileNotLoaded(Object relatedId) {
boolean removed = false;
if (addedWhileNotLoaded != null) {