Package com.tll.model

Examples of com.tll.model.AccountInterfaceOptionParameter


    aio.setSetUpCost(io.getSetUpCost());
    aio.setSubscribed(ioa != null)// account is subscribed simply if there is a InterfaceOptionAccount record
    final LinkedHashSet<AccountInterfaceOptionParameter> aiops = new LinkedHashSet<AccountInterfaceOptionParameter>();
    aio.setParameters(aiops);
    for(final InterfaceOptionParameterDefinition iopd : io.getParameters()) {
      final AccountInterfaceOptionParameter aiop = entityAssembler.assembleEntity(AccountInterfaceOptionParameter.class, null);
      aiop.setId(iopd.getId());
      aiop.setVersion(Integer.valueOf(1))// mimic non-new entity
      aiops.add(aiop);
      aiop.setCode(iopd.getCode());
      aiop.setName(iopd.getName());
      aiop.setDescription(iopd.getDescription());
      aiop.setDateCreated(iopd.getDateCreated());
      aiop.setDateModified(iopd.getDateModified());
      aiop.setValue(ioa == null ? null : ioa.getParameters().get(iopd.getName()));
    }
    return aio;
  }
View Full Code Here


      aio.setDescription(io.getDescription());
      aio.setAnnualPrice(1f);
      aio.setMonthlyPrice(1f);
      aio.setSetUpPrice(1f);
      for(final InterfaceOptionParameterDefinition iopd : io.getParameters()) {
        final AccountInterfaceOptionParameter aiop =
          efactory.createEntity(AccountInterfaceOptionParameter.class, true);
        aiop.setId(iopd.getId());
        aiop.setName(iopd.getName());
        aiop.setCode(iopd.getCode());
        aiop.setDescription(iopd.getDescription());
        aiop.setValue(Integer.toString(RandomUtils.nextInt(100)));
        aio.addParameter(aiop);
      }
      ai.addOption(aio);
    }
    if(persist) {
View Full Code Here

      aio.setDescription(io.getDescription());
      aio.setAnnualPrice(1f);
      aio.setMonthlyPrice(1f);
      aio.setSetUpPrice(1f);
      for(final InterfaceOptionParameterDefinition iopd : io.getParameters()) {
        final AccountInterfaceOptionParameter aiop =
          efactory.createEntity(AccountInterfaceOptionParameter.class, false);
        aiop.setId(iopd.getId());
        aiop.setName(iopd.getName());
        aiop.setCode(iopd.getCode());
        aiop.setDescription(iopd.getDescription());
        aiop.setValue(Integer.toString(RandomUtils.nextInt(100)));
        aio.addParameter(aiop);
      }
      ai.addOption(aio);
    }
    if(persist) {
View Full Code Here

    aio.setSetUpCost(io.getSetUpCost());
    aio.setSubscribed(ioa != null)// account is subscribed simply if there is a InterfaceOptionAccount record
    final LinkedHashSet<AccountInterfaceOptionParameter> aiops = new LinkedHashSet<AccountInterfaceOptionParameter>();
    aio.setParameters(aiops);
    for(final InterfaceOptionParameterDefinition iopd : io.getParameters()) {
      final AccountInterfaceOptionParameter aiop = entityAssembler.assembleEntity(AccountInterfaceOptionParameter.class, null, false);
      aiop.setId(iopd.getId());
      aiop.setVersion(1)// mimic non-new entity
      aiops.add(aiop);
      aiop.setCode(iopd.getCode());
      aiop.setName(iopd.getName());
      aiop.setDescription(iopd.getDescription());
      aiop.setDateCreated(iopd.getDateCreated());
      aiop.setDateModified(iopd.getDateModified());
      aiop.setValue(ioa == null ? null : ioa.getParameters().get(iopd.getName()));
    }
    return aio;
  }
View Full Code Here

TOP

Related Classes of com.tll.model.AccountInterfaceOptionParameter

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.