Examples of addEntity()


Examples of com.alvazan.test.db.InheritanceToMany.addEntity()

    toMany.setNum(78);
    toMany.setNumBalls(33);
    mgr.put(toMany);
   
    InheritanceToMany rel = new InheritanceToMany();
    rel.addEntity(common);
    rel.addEntity(toMany);
    mgr.put(rel);
   
    mgr.flush();
   
View Full Code Here

Examples of com.artemis.World.addEntity()

     
      if (Constants.shouldHaveComponent(ComponentType.STATE, i)) {
        entity.addComponent(new StateComponent());
      }
     
      world.addEntity(entity);
    }
   
    return world;
  }
}
View Full Code Here

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

        final Family family = Family.all(ComponentA.class, ComponentB.class).get();
        final IteratingSystemMock system = new IteratingSystemMock(family);
        final Entity e = new Entity();

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

        //When entity has ComponentA
        e.add(new ComponentA());
        engine.update(deltaTime);
View Full Code Here

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

      Entity entity = engine.createEntity();
      entity.add(new PositionComponent(10, 0));
      if(i > 5)
        entity.add(new MovementComponent(10, 2));
     
      engine.addEntity(entity);
    }
   
    log("MovementSystem has: " + movementSystem.entities.size() + " entities.");
    log("PositionSystem has: " + positionSystem.entities.size() + " entities.");
   
View Full Code Here

Examples of com.gammastream.validity.GSVModel.addEntity()

        String entityName = this.selectedAttribute().entity().name();
        GSVModel model = session.model();
        GSVEntity entity = model.entityNamed(entityName);
        if(entity==null){
            entity = new GSVEntity(model, entityName);
            model.addEntity(entity);
        }
        GSVAttribute att = entity.attributeNamed(this.selectedAttribute().name());
        if(att==null){
            att = new  GSVAttribute(entity, this.selectedAttribute().name());
            entity.addAttribute(att);
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetResponse.addEntity()

        Entity entity = theData.get(key);
        if (entity == null) {
          theData.remove(key);
          continue;
        }
        responsePb.addEntity(entity);
      }
      log.debug("all data was retrieved from memcache. finish.");
      return Pair.response(responsePb.toByteArray());
    }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.PutRequest.addEntity()

            throw new IllegalStateException("The transaction must be active.");
        }
        assignKeyIfNecessary(entity);
        EntityProto entityProto = EntityTranslator.convertToPb(entity);
        PutRequest req = createPutRequest(tx);
        req.addEntity(entityProto);
        putUsingLowerApi(req);
        return entity.getKey();
    }

    /**
 
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.PutRequest.addEntity()

                || req.entitySize() >= MAX_NUMBER_OF_ENTITIES) {
                putUsingLowerApi(req);
                req = createPutRequest(tx);
                totalSize = 0;
            }
            req.addEntity(e);
            totalSize += size + EXTRA_SIZE;
        }
        if (req.entitySize() > 0) {
            putUsingLowerApi(req);
        }
View Full Code Here

Examples of com.liferay.portal.kernel.dao.orm.SQLQuery.addEntity()

      String sql = CustomSQLUtil.get(FIND_BY_G1_G2_U1_U2);

      SQLQuery q = session.createSQLQuery(sql);

      q.addEntity("SN_WallEntry", WallEntryImpl.class);

      QueryPos qPos = QueryPos.getInstance(q);

      qPos.add(groupId1);
      qPos.add(groupId2);
View Full Code Here

Examples of com.sourcetap.sfa.event.DataMatrix.addEntity()

        userLoginGV.set("currentPassword", userPassword);
       
        DataMatrix dataMatrix = new DataMatrix(delegator, new Vector());
        dataMatrix.getCurrentBuffer().addContentsRow(new Vector());

        dataMatrix.addEntity("Contact", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(contactGV);

        dataMatrix.addEntity("Address", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(addressGV);
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.