@Override public void runAsAdmin() { update.flush(); }}); return s;
public <T extends IObject> T updateObject(T... objs) { iUpdate.flush(); return null; }}, copy); }
public void runAsAdmin() { iUpdate.flush(); } });
public void runAsAdmin() { iUpdate.flush(); } });
public void runAsAdmin() { iUpdate.flush(); } });
public <T extends IObject> T updateObject(T... objs) { T result = iUpdate.saveAndReturnObject(objs[0]); iUpdate.flush(); // was commit return result; } }, job);
@RolesAllowed("user") @Transactional(readOnly = false) public void resetDefaults() { if (settings == null && ctx.isExtendedGraphCritical(Collections.singleton(pixelsId))) { throw new ApiUsageException( "Unable to reset rendering settings in a read-only group " + "for Pixels set id:" + pixelsId); } _resetDefaults(); iUpdate.flush(); }
q.executeUpdate(); iUpdate.flush();
@RolesAllowed("user") @Transactional(readOnly = false) public synchronized Pixels save() { if (isModified()) { Long id = (pixelsInstance == null) ? null : pixelsInstance.getId(); if (id == null) { return null; } try { byte[] hash = buffer.calculateMessageDigest(); pixelsInstance.setSha1(Hex.encodeHexString(hash)); } catch (RuntimeException re) { // ticket:3140 if (re.getCause() instanceof FileNotFoundException) { String msg = "Cannot find path. Deleted? " + buffer; log.warn(msg); clean(); // Prevent a second exception on close. throw new ResourceError(msg); } throw re; } catch (IOException e) { log.warn("calculateMessageDigest failed on " + buffer, e); throw new ResourceError(e.getMessage()); } iUpdate.flush(); modified = false; return new ShallowCopy().copy(pixelsInstance); } return null; }
iUpdate.flush();
public void runAsAdmin() { final Share share = iQuery.get(Share.class, shareId); CommentAnnotation comment = new CommentAnnotation(); comment.setTextValue(commentText); comment.setNs(NS_COMMENT); share.linkAnnotation(comment); iUpdate.flush(); rv[0] = iQuery.get(CommentAnnotation.class, comment.getId()); }});
iUpdate.flush();
iUpdate.flush(); modified = false; return new ShallowCopy().copy(file);