Package com.tll.common.search

Examples of com.tll.common.search.PrimaryKeySearch


    final Address a = getEntityBeanFactory().getEntityCopy(Address.class, true);
    final String id = a.getId();
    addEntityToDb(a);

    final PersistServiceDelegate delegate = getDelegate();
    final PrimaryKeySearch search = new PrimaryKeySearch(new ModelKey(TestEntityType.ADDRESS, id, null));
    final LoadRequest<PrimaryKeySearch> request = new LoadRequest<PrimaryKeySearch>(search);
    final ModelPayload p = delegate.load(request);

    assert p != null;
    final Model m = p.getModel();
View Full Code Here


    }
    else {
      IEntity e = null;
      IEntityType et = null;
      if(search instanceof PrimaryKeySearch) {
        final PrimaryKeySearch pks = (PrimaryKeySearch) search;
        e = loadEntityByPrimaryKey(pks, payload.getStatus());
        et = pks.getKey().getEntityType();
      }
      else if(search instanceof BusinessKeySearch) {
        final BusinessKeySearch bks = (BusinessKeySearch) search;
        e = loadEntityByBusinesKey(bks, payload.getStatus());
        et = bks.getEntityType();
View Full Code Here

      }, new InterfaceStack.IFieldPanelDataLoader() {

        @Override
        public IRpcCommand load(ModelKey intfKey, AuxDataRequest adr) {
          final CrudCommand c = new CrudCommand();
          c.load(new PrimaryKeySearch(intfKey), adr);
          return c;
        }
      }, true);
    addWidget(intfStack);
  }
View Full Code Here

    final com.tll.server.AdminContext sac =
      (com.tll.server.AdminContext) rc.getSession().getAttribute(com.tll.server.AdminContext.KEY);
    final Marshaler em = mec.getMarshaler();
    assert delegate != null && em != null && sac != null;

    final ModelPayload ep = delegate.load(new LoadRequest<PrimaryKeySearch>(new PrimaryKeySearch(accountRef)));
    final Status status = ep.getStatus();

    status.addMsg("Admin Context current account retrieved for " + accountRef.descriptor(), MsgLevel.INFO,
        MsgAttr.STATUS.flag);
    return new AdminContextPayload(status, ep.getModel());
View Full Code Here

  private void reload() {
    Command cmd = null;
    if(model == null) {
      // we need to fetch the model first
      // NOTE: needed aux data will be fetched with this rpc call
      cmd = CrudCommand.loadModel(this, new PrimaryKeySearch(modelKey), getNeededAuxData());
    }
    else {
      cmd = AuxDataCommand.fetchAuxData(this, getNeededAuxData());
      if(cmd == null) {
        editPanel.setModel(model);
View Full Code Here

  private void reload() {
    Command cmd = null;
    if(model == null) {
      // we need to fetch the model first
      // NOTE: needed aux data will be fetched with this rpc call
      cmd = CrudCommand.loadModel(this, new PrimaryKeySearch(modelKey), getNeededAuxData());
    }
    else {
      cmd = AuxDataCommand.fetchAuxData(this, getNeededAuxData());
      if(cmd == null) {
        editPanel.setModel(model);
View Full Code Here

      }, new InterfaceStack.IFieldPanelDataLoader() {

        @Override
        public IRpcCommand load(ModelKey intfKey, AuxDataRequest adr) {
          final CrudCommand c = new CrudCommand();
          c.load(new PrimaryKeySearch(intfKey), adr);
          return c;
        }
      }, true);
    addWidget(intfStack);
  }
View Full Code Here

TOP

Related Classes of com.tll.common.search.PrimaryKeySearch

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.