public void saveOrUpdateAttachments(List<AttachmentIfc> list) { for (AttachmentIfc attachment : list) { getHibernateTemplate().saveOrUpdate(attachment); } }
public void saveOrUpdateAttachments(List<AttachmentIfc> list) { for (AttachmentIfc attachment : list) { getHibernateTemplate().saveOrUpdate(attachment); } }
public void saveOrUpdateAttachments(List<AttachmentIfc> list) { for (AttachmentIfc attachment : list) { getHibernateTemplate().saveOrUpdate(attachment); } }
@Override public void save(FlowInvocationMetric flowInvocationMetric) { getHibernateTemplate().saveOrUpdate(flowInvocationMetric); }
/** * MUST override this method */ protected <T> int baseSaveSet(Class<?> type, Set<T> entities) { for (T t : entities) { getHibernateTemplate().saveOrUpdate(t); } return entities.size(); }
public void saveOrUpdateAttachments(List<AttachmentIfc> list) { for (AttachmentIfc attachment : list) { getHibernateTemplate().saveOrUpdate(attachment); } }
public void saveOrUpdateAttachments(List<AttachmentIfc> list) { for (AttachmentIfc attachment : list) { getHibernateTemplate().saveOrUpdate(attachment); } }
@Override public void saveOrUpdateAudit(HibernateReplayAudit replayAudit) { this.getHibernateTemplate().saveOrUpdate(replayAudit); }
/** * Save the wiretapFlowEvent * * @see * WiretapDao#save( * org.ikasan.wiretap.model.WiretapFlowEvent) */ public void save(WiretapEvent wiretapEvent) { getHibernateTemplate().saveOrUpdate((WiretapFlowEvent)wiretapEvent); }
public void saveStudentGradingSummaryData(StudentGradingSummaryIfc studentGradingSummaryData) { int retryCount = persistenceHelper.getRetryCount(); while (retryCount > 0) { try { getHibernateTemplate().saveOrUpdate(studentGradingSummaryData); retryCount = 0; } catch (Exception e) { log.warn("problem saving studentGradingSummaryData: " + e.getMessage()); retryCount = persistenceHelper.retryDeadlock(e, retryCount); } } }
public void saveItemGrading(ItemGradingData item) { int retryCount = persistenceHelper.getRetryCount(); while (retryCount > 0) { try { getHibernateTemplate().saveOrUpdate(item); retryCount = 0; } catch (Exception e) { log.warn("problem saving itemGrading: " + e.getMessage()); retryCount = persistenceHelper.retryDeadlock(e, retryCount); } } }
/** * Shared Pools with other user */ public void addQuestionPoolAccess(Tree tree, String user, final Long questionPoolId, Long accessTypeId) { QuestionPoolAccessData qpad = new QuestionPoolAccessData(questionPoolId, user, accessTypeId); getHibernateTemplate().saveOrUpdate(qpad); Iterator citer = (tree.getChildList(questionPoolId)).iterator(); while (citer.hasNext()) { Long childPoolId = (Long) citer.next(); addQuestionPoolAccess(tree, user, childPoolId, accessTypeId); } }
/** * Shared Pools with other user */ public void addQuestionPoolAccess(Tree tree, String user, final Long questionPoolId, Long accessTypeId) { QuestionPoolAccessData qpad = new QuestionPoolAccessData(questionPoolId, user, accessTypeId); getHibernateTemplate().saveOrUpdate(qpad); Iterator citer = (tree.getChildList(questionPoolId)).iterator(); while (citer.hasNext()) { Long childPoolId = (Long) citer.next(); addQuestionPoolAccess(tree, user, childPoolId, accessTypeId); } }
@Override public Long storeManyToManyTargetConfigurationValue(ManyToManyTargetConfigurationValue targetConfigurationValue) { targetConfigurationValue.setUpdatedDateTime(new Date()); this.getHibernateTemplate().saveOrUpdate(targetConfigurationValue); return targetConfigurationValue.getId(); }
public void setPropertyValue(final String name, final String value) { final List<?> list = getHibernateTemplate().findByNamedParam("from GradebookProperty as prop where prop.name = :name", "name", name); GradebookProperty property; if (!list.isEmpty()) { property = (GradebookProperty)list.get(0); } else { property = new GradebookProperty(name); } property.setValue(value); getHibernateTemplate().saveOrUpdate(property); this.propertiesMap.put(name, value); }
public void saveOrUpdateMetaData(PublishedMetaData meta) { int retryCount = PersistenceService.getInstance().getPersistenceHelper().getRetryCount(); while (retryCount > 0) { try { getHibernateTemplate().saveOrUpdate(meta); retryCount = 0; } catch (Exception e) { log.warn("problem save or update meta data: " + e.getMessage()); retryCount = PersistenceService.getInstance().getPersistenceHelper().retryDeadlock(e, retryCount); } } }
public void saveOrUpdatePublishedAccessControl(AssessmentAccessControlIfc publishedAccessControl) { int retryCount = PersistenceService.getInstance().getPersistenceHelper().getRetryCount(); while (retryCount > 0) { try { getHibernateTemplate().saveOrUpdate(publishedAccessControl); retryCount = 0; } catch (Exception e) { log.warn("problem save or update publishedAccessControl data: {}", e.getMessage()); retryCount = PersistenceService.getInstance().getPersistenceHelper().retryDeadlock(e, retryCount); } } }
public void saveOrUpdateSection(SectionFacade section) { int retryCount = PersistenceService.getInstance().getPersistenceHelper().getRetryCount(); while (retryCount > 0) { try { getHibernateTemplate().saveOrUpdate(section.getData()); retryCount = 0; } catch (Exception e) { log.warn("problem save or update section: " + e.getMessage()); retryCount = PersistenceService.getInstance().getPersistenceHelper().retryDeadlock(e, retryCount); } } }
public void saveOrUpdateSection(SectionFacade section) { int retryCount = PersistenceService.getInstance().getPersistenceHelper().getRetryCount(); while (retryCount > 0) { try { getHibernateTemplate().saveOrUpdate(section.getData()); retryCount = 0; } catch (Exception e) { log.warn("problem save or update section: " + e.getMessage()); retryCount = PersistenceService.getInstance().getPersistenceHelper().retryDeadlock(e, retryCount); } } }
public void lockObject(String assetId, String qualifierId, String reason, boolean system) { Lock newLock = findOrCreateLock(assetId, qualifierId, false); newLock.setAsset(assetId); newLock.setQualifier(qualifierId); newLock.setDateAdded(now()); newLock.setActive(true); newLock.setReason(reason); newLock.setSystem(true); getHibernateTemplate().saveOrUpdate(newLock); }