Package org.objectweb.speedo.j2eedo.database

Examples of org.objectweb.speedo.j2eedo.database.Address


            "First-" + Alea.randomstring(4, 5),
            "Last-" + Alea.randomstring(8, 10),
            cal.getTime(),
            d);
      e.setSalary(Alea.rand(5000, 45000));
      Address a = new Address();
      a.setCity("City-" + Alea.randomstring(4, 5));
      a.setStreet("Street-" + Alea.randomstring(4, 5));
      a.setState("StateItf-" + Alea.randomstring(4, 5));
      a.setZipcode("ZIP-" + Alea.randomstring(2, 3));
      e.setAddress(a);
      pm.makePersistent(e);
      if (0 == i) {
        boss = e;
                outStr.append("\nThe boss: ");
View Full Code Here


          "First-" + Alea.randomstring(4, 5),
          "Last-" + Alea.randomstring(8, 10),
          cal.getTime(),
          d);
    e.setSalary(Alea.rand(5000, 45000));
    Address a = new Address();
    a.setCity("City-" + Alea.randomstring(4, 5));
    a.setStreet("Street-" + Alea.randomstring(4, 5));
    a.setState("StateItf-" + Alea.randomstring(4, 5));
    a.setZipcode("ZIP-" + Alea.randomstring(2, 3));
    e.setAddress(a);
    pm.makePersistent(e);
        outStr.append("\nCreate a new employee:").append(e.getAsString());
    logger.log(BasicLevel.DEBUG, "Create a new employee having id=" + e.getEmpid());
    pollsSync.addInPool(DatabaseImpl.poolOfEmployeeId, e.getEmpid());
View Full Code Here

    logger.log(BasicLevel.DEBUG, "Delete employee having id=" + id);
    Employee e =
      (Employee) pm.getObjectById(
          pm.newObjectIdInstance(Employee.class, Long.toString(id)),
          false);
    Address a = e.getAddress();
    pm.deletePersistent(a);
    pm.deletePersistent(e);
  }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.j2eedo.database.Address

Copyright © 2018 www.massapicom. 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.