Package com.tll.model

Examples of com.tll.model.InterfaceOptionAccount


    bk.setPropertyValue("account.id", accountInterface.getAccountId());

    for(final InterfaceOption io : intf.getOptions()) {
      try {
        bk.setPropertyValue("option.id", io.getId());
        final InterfaceOptionAccount ioa = dao.load(bk);
        dao.purge(ioa);
      }
      catch(final EntityNotFoundException e) {
        // ok
      }
    }

    // add the replacement ioas
    for(final AccountInterfaceOption aio : accountInterface.getOptions()) {
      final InterfaceOptionAccount ioa = entityAssembler.assembleEntity(InterfaceOptionAccount.class, null, true);
      ioa.setAccount(account);
      final InterfaceOption io = dao.load(new PrimaryKey<InterfaceOption>(InterfaceOption.class, aio.getId()));
      ioa.setOption(io);
      ioa.setSetUpPrice(aio.getSetUpPrice());
      ioa.setMonthlyPrice(aio.getMonthlyPrice());
      ioa.setAnnualPrice(aio.getAnnualPrice());

      final HashMap<String, String> mparams = new HashMap<String, String>();
      for(final AccountInterfaceOptionParameter aiop : aio.getParameters()) {
        mparams.put(aiop.getName(), aiop.getValue());
      }
      ioa.setParameters(mparams);

      dao.persist(ioa);
    }

  }
View Full Code Here


    bk.setPropertyValue("account.id", accountId);

    for(final InterfaceOption io : intf.getOptions()) {
      bk.setPropertyValue("option.id", io.getId());
      try {
        final InterfaceOptionAccount ioa = dao.load(bk);
        dao.purge(ioa);
      }
      catch(final EntityNotFoundException e) {
        // ok
      }
View Full Code Here

TOP

Related Classes of com.tll.model.InterfaceOptionAccount

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.