public void setSectionSet(Set sectionSet) { this.sectionSet = sectionSet; HashSet set = new HashSet(); Iterator iter = sectionSet.iterator(); while (iter.hasNext()){ SectionFacade sf = (SectionFacade)iter.next(); set.add(sf.getData()); } this.data.setSectionSet(set); }
public void setSectionSet(Set sectionSet) { this.sectionSet = sectionSet; HashSet set = new HashSet(); Iterator iter = sectionSet.iterator(); while (iter.hasNext()){ SectionFacade sf = (SectionFacade)iter.next(); set.add(sf.getData()); } this.data.setSectionSet(set); }
public void setSection(SectionDataIfc section) { this.section = (SectionFacade) section; if (this.section != null) { this.data.setSection(this.section.getData()); } else { this.data.setSection(null); } }
public void setSection(SectionDataIfc section) { this.section = (SectionFacade) section; if (this.section != null) { this.data.setSection(this.section.getData()); } else { this.data.setSection(null); } }
ContentResource contentResource = attachmentHelper.createContentResource(fullFilePath, filename, attachmentInfo[2]); sectionAttachment = assessmentService.createSectionAttachment(section, contentResource.getId(), filename, ServerConfigurationService.getServerUrl()); sectionAttachment.setSection(section.getData()); set.add(sectionAttachment);
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 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); } } }
ContentResource contentResource = attachmentHelper.createContentResource(fullFilePath, filename, attachmentInfo[2]); sectionAttachment = assessmentService.createSectionAttachment(section, contentResource.getId(), filename, ServerConfigurationService.getServerUrl()); sectionAttachment.setSection(section.getData()); set.add(sectionAttachment);
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); } } }