Examples of update()


Examples of org.jboss.tutorial.extended.bean.ShoppingCart.update()

      long id = test.createCustomer();
      c = remote.find(id);
      System.out.println("Created customer: " + c.getName());

      test.update();
      c = remote.find(id);
      System.out.println("ShoppingCartBean.customer should stay managed because we're in an extended PC: Customer.getName() == " + c.getName());

      test.update3();
      c = remote.find(id);
View Full Code Here

Examples of org.jbox2d.dynamics.contacts.Contact.update()

      bA.advance(minAlpha);
      bB.advance(minAlpha);

      // The TOI contact likely has some new contact points.
      minContact.update(m_contactManager.m_contactListener);
      minContact.m_flags &= ~Contact.TOI_FLAG;
      ++minContact.m_toiCount;

      // Is the contact solid?
      if (minContact.isEnabled() == false || minContact.isTouching() == false) {
View Full Code Here

Examples of org.jbpm.pvm.internal.session.DbSession.update()

      dbSession.save(task);
     
      HistoryEvent.fire(new TaskCreated(task));

    } else {
      dbSession.update(task);

      HistoryEvent.fire(new TaskUpdated(task));
    }

    return task.getId();
View Full Code Here

Examples of org.jclouds.abiquo.domain.cloud.Volume.update()

   public void testListEventsFilteredByVolume() {
      String name = randomName();
      Volume volume = createVolume();
      volume.setName(name);
      volume.update();
      volume.delete(); // We don't need it any more. events already exist

      EventOptions options = EventOptions.builder().dateFrom(new Date()).volumeName(name).build();
      assertEvents(options);
   }
View Full Code Here

Examples of org.jclouds.abiquo.domain.enterprise.Role.update()

   public void testUpdate() {
      Role role = Role.builder(env.context.getApiContext()).name("dummyRoleUpdateRole").blocked(false).build();
      role.save();

      role.setName("UPDATED_ROLE");
      role.update();

      // Recover the updated role
      RoleDto updated = env.adminApi.getRole(role.getId());

      assertEquals(updated.getName(), "UPDATED_ROLE");
View Full Code Here

Examples of org.jclouds.abiquo.domain.enterprise.User.update()

    **/
   @Test(enabled = false)
   public void testListEventsFilteredByUser() {
      User current = env.plainUserContext.getAdministrationService().getCurrentUser();
      current.setEmail("test@test.com");
      current.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).userName(current.getName()).build();
      assertEvents(options);
   }

View Full Code Here

Examples of org.jclouds.openstack.neutron.v2.extensions.RouterApi.update()

         Router.UpdateOptions updateOptions = Router.updateOptions()
               .externalGatewayInfo(
                     ExternalGatewayInfo.builder().networkId("8ca37218-28ff-41cb-9b10-039601ea7e6b").build())
               .build();

         Router router = api.update("12345", updateOptions);

         /*
          * Check request
          */
         assertAuthentication(server);
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.features.PolicyApi.update()

                        .name(NAME)
                        .targetType(ScalingPolicyTargetType.DESIRED_CAPACITY)
                        .target("0")
                        .build();

                  pa.update(policyId, scalingPolicy);
                  Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);

                  try {
                     pa.execute(policyId);
                  } catch (Exception e) {
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.features.NodeApi.update()

            .condition(Node.Condition.ENABLED)
            .weight(20)
            .build();

      for (Node node: nodes) {        
         nodeApi.update(node.getId(), updateNode);
         System.out.println("  " + node.getId() + " " + updateNode);
      }

      // Wait for the Load Balancer to become Active before moving on
      // If you want to know what's happening during the polling, enable logging. See
View Full Code Here

Examples of org.jdesktop.wonderland.modules.appbase.client.view.View2DEntity.update()

            logger.warning("Move view out of ortho " + view);
            view.setOrtho(false, false);
        }

        // Now make it all happen
        view.update();
        view.updateFrame();
    }

    /**
     * Call this when the app has control in order to display the window menu
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.