Examples of WriteOperation


Examples of com.google.web.bindery.requestfactory.shared.WriteOperation

    for (OperationMessage op : ops) {
      SimpleProxyId<?> id = getId(op);
      WriteOperation[] toPropagate = null;

      // May be null if the server is returning an unpersisted object
      WriteOperation effect = op.getOperation();
      if (effect != null) {
        switch (effect) {
          case DELETE:
            toPropagate = DELETE_ONLY;
            break;
          case PERSIST:
            toPropagate = PERSIST_AND_UPDATE;
            break;
          case UPDATE:
            toPropagate = UPDATE_ONLY;
            break;
          default:
            // Should never reach here
            throw new RuntimeException(effect.toString());
        }
      }
      processReturnOperation(id, op, toPropagate);
    }
  }
View Full Code Here

Examples of com.google.web.bindery.requestfactory.shared.WriteOperation

    for (Map.Entry<SimpleProxyId<?>, AutoBean<? extends BaseProxy>> entry : toProcess.entrySet()) {
      SimpleProxyId<?> id = entry.getKey();

      AutoBean<? extends BaseProxy> bean = entry.getValue();
      Object domainObject = bean.getTag(Constants.DOMAIN_OBJECT);
      WriteOperation writeOperation;

      if (id.isEphemeral()) {
        // See if the entity has been persisted in the meantime
        returnState.getResolver().resolveClientValue(domainObject, id.getProxyClass(),
            Collections.<String> emptySet());
View Full Code Here

Examples of net.sf.ehcache.writer.writebehind.operations.WriteOperation

        try {
            if (stopping || stopped) {
                throw new CacheException("The element '" + element + "' couldn't be added through the write-behind queue for cache '"
                        + cacheName + "' since it's not started.");
            }
            waiting.add(new WriteOperation(element));
            if (waiting.size() + 1 < maxQueueSize) {
                queueIsFull.signal();
            }
            queueIsEmpty.signal();
        } finally {
View Full Code Here

Examples of net.sf.jmatchparser.template.engine.operation.WriteOperation

    this.newLine = newLine;
  }

  @Override
  public PlainBlockCommandState parse(MatchTemplateImpl template, String parameters) {
    template.appendOperation(new WriteOperation(template.getCurrentTemplatePosition(),
        Parameter.parseParameter(parameters, template.getSpecialTags()),
        newLine));
    return null;
  }
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.