Examples of createEntity()


Examples of com.artemis.World.createEntity()

    world.setSystem(new RemovalSystem());
   
    world.initialize();
   
    for (int i = 0; i < numEntities; ++i) {
      Entity entity = world.createEntity();
     
      if (Constants.shouldHaveComponent(ComponentType.POSITION, i)) {
        PositionComponent pos = new PositionComponent();
        pos.pos.x = MathUtils.random(Constants.MIN_POS, Constants.MAX_POS);
        pos.pos.y = MathUtils.random(Constants.MIN_POS, Constants.MAX_POS);
View Full Code Here

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

   
    Listener listener = new Listener();
    engine.addEntityListener(listener);
   
    for(int i=0; i<10; i++){
      Entity entity = engine.createEntity();
      entity.add(new PositionComponent(10, 0));
      if(i > 5)
        entity.add(new MovementComponent(10, 2));
     
      engine.addEntity(entity);
View Full Code Here

Examples of com.caucho.amber.entity.EntityItem.createEntity()

    */
    // jpa/0o03
    boolean isLoad = isEager;

    try {
      entity = cacheItem.createEntity(this, key);

      if (entity == null)
        return null;

      // The entity is added for eager loading
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createEntity()

    String targetName = _fieldType.getName();

    ManyToOneField manyToOneField;
    manyToOneField = new ManyToOneField(_sourceType, _fieldName, getCascade(), true);

    EntityType targetType = persistenceUnit.createEntity(getTargetEntity());

    manyToOneField.setType(targetType);

    manyToOneField.setLazy(isFetchLazy());
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createEntity()

  {
    AmberPersistenceUnit persistenceUnit = _sourceType.getPersistenceUnit();

    String targetName = _fieldType.getName();
     
    EntityType targetType = persistenceUnit.createEntity(getTargetEntity());

    if (isOwningSide()) {
      addManyToOne();

      // XXX: set unique
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createEntity()

  private void addManyToOne()
    throws ConfigException
  {
    AmberPersistenceUnit persistenceUnit = _sourceType.getPersistenceUnit();

    EntityType targetType = persistenceUnit.createEntity(getTargetEntity());

    ManyToOneField manyToOneField;
    manyToOneField = new ManyToOneField(_sourceType, _fieldName,
                                        getCascade(), false);
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createEntity()

  private void addDependentOneToOne()
  {
    AmberPersistenceUnit persistenceUnit = _sourceType.getPersistenceUnit();

    EntityType targetType = persistenceUnit.createEntity(getTargetEntity());

    // Owner
    ManyToOneField sourceField
      = getSourceField(targetType, _mappedBy, _sourceType);
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.createEntity()

        }
       
        // custom fields
        this.addCustomFields(newEntity, mailRemote.getValidFields("Entity"), contactForm);

        int newEntityID = cfremote.createEntity(newEntity, individualID);
        finalEntityID = newEntityID;
      }else{
        primaryContact = "No";
        // in this block, we're updating an existing entity
        // USE finalEntityID to update the existing entity
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.createEntity()

          // to the same data for the new Individual
          MethodOfContactVO tmpVO = (MethodOfContactVO)iter.next();
          newEntity.setMOC(tmpVO);
        }

        int newEntityID = remote.createEntity(newEntity, individualID);

        // Check to see if the user's preference is to create sync'ed
        // records as private. If so, delete all records from recordauthorisation
        // and publicrecords tables that link to the newly created records.
        if (syncAsPrivate)
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.createEntity()

        // new entity form again, with error messages...
        this.saveErrors(request, allErrors);
        return mapping.findForward(".view.contact.new_entity");
      }

      int newEntityId = contactFacade.createEntity(entityVO, individualId);

      if (request.getParameter("new") != null) {
        path.append(mapping.findForward("newEntity").getPath());
        path.append(entityVO.getList());
        forward = new ActionForward(path.toString(), true);
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.