Examples of store()


Examples of org.openhab.core.persistence.PersistenceService.store()

          PersistenceModel persistModel = (PersistenceModel) model;
          for(PersistenceConfiguration config : persistModel.getConfigs()) {
            if(hasStrategy(persistModel, config, strategyName)) {
              for(Item item : persistenceManager.getAllItems(config)) {
                long startTime = System.currentTimeMillis();
                persistenceService.store(item, config.getAlias());
                logger.trace("Storing item '{}' with persistence service '{}' took {}ms",
                    new Object[] { item.getName(), modelName, System.currentTimeMillis() - startTime});
              }
            }
          }
View Full Code Here

Examples of org.openqreg.bean.BrowserBean.store()

      try {
        con = DbHandler.getConnection();
        con.setAutoCommit(true);
        BrowserBean browser = (BrowserBean)BrowserFinderBase.findByPrimaryKey(new BrowserKey(browserId));
        browser.setStatus(newStatus);
        browser.store(con);
      } catch (SQLException sqle) {
        try {
          if (null != con) {
            con.rollback();
          }
View Full Code Here

Examples of org.openqreg.bean.CentreBean.store()

      assertEquals("Attributen skall vara lika", centre1.getAttribute("name1"), centre2.getAttribute("name1"));
     
      //Radera attribut
      centre2.removeAttribute("name1");
      assertNull("Attributet skall inte finnas", centre2.getAttribute("name1"));
      centre2.store(con);
      centre1 = (CentreBean)CentreFinderBase.findByPrimaryKey(con, new CentreKey(centre2.getId()));
      assertNull("Attributet skall inte finnas", centre2.getAttribute("name1"));

      //Uppdatera attribut
      centre1.setAttribute("name1", "value1");
View Full Code Here

Examples of org.openqreg.bean.CountryBean.store()

     
      CountryBean country1 = BeanFactory.getCountry("uz");
      country1.create(con);
     
      country1.setStatus(new Integer(Status.INACTIVE));
      country1.store(con);

      CountryBean country2 = (CountryBean) CountryFinderBase.findByPrimaryKey(con, new CountryKey(country1.getId()));
      assertEquals("Countryn skall vara lika", country1, country2);
      assertEquals("Countryn skall ha samma status", country1.getStatus(), country2.getStatus());
View Full Code Here

Examples of org.openqreg.bean.FileBean.store()

        con = DbHandler.getConnection();
        con.setAutoCommit(false);
        fileBean.setUpdatedby(userId);
        fileBean.setTsupdated(new Timestamp(System.currentTimeMillis()));
        fileBean.store(con);

        // service groups
        Collection<FileshareuserBean> col = FileshareuserFinder
            .findByFileid(con, fileBean.getId());
        // loop exsisting FileshareuserBean update or remove based on
View Full Code Here

Examples of org.openqreg.bean.GuisettingBean.store()

        gsb.setGuikey("filter");
        // gsb.setGuivalue(outer.get(key));
        gsb.create();
      } else {
        gsb.setGuivalue(awr.getJson());
        gsb.store();
      }
    } else if (null != gsb) {
      // get from db (if it is there)
      jsonString = gsb.getGuivalue();
    }
View Full Code Here

Examples of org.openqreg.bean.ServiceBean.store()

        con = DbHandler.getConnection();
        con.setAutoCommit(false);
        serviceBean.setUpdatedby(userId);
        serviceBean.setTsupdated(new Timestamp(System
            .currentTimeMillis()));
        serviceBean.store(con);

        // service groups
        Collection<ServicegroupBean> col = ServicegroupFinder
            .findByServiceidTheRealOne(con, serviceBean.getId());
        // loop exsisting services update or remove based on status
View Full Code Here

Examples of org.openqreg.bean.SettingBean.store()

      // sets the loginwaittimeout to the one in the database
      setBean = new SettingBean();
      setBean.setId("DISPATCHER_LOGINWAITTIMEOUT");
      setBean.setSetting(Integer.valueOf(this.getLoginWaitTimeOut())
          .toString());
      setBean.store();

      // sets the maxloginwait to the one in the database
      setBean = new SettingBean();
      setBean.setId("DISPATCHER_MAXLOGINWAIT");
      setBean.setSetting(Integer.valueOf(this.getMaxLoginWait())
View Full Code Here

Examples of org.openqreg.bean.UserBean.store()

      assertEquals("Attributen skall vara lika", user1.getAttribute("name1"), user2.getAttribute("name1"));
     
      //Radera attribut
      user2.removeAttribute("name1");
      assertNull("Attributet skall inte finnas", user2.getAttribute("name1"));
      user2.store(con);
      user1 = (UserBean)UserFinderBase.findByPrimaryKey(con, new UserKey(user2.getId()));
      assertNull("Attributet skall inte finnas", user2.getAttribute("name1"));

      //Uppdatera attribut
      user1.setAttribute("name1", "value1");
View Full Code Here

Examples of org.openqreg.bean.UsercentrerelBean.store()

          ucrBeanInDB.setCreatedby(user.getId());
          ucrBeanInDB.setCentreid(fCentreId);
          ucrBeanInDB.create(con);
        }
        if (!isNew) {
          ucrBeanInDB.store(con);
        }
        // set groupId and status on users changed from nonUcr to ucr
        // on users new active centre ()
        if (setGroupToActiveCentre
            && fCentreId.equals(userToEdit.getCentreid())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.