Examples of deleteEntity()


Examples of com.adaptrex.core.persistence.AdaptrexPersistence.deleteEntity()

    AdaptrexSession session = new AdaptrexSession(persistence);
    Class<?> clazz = persistence.getEntityClass(entityName);
    DataConfig config = new DataConfig(clazz, persistence);

    Model model = new Model(session, config, id);
    persistence.deleteEntity(session, model.getEntity());
    session.close();
    return model;
  }

View Full Code Here

Examples of com.adaptrex.core.persistence.AdaptrexPersistence.deleteEntity()

    AdaptrexPersistence persistence = Adaptrex.getAdaptrex().getPersistenceManager().getPersistence(factoryName);
    AdaptrexSession session = new AdaptrexSession(persistence);
    Class<?> clazz = persistence.getEntityClass(entityName);
    DataConfig config = new DataConfig(clazz, persistence);
    Model model = new Model(session, config, id);
    persistence.deleteEntity(session, model.getEntity());
    session.close();
    return model;
  }

View Full Code Here

Examples of com.adaptrex.core.persistence.AdaptrexPersistence.deleteEntity()

    AdaptrexPersistence persistence = Adaptrex.getAdaptrex().getPersistenceManager().getPersistence(factoryName);
    AdaptrexSession session = new AdaptrexSession(persistence);
    Class<?> clazz = persistence.getEntityClass(entityName);
    DataConfig config = new DataConfig(clazz, persistence);
    Model model = new Model(session, config, id);
    persistence.deleteEntity(session, model.getEntity());
    session.close();
    return model;
  }

View Full Code Here

Examples of com.adaptrex.core.persistence.AdaptrexPersistence.deleteEntity()

    AdaptrexPersistence persistence = Adaptrex.getAdaptrex().getPersistenceManager().getPersistence(factoryName);
    AdaptrexSession session = new AdaptrexSession(persistence);
    Class<?> clazz = persistence.getEntityClass(entityName);
    DataConfig config = new DataConfig(clazz, persistence);
    Model model = new Model(session, config, id);
    persistence.deleteEntity(session, model.getEntity());
    session.close();
    return model;
  }

View Full Code Here

Examples of com.adaptrex.core.persistence.AdaptrexSession.deleteEntity()

    /*
     * Delete an existing model
     */
    public static Model delete(String entityName, Integer id) {
  AdaptrexSession session = new AdaptrexSession();
  Model m = new Model(session.deleteEntity(entityName, id), null);
  session.close();
  return m;
    }

    /*
 
View Full Code Here

Examples of com.artemis.World.deleteEntity()

   
    Entity entity = world.createEntity();
   
    assertNotNull(entity.getUuid());
    UUID uuid1 = entity.getUuid();
    world.deleteEntity(entity);
   
    world.process();
    world.process();
   
    entity = world.createEntity();
View Full Code Here

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

        if(rowId[i] != null && !rowId[i].equals(""))
        {
          int elementID = Integer.parseInt(rowId[i]);
          try
          {
            remote.deleteEntity(elementID, individualId);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          } catch(RemoteException re) {
            logger.error("[execute] Exception thrown.", re);
View Full Code Here

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

      if (individualStringID == null || individualStringID.equals("") || individualStringID.equals("0"))
      {
        //delete the entity
        //Argument individualID is added - pravink
        contactFacade.deleteEntity(Integer.parseInt(entityStringID),indvID);
      } //end of if statement (individualStringID == null ...
      else
      {
        //delete the individual
View Full Code Here

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

          try{
          if (individualStringID == null || individualStringID.equals("") || individualStringID.equals("0"))
          {
            //delete the entity
            //Argument individualID is added - pravink
            contactFacade.deleteEntity(Integer.parseInt(entityStringID),individualID);
          } //end of if statement (individualStringID == null ...
          else
          {
            //delete the individual
            //Argument individualID is added - pravink
View Full Code Here

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

    try {
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);
      if (rowId != null) {
        for (int i = 0; i < rowId.length; i++) {
          remote.deleteEntity(Integer.parseInt(rowId[i]), individualID);
        }// for (int i=0;i<rowId.length;i++)
      }
    } catch (Exception e) {
      logger.error("[Exception] DeleteEntityHandler.Execute Handler ", e);
    }
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.