Examples of update()


Examples of com.avaje.ebean.EbeanServer.update()

     
      EBasic updatedEntity = new EBasic();
      updatedEntity.setId(bean1.getId());
      updatedEntity.setName("hello-changed");
     
      server.update(updatedEntity);
     
      // actually the bean is not in the persistence context so ...  the assert is fine
      EBasic loadedEntity = server.find(EBasic.class,bean1.getId());

      assertThat(loadedEntity.getName(), is("hello-changed"));
View Full Code Here

Examples of com.avaje.ebeaninternal.api.SpiEbeanServer.update()

       
        BeanProperty prop = beanDescriptor.getBeanProperty(derivedRelationshipData.getLogicalName());
        EntityBean entityBean = (EntityBean)derivedRelationshipData.getBean();
        entityBean._ebean_getIntercept().markPropertyAsChanged(prop.getPropertyIndex());
       
        ebeanServer.update(entityBean, transaction);       
      }
    }
  }

  /**
 
View Full Code Here

Examples of com.avaje.tests.model.info.InfoCustomer.update()

    Assert.assertNotNull(InfoCompany.find.byId(company.getId()));


    // just update the customer
    customer.setName("first mod");
    customer.update();

    // update the customer and company
    customer.getCompany().setName("2nd mod company");
    customer.setName("2nd mod customer");
    customer.update();
View Full Code Here

Examples of com.baasbox.dao.DocumentDao.update()

    DocumentDao dao = DocumentDao.getInstance(collection);
    DbHelper.requestTransaction();

    ODocument doc = dao.create();
    try  {
      dao.update(doc,(ODocument) (new ODocument()).fromJSON(bodyJson.toString()));
      dao.save(doc);
      DbHelper.commitTransaction();
    }catch (OSerializationException e){
      DbHelper.rollbackTransaction();
      throw new InvalidJsonException(e);
View Full Code Here

Examples of com.baasbox.dao.ScriptsDao.update()

    }

    public static ScriptStatus update(String name,String code) throws ScriptException {
        ScriptsDao dao = ScriptsDao.getInstance();
        updateCacheVersion();
        ODocument updated = dao.update(name,code);
        compile(updated);

        ScriptStatus status;
        ScriptCall install = ScriptCall.install(updated);
        try {
View Full Code Here

Examples of com.badlogic.ashley.core.Engine.update()

        engine.addSystem(system);
        engine.addEntity(e);

        //When entity has ComponentA
        e.add(new ComponentA());
        engine.update(deltaTime);

        assertEquals(0, system.numUpdates);

        //When entity has ComponentA and ComponentB
        system.numUpdates = 0;
View Full Code Here

Examples of com.badlogic.ashley.core.PooledEngine.update()

   
    log("MovementSystem has: " + movementSystem.entities.size() + " entities.");
    log("PositionSystem has: " + positionSystem.entities.size() + " entities.");
   
    for(int i=0; i<10; i++){
      engine.update(0.25f);
     
      if(i > 5)
        engine.removeSystem(movementSystem);
    }
   
View Full Code Here

Examples of com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderCallback.update()

            callback.error(file);
          }

          @Override
          public void update (PreloaderState state) {
            callback.update(state);
            if (state.hasEnded()) {
              getRootPanel().clear();
              if(loadingListener != null)
                loadingListener.beforeSetup();
              setupLoop();
View Full Code Here

Examples of com.badlogic.gdx.graphics.Camera.update()

    viewport.update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), true);
  }

  public void draw () {
    Camera camera = viewport.getCamera();
    camera.update();

    if (!root.isVisible()) return;

    Batch batch = this.batch;
    if (batch != null) {
View Full Code Here

Examples of com.badlogic.gdx.graphics.OrthographicCamera.update()

   
    @Override
    public void create() {
      OrthographicCamera camera = new OrthographicCamera(640, 480);
      camera.position.set(320, 240, 0);
      camera.update();
     
      Texture crateTexture = new Texture("assets/crate.png");
      Texture coinTexture = new Texture("assets/coin.png");
     
      engine = new PooledEngine();
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.