447448449450451452453454455456457
} } finally { // cleanup stuff if (handle != null) handle.destroy(); } // 3. return resulting collection return result;
177178179180181182183184185186187
log.error("Generation of new id failed", e); throw new PersistenceBrokerException(e); } finally { capsule.destroy(); } } /**
304305306307308309310311312313314
{ throw new ODMGRuntimeException(e.getMessage()); } finally { capsule.destroy(); } } private Criteria getPkCriteriaForAllElements(PersistenceBroker broker) {
293294295296297298299300301302303
it.previous(); } } finally { if (capsule != null) capsule.destroy(); } return result; }
435436437438439440441442443444445
300301302303304305306307308309310
322323324325326327328329330331332
184185186187188189190191192193194
{ prepareKeyRealSubject(capsule.getBroker()); } finally { capsule.destroy(); } } else { getLog().warn("No tx, no PBKey - can't materialise key with Identity " + getKeyOid());
242243244245246247248249250251252
{ prepareValueRealSubject(capsule.getBroker()); } finally { capsule.destroy(); } } else { getLog().warn("No tx, no PBKey - can't materialise value with Identity " + getKeyOid());
163164165166167168169170171172173
{ prepareRealSubject(capsule.getBroker()); } finally { capsule.destroy(); } } else { getLog().warn("No tx, no PBKey - can't materialise object with Identity " + getOid());