Package org.openqreg.bean

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


     
      Connection con = DbHandler.getConnection();
      con.setAutoCommit(false);
     
      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()));
View Full Code Here


      con.setAutoCommit(false);

      //Spara och ladda attribut
      CountryBean country1 = BeanFactory.getCountry("bi");
      country1.setAttribute("name1", "value1");
      country1.create(con);
      CountryBean country2 = (CountryBean)CountryFinderBase.findByPrimaryKey(con, new CountryKey(country1.getId()));
      assertEquals("Countryna skall vara lika", country1, country2);
      assertEquals("Attributen skall vara lika", country1.getAttribute("name1"), country2.getAttribute("name1"));
     
      //Radera attribut
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.