Package com.tll.model.bk

Examples of com.tll.model.bk.BusinessKeyFactory.create()


      ((ITimeStampEntity) e2).setDateCreated(((ITimeStampEntity) e2).getDateCreated());
      ((ITimeStampEntity) e2).setDateModified(((ITimeStampEntity) e2).getDateModified());
    }
    try {
      BusinessKeyFactory bkf = new BusinessKeyFactory(new EntityMetadata());
      bkf.apply(e2, bkf.create(e1));
    }
    catch(final BusinessKeyNotDefinedException e) {
      // assume ok
    }
    catch(final BusinessKeyPropertyException e) {
View Full Code Here


    final AccountInterface ai = stubAccountInterface(intf, a, false);

    getInterfaceService().setAccountInterface(ai);

    BusinessKeyFactory bkf = new BusinessKeyFactory(new EntityMetadata());
    final IBusinessKey<InterfaceOptionAccount> bk = bkf.create(InterfaceOptionAccount.class, "Option Id and Account Id");
    bk.setPropertyValue("option.id", io.getId());
    bk.setPropertyValue("account.id", a.getId());
    final InterfaceOptionAccount ioa = getDao().load(bk);
    Assert.assertNotNull(ioa);
  }
View Full Code Here

  @Override
  public AccountInterface loadAccountInterface(Long accountKey, Long interfaceKey) {
    IBusinessKey<InterfaceOptionAccount> bk;
    try {
      BusinessKeyFactory bkf = new BusinessKeyFactory(new EntityMetadata());
      bk = bkf.create(InterfaceOptionAccount.class, "Option Id and Account Id");
    }
    catch(final BusinessKeyNotDefinedException e) {
      throw new IllegalStateException(e);
    }
    bk.setPropertyValue("account.id", accountKey);
View Full Code Here

    // remove existing account subscribed options
    IBusinessKey<InterfaceOptionAccount> bk;
    try {
      BusinessKeyFactory bkf = new BusinessKeyFactory(new EntityMetadata());
      bk = bkf.create(InterfaceOptionAccount.class, "Option Id and Account Id");
    }
    catch(final BusinessKeyNotDefinedException e) {
      throw new IllegalStateException(e);
    }
    bk.setPropertyValue("account.id", accountInterface.getAccountKey());
View Full Code Here

    }

    IBusinessKey<InterfaceOptionAccount> bk;
    try {
      BusinessKeyFactory bkf = new BusinessKeyFactory(new EntityMetadata());
      bk = bkf.create(InterfaceOptionAccount.class, "Option Id and Account Id");
    }
    catch(final BusinessKeyNotDefinedException e) {
      throw new IllegalStateException(e);
    }
    bk.setPropertyValue("account.id", accountKey);
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.