30813082308330843085308630873088308930903091
if (sm != null && sm.getObject() != null && !sm.getObjectManager().getApiAdapter().isDeleted(sm.getObject())) { try { sm.detach(new DetachState(getApiAdapter())); } catch (JPOXObjectNotFoundException onfe) { // Catch exceptions for any objects that are deleted in other managers whilst having this open }
11261127112811291130113111321133113411351136
try { objectMgr.assertClassPersistable(pc.getClass()); assertReadable("detachCopy"); return jdoDetachCopy(pc, new DetachState(objectMgr.getApiAdapter())); } catch (JPOXException jpe) { throw JPOXJDOHelper.getJDOExceptionForJPOXException(jpe); }
11651166116711681169117011711172117311741175
{ assertIsOpen(); assertReadable("detachCopyAll"); // Detach the objects FetchPlanState state = new DetachState(objectMgr.getApiAdapter()); List detacheds = new ArrayList(); for (Iterator it = pcs.iterator(); it.hasNext();) { Object obj = it.next(); if (obj == null)