Examples of saveObject()


Examples of ejp.DatabaseManager.saveObject()

            // HSQL in memory database
            DatabaseManager dbm = DatabaseManager.getDatabaseManager("users", 5, "org.hsqldb.jdbcDriver", "jdbc:hsqldb:mem:users", "sa", "");
           
            dbm.executeUpdate("create memory table users(username varchar(30), password varchar(30), first_name varchar(40), last_name varchar(40), roles varchar(100))");
           
            dbm.saveObject(new User("admin", "b8fOPfDKETezXTCgqbtF", "Admin", null, "admin, create, delete"));
            dbm.saveObject(new User("jsmith", "njiaJzLtntWp6abHfRtU", "John", "Smith", "user"));
           
            config.getServletContext().setAttribute("databaseManager", dbm);
          }
        catch (Exception e)
View Full Code Here

Examples of ejp.DatabaseManager.saveObject()

            DatabaseManager dbm = DatabaseManager.getDatabaseManager("users", 5, "org.hsqldb.jdbcDriver", "jdbc:hsqldb:mem:users", "sa", "");
           
            dbm.executeUpdate("create memory table users(username varchar(30), password varchar(30), first_name varchar(40), last_name varchar(40), roles varchar(100))");
           
            dbm.saveObject(new User("admin", "b8fOPfDKETezXTCgqbtF", "Admin", null, "admin, create, delete"));
            dbm.saveObject(new User("jsmith", "njiaJzLtntWp6abHfRtU", "John", "Smith", "user"));
           
            config.getServletContext().setAttribute("databaseManager", dbm);
          }
        catch (Exception e)
          {
View Full Code Here

Examples of no.ugland.utransprod.service.ApplicationUserManager.saveObject()

      jobFunction = jobFunctions.get(0);

      user = new ApplicationUser(null, "avviktransport",
          "avviktransport", "avviktransport", "avviktransport", null,
          "Nei", jobFunction, productArea, null);
      applicationUserManager.saveObject(user);

      UserType userType = new UserType();
      userType.setDescription("Avvik");
      List<UserType> userTypes = userTypeManager.findByObject(userType);
      userType = userTypes.get(0);
View Full Code Here

Examples of no.ugland.utransprod.service.ApplicationUserManager.saveObject()

      Set<UserRole> userRoles = new HashSet<UserRole>();
      UserRole userRole = new UserRole(null, userType, user);
      userRoles.add(userRole);
      user.setUserRoles(userRoles);

      applicationUserManager.saveObject(user);
    }

    JobFunction jobFunction = user.getJobFunction();

    if (!jobFunction.getManager().equals(user)) {
View Full Code Here

Examples of no.ugland.utransprod.service.JobFunctionManager.saveObject()

    JobFunction jobFunction = user.getJobFunction();

    if (!jobFunction.getManager().equals(user)) {
      jobFunction.setManager(user);
      jobFunctionManager.saveObject(jobFunction);
    }

    Login login = new LoginImpl(user, user.getUserRoles().iterator().next()
        .getUserType());
View Full Code Here

Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

    if (!refreshing) {
      OverviewManager overviewManager = (OverviewManager) ModelUtil
          .getBean(packable.getManagerName());
      if (!defaultColliesGenerated()) {
        packable.setDefaultColliesGenerated(1);
        overviewManager.saveObject(packable);
        List<Colli> collies = packable.getColliList();
        List<OrderLine> orderLines = packable.getOrderLineList();
        Colli tmpColli;

        tmpColli = new Colli(null,
View Full Code Here

Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

              }
            }
          }
        }
       
        overviewManager.saveObject(packable);
        setPackable(packable, null);
      }
    }
  }
View Full Code Here

Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

      abstractOrderModel.setColliesDone(0);

    }

    try {
      overviewManager.saveObject(abstractOrderModel.getObject());
    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil",
          "Ordre er oppdatert av noen andre, oppdater f�r lagring");
      e.printStackTrace();
    } catch (HibernateOptimisticLockingFailureException e) {
View Full Code Here

Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

        .getBean();

    OverviewManager overviewManager = (OverviewManager) ModelUtil
        .getBean(abstractOrderModel.getManagerName());
    try {
      overviewManager.saveObject(abstractOrderModel.getObject());
    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil", e.getMessage());
      e.printStackTrace();
    }
    if (orderSelectionList.hasSelection()) {
View Full Code Here

Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

          newOrderLine.setAttributeInfo(newOrderLine
              .getAttributesAsString());
          try {
            managerRepository.getOrderLineManager().saveOrderLine(
                newOrderLine);
            overviewManager.saveObject(abstractOrderModel
                .getObject());
            abstractOrderModel.addOrderLine(newOrderLine);
            ownOrderLineList.add(newOrderLine);
          } catch (ProTransException e) {
            Util.showErrorDialog(window, "Feil", e.getMessage());
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.