Examples of createEntity()


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

           int size = (EVOs == null)? 0 : EVOs.size();
           for ( int i=0;i<size;i++)
           {
             evo = (EntityVO) EVOs.get(i);
             newId = entL.createEntity(evo,indId);
             logger.info("Added " + newId + " entity record");
           }
         }catch(Exception e)
         {
           logger.debug("Error in adding Entities : "+e);
View Full Code Here

Examples of com.l2client.controller.entity.EntityManager.createEntity()

 
  //FIXME this is a copy from NPCHandler move this out to the entity Manager !!
  public Entity createPCComponents(EntityData e, VisibleModel visible) {
   
    EntityManager em = Singleton.get().getEntityManager();
    final Entity ent = em.createEntity(e.getObjectId());
    PositioningComponent pos = new PositioningComponent();
    L2JComponent l2j = new L2JComponent();
    VisualComponent vis = new VisualComponent();
    EnvironmentComponent env = new EnvironmentComponent();
    TargetComponent tgt = new TargetComponent();
View Full Code Here

Examples of com.l2client.controller.entity.EntityManager.createEntity()

    L2JComponent l2j = new L2JComponent();
    VisualComponent vis = new VisualComponent();
    EnvironmentComponent env = new EnvironmentComponent();
    //FIXME parallel create problems, synchronize creation and essential components or at least create/check of components
System.out.println("createNpc pre createEntity "+e.getObjectId());
    Entity ent = em.createEntity(e.getObjectId());
System.out.println("createNpc post createEntity "+e.getObjectId());
    em.addComponent(ent.getId(), pos);
System.out.println("createNpc post Add pos "+e.getObjectId());
    em.addComponent(ent.getId(), vis);
    System.out.println("createNpc post Add vis "+e.getObjectId());
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.adapter.BukkitImplAdapter.createEntity()

    @Nullable
    @Override
    public com.sk89q.worldedit.entity.Entity createEntity(com.sk89q.worldedit.util.Location location, BaseEntity entity) {
        BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter();
        if (adapter != null) {
            Entity createdEntity = adapter.createEntity(BukkitAdapter.adapt(getWorld(), location), entity);
            if (createdEntity != null) {
                return new BukkitEntity(createdEntity);
            } else {
                return null;
            }
View Full Code Here

Examples of com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard.createEntity()

                    String id = compound.getString("id");
                    Location location = NBTConversions.toLocation(clipboard, compound.getListTag("Pos"), compound.getListTag("Rotation"));

                    if (!id.isEmpty()) {
                        BaseEntity state = new BaseEntity(id, compound);
                        clipboard.createEntity(location, state);
                    }
                }
            }
        } catch (IOException ignored) { // No entities? No problem
        }
View Full Code Here

Examples of com.tll.model.IEntityFactory.createEntity()

   * @param a The associated {@link Account}
   * @param persist
   */
  private AccountInterface stubAccountInterface(Interface intf, Account a, boolean persist) {
    final IEntityFactory efactory = getEntityFactory();
    final AccountInterface ai = efactory.createEntity(AccountInterface.class, true);
    ai.setAccountKey(a.getId());
    ai.setInterfaceKey(intf.getId());
    for(final InterfaceOption io : intf.getOptions()) {
      final AccountInterfaceOption aio = efactory.createEntity(AccountInterfaceOption.class, true);
      aio.setId(io.getId());
View Full Code Here

Examples of com.tll.model.IEntityFactory.createEntity()

    final IEntityFactory efactory = getEntityFactory();
    final AccountInterface ai = efactory.createEntity(AccountInterface.class, true);
    ai.setAccountKey(a.getId());
    ai.setInterfaceKey(intf.getId());
    for(final InterfaceOption io : intf.getOptions()) {
      final AccountInterfaceOption aio = efactory.createEntity(AccountInterfaceOption.class, true);
      aio.setId(io.getId());
      aio.setName(io.getName());
      aio.setCode(io.getCode());
      aio.setDescription(io.getDescription());
      aio.setAnnualPrice(1f);
View Full Code Here

Examples of com.tll.model.IEntityFactory.createEntity()

      aio.setAnnualPrice(1f);
      aio.setMonthlyPrice(1f);
      aio.setSetUpPrice(1f);
      for(final InterfaceOptionParameterDefinition iopd : io.getParameters()) {
        final AccountInterfaceOptionParameter aiop =
          efactory.createEntity(AccountInterfaceOptionParameter.class, true);
        aiop.setId(iopd.getId());
        aiop.setName(iopd.getName());
        aiop.setCode(iopd.getCode());
        aiop.setDescription(iopd.getDescription());
        aiop.setValue(Integer.toString(RandomUtils.nextInt(100)));
View Full Code Here

Examples of com.tll.model.IEntityFactory.createEntity()

   * @param a The associated {@link Account}
   * @param persist
   */
  private AccountInterface stubAccountInterface(Interface intf, Account a, boolean persist) {
    final IEntityFactory efactory = injector.getInstance(IEntityFactory.class);
    final AccountInterface ai = efactory.createEntity(AccountInterface.class, false);
    ai.setAccountId(a.getId());
    ai.setInterfaceId(intf.getId());
    for(final InterfaceOption io : intf.getOptions()) {
      final AccountInterfaceOption aio = efactory.createEntity(AccountInterfaceOption.class, false);
      aio.setId(io.getId());
View Full Code Here

Examples of com.tll.model.IEntityFactory.createEntity()

    final IEntityFactory efactory = injector.getInstance(IEntityFactory.class);
    final AccountInterface ai = efactory.createEntity(AccountInterface.class, false);
    ai.setAccountId(a.getId());
    ai.setInterfaceId(intf.getId());
    for(final InterfaceOption io : intf.getOptions()) {
      final AccountInterfaceOption aio = efactory.createEntity(AccountInterfaceOption.class, false);
      aio.setId(io.getId());
      aio.setName(io.getName());
      aio.setCode(io.getCode());
      aio.setDescription(io.getDescription());
      aio.setAnnualPrice(1f);
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.