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