219220221222223224225226227228229
internalUpdate(sm, mconn, batched, entry.getKey(), entry.getValue(), !iter.hasNext()); } } finally { mconn.release(); } } catch (MappedDatastoreException mde) { throw new NucleusDataStoreException(LOCALISER.msg("056016", mde.getMessage()), mde);
274275276277278279280281282283284
internalPut(sm, mconn, false, key, value, true); } } finally { mconn.release(); } } catch (MappedDatastoreException e) { throw new NucleusDataStoreException(LOCALISER.msg("056016", e.getMessage()), e);
9596979899100101102103104105
modified = true; } } finally { mconn.release(); } } catch (MappedDatastoreException e) { NucleusLogger.DATASTORE.error(e);
177178179180181182183184185186187
} } } finally { mconn.release(); } if (!exceptions.isEmpty()) { // Throw all exceptions received as the cause of a NucleusDataStoreException so the user can see which record(s) didn't persist
307308309310311312313314315316317
} } } finally { mconn.release(); } } catch (MappedDatastoreException e) { e.printStackTrace();
368369370371372373374375376377378
sqlControl.closeStatement(mconn, ps); } } finally { mconn.release(); } } catch (SQLException e) { String msg = LOCALISER.msg("052215",
371372373374375376377378379380381
); } } finally { mconn.release(); } } catch (MappedDatastoreException e) { // An error was encountered during the shift process so abort here
364365366367368369370371372373374
NucleusLogger.DATASTORE.error(msg, sqe.getCause()); throw new NucleusDataStoreException(msg, sqe, ownerSM.getObject()); } finally { mconn.release(); } } return modified; }
7677787980818283848586
mconn.addListener(listener); qr.addConnectionListener(listener); } return results; } finally { mconn.release(); } } private static final class DummyQuery extends AbstractJavaQuery {
195196197198199200201202203204205
NucleusLogger.PERSISTENCE.error("Exception inserting objects", me); throw new NucleusDataStoreException("Exception inserting objects", me); } finally { mconn.release(); } } } public void insertObject(ObjectProvider op)