/** * Sets the Name attribute of the SNCParameters object * * @param name The new Name value */ public void setName(String name) { this.name = name; }
/** * Returns the sncId. * * @return Long * * @hibernate.property * column = "sncId" * type = "long" * not-null = "true" * unique = "false" */
public Long getSncId() { return sncId; }
/** * Sets the SncId attribute of the SNCParameters object * * @param sncId The new SncId value */ public void setSncId(Long sncId) { this.sncId = sncId; }
public List batchAddSncParameters(List sncParametersList, Long sncId) throws DbaccessException { logger.enterMethod(); List ret = new ArrayList(); try { sess = getsession(); if (sncParametersList != null && sncParametersList.size() > 0) { for (int i = 0; i < sncParametersList.size(); i++) { SNCParameters cp = (SNCParameters) sncParametersList.get(i); long newId = -1; if (cp != null) { SNCParameters cpNew = new SNCParameters(); cpNew.setSncId(sncId); cpNew.setName(cp.getName()); cpNew.setValue(Hibernate.createClob(" ")); newId = ((Long) sess.save(cpNew)).longValue(); sess.flush();