Package com.tll.model

Examples of com.tll.model.InterfaceOptionParameterDefinition


    e.removeOption(o);
    removedOption = o;

    final Iterator<InterfaceOptionParameterDefinition> itrp = o2.getParameters().iterator();
    final InterfaceOptionParameterDefinition p = itrp.next();
    final InterfaceOptionParameterDefinition p2 = itrp.next();
    o2.removeParameter(p);
    removedParam = p;
    p2.setDescription("updated");
  }
View Full Code Here


  private Interface stubInterface(boolean persist) {
    if(persist) getDbTrans().startTrans();
    final Interface intf = stub(InterfaceSwitch.class, false);
    final InterfaceOption io = stub(InterfaceOption.class, false);
    final InterfaceOptionParameterDefinition iopd = stub(InterfaceOptionParameterDefinition.class, false);
    io.addParameter(iopd);
    intf.addOption(io);
    if(persist) {
      getDbTrans().setComplete();
      getDao().persist(intf);
View Full Code Here

    account = persist(account);
    pkA = account.getId();

    Interface intf = create(InterfaceSwitch.class, true);
    final InterfaceOption option = create(InterfaceOption.class, true);
    final InterfaceOptionParameterDefinition param = create(InterfaceOptionParameterDefinition.class, true);
    option.addParameter(param);
    intf.addOption(option);
    intf = persist(intf);
    pkI = intf.getId();
  }
View Full Code Here

  @Override
  public void assembleTestEntity(InterfaceOptionAccount e) throws Exception {
    e.setAccount(load(Asp.class, pkA));
    final Interface inter = load(Interface.class, pkI);
    final InterfaceOption option = inter.getOptions().iterator().next();
    final InterfaceOptionParameterDefinition param = option.getParameters().iterator().next();
    e.setOption(option);
    e.setParameter(param.getName(), "ioa_pvalue");
    numParameters = e.getNumParameters();
  }
View Full Code Here

  private Interface stubInterface(boolean persist) {
    if(persist) startNewTransaction();
    final Interface intf = stub(InterfaceSwitch.class, false);
    final InterfaceOption io = stub(InterfaceOption.class, false);
    final InterfaceOptionParameterDefinition iopd = stub(InterfaceOptionParameterDefinition.class, false);
    io.addParameter(iopd);
    intf.addOption(io);
    if(persist) {
      setComplete();
      getDao().persist(intf);
View Full Code Here

    account.setCurrency(currency);
    account = persist(account);

    intf = create(InterfaceSwitch.class, true);
    InterfaceOption option = create(InterfaceOption.class, true);
    InterfaceOptionParameterDefinition param = create(InterfaceOptionParameterDefinition.class, true);
    option.addParameter(param);
    intf.addOption(option);
    intf = persist(intf);
  }
View Full Code Here

  @Override
  public void assembleTestEntity(InterfaceOptionAccount e) throws Exception {
    e.setAccount(account);
    InterfaceOption option = intf.getOptions().iterator().next();
    InterfaceOptionParameterDefinition param = option.getParameters().iterator().next();
    e.setOption(option);
    e.setParameter(param.getName(), "ioa_pvalue");
    numParameters = e.getNumParameters();
  }
View Full Code Here

    e.removeOption(o);
    removedOption = o;

    final Iterator<InterfaceOptionParameterDefinition> itrp = o2.getParameters().iterator();
    final InterfaceOptionParameterDefinition p = itrp.next();
    final InterfaceOptionParameterDefinition p2 = itrp.next();
    o2.removeParameter(p);
    removedParam = p;
    p2.setDescription("updated");
  }
View Full Code Here

TOP

Related Classes of com.tll.model.InterfaceOptionParameterDefinition

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.