Examples of Update


Examples of avrobase.data.Update

* Time: 9:15 AM
*/
public class RowTest {
  @Test
  public void testRowClone() {
    Update u = new Update();
    u.bag = "23";
    u.owner = "1";
    u.created = System.currentTimeMillis();
    u.updated = System.currentTimeMillis();
    u.image = "1";
View Full Code Here

Examples of belotetime.application.data.Update

  }

  @Override
  public void update(Object args) {
    if (args instanceof Update) {
      Update update = (Update) args;
      switch (update.getAction()) {
      case "games":
        if (update.getData() != null) {
          setGame((ArrayList<String>) update.getData());
          _controller.execute("players", new Object[] { "default" });
        }
        break;
      case "players":
        setPlayer((ArrayList<String>) update.getData());
        break;
      case "addGame":
        Object data[] = ((Object[]) update.getData());
        if ((Boolean) data[0]) {
          _action = "create";
          _game = (String) data[1];
          _adresse = (String) data[2];
          _controller.execute("roomDisconnect",
View Full Code Here

Examples of br.com.visualmidia.business.Update

   * @return
   * @uml.property  name="updateList"
   */
    public List<Update> getUpdateList() {
      if ( GDSystem.isClientMode()){
        Update lastupdate = updateList.get(0);
        for (Update update : updateList) {
          if( Long.parseLong(lastupdate.getBuildId()) < Long.parseLong(update.getBuildId())) {
            lastupdate = update;
          }
        } 
        updateList.removeAll(updateList);
        updateList.add(lastupdate);
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.Update

  public static BaseMethodBinding bindMethod(Method theMethod, FhirContext theContext, Object theProvider) {
    Read read = theMethod.getAnnotation(Read.class);
    Search search = theMethod.getAnnotation(Search.class);
    Metadata conformance = theMethod.getAnnotation(Metadata.class);
    Create create = theMethod.getAnnotation(Create.class);
    Update update = theMethod.getAnnotation(Update.class);
    Delete delete = theMethod.getAnnotation(Delete.class);
    History history = theMethod.getAnnotation(History.class);
    // ** if you add another annotation above, also add it to the next line:
    if (!verifyMethodHasZeroOrOneOperationAnnotation(theMethod, read, search, conformance, create, update, delete, history)) {
      return null;
    }

    Class<? extends IResource> returnType;

    Class<? extends IResource> returnTypeFromRp = null;
    if (theProvider instanceof IResourceProvider) {
      returnTypeFromRp = ((IResourceProvider) theProvider).getResourceType();
      if (!verifyIsValidResourceReturnType(returnTypeFromRp)) {
        throw new ConfigurationException("getResourceType() from " + IResourceProvider.class.getSimpleName() + " type " + theMethod.getDeclaringClass().getCanonicalName() + " returned "
            + toLogString(returnTypeFromRp) + " - Must return a resource type");
      }
    }

    Class<?> returnTypeFromMethod = theMethod.getReturnType();
    if (MethodOutcome.class.equals(returnTypeFromMethod)) {
      // returns a method outcome
    }else if (Bundle.class.equals(returnTypeFromMethod)) {
      // returns a bundle
    }else if (void.class.equals(returnTypeFromMethod)) {
      // returns a bundle
    } else if (Collection.class.isAssignableFrom(returnTypeFromMethod)) {
      returnTypeFromMethod = ReflectionUtil.getGenericCollectionTypeOfMethodReturnType(theMethod);
      if (!verifyIsValidResourceReturnType(returnTypeFromMethod)) {
        throw new ConfigurationException("Method '" + theMethod.getName() + "' from " + IResourceProvider.class.getSimpleName() + " type " + theMethod.getDeclaringClass().getCanonicalName()
            + " returns a collection with generic type " + toLogString(returnTypeFromMethod) + " - Must return a resource type or a collection (List, Set) of a resource type");
      }
    } else {
      if (!verifyIsValidResourceReturnType(returnTypeFromMethod)) {
        throw new ConfigurationException("Method '" + theMethod.getName() + "' from " + IResourceProvider.class.getSimpleName() + " type " + theMethod.getDeclaringClass().getCanonicalName()
            + " returns " + toLogString(returnTypeFromMethod) + " - Must return a resource type");
      }
    }

    Class<? extends IResource> returnTypeFromAnnotation = IResource.class;
    if (read != null) {
      returnTypeFromAnnotation = read.type();
    } else if (search != null) {
      returnTypeFromAnnotation = search.type();
    } else if (history != null) {
      returnTypeFromAnnotation = history.type();
    } else if (delete != null) {
      returnTypeFromAnnotation = delete.type();
    } else if (create != null) {
      returnTypeFromAnnotation = create.type();
    } else if (update != null) {
      returnTypeFromAnnotation = update.type();
    }

    if (returnTypeFromRp != null) {
      if (returnTypeFromAnnotation != null && returnTypeFromAnnotation != IResource.class) {
        if (!returnTypeFromRp.isAssignableFrom(returnTypeFromAnnotation)) {
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.model.entities.Update

        if (isUsableForChangeExtraction(update.getNodeToUpdate())) {
            SourceCodeEntity entity =
                    new SourceCodeEntity(update.getOldValue(), update.getNodeToUpdate().getEntity().getType(), update
                            .getNodeToUpdate().getEntity().getModifiers(), update.getNodeToUpdate().getEntity()
                            .getSourceRange());
            return new Update(structureEntity, entity, update.getNewNode().getEntity(), ((Node) update
                    .getNodeToUpdate().getParent()).getEntity());
        }
        return null;
    }
View Full Code Here

Examples of co.cask.cdap.data2.dataset2.lib.table.ordered.Update

      if (colMap == null) {
        colMap = Maps.newTreeMap();
        rowMap.put(keyVal.getKey(), colMap);
      }
      // put into the column with given version
      Update merged = Updates.mergeUpdates(colMap.get(version), keyVal.getValue());
      colMap.put(version, merged);
    }
  }
View Full Code Here

Examples of com.asakusafw.compiler.fileio.operator.ExOperatorFactory.Update

    }

    @Override
    protected void describe() {
        ExOperatorFactory op = new ExOperatorFactory();
        Update result = op.update(input, 100);
        output.add(result.out);
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.testing.operator.ExOperatorFactory.Update

    }

    @Override
    protected void describe() {
        ExOperatorFactory op = new ExOperatorFactory();
        Update result = op.update(input, 100);
        output.add(result.out);
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.testing.operator.ExOperatorFactory.Update

    @Override
    protected void describe() {
        ExOperatorFactory op = new ExOperatorFactory();

        Update result1 = op.update(input, 100);
        output.add(result1.out);

        Update result2 = op.update(input, 200);
        nested.add(result2.out);
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.testing.operator.ExOperatorFactory.Update

    @Override
    protected void describe() {
        ExOperatorFactory op = new ExOperatorFactory();

        Update result1 = op.update(input, 100);
        output.add(result1.out);

        Update result2 = op.update(input, 200);
        independent.add(result2.out);
    }
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.