Package eu.planets_project.tb.impl.services

Examples of eu.planets_project.tb.impl.services.TestbedServiceTemplateImpl$ServiceOperationImpl


  public void deleteTBServiceTemplate(String UUID){
    /*TestbedServiceTemplateImpl t_helper = manager.find(
        TestbedServiceTemplateImpl.class, UUID);*/
    Query query = manager.createQuery("from TestbedServiceTemplateImpl where discr='template' and hashUUID='"+UUID+"'");
    if((query!=null)&&(query.getResultList().size()==1)){
      TestbedServiceTemplateImpl t_helper = (TestbedServiceTemplateImpl)query.getResultList().iterator().next();
      //only delete templates that are of type "template" and not used within an experiment
      if(t_helper.getDiscriminator().equals(t_helper.DISCR_TEMPLATE)){
        manager.remove(t_helper);
      }
    }
   
  }
View Full Code Here


  /* (non-Javadoc)
   * @see eu.planets_project.tb.api.persistency.TestbedServiceTemplatePersistencyRemote#deleteTBServiceTemplate(eu.planets_project.tb.api.services.TestbedServiceTemplate)
   */
  public void deleteTBServiceTemplate(TestbedServiceTemplate template){
    TestbedServiceTemplateImpl t_helper = manager.find(TestbedServiceTemplateImpl.class, ((TestbedServiceTemplateImpl)template).getEntityID());
    //only delete templates that are of type "template" and not used within an experiment
    if(t_helper.getDiscriminator().equals(t_helper.DISCR_TEMPLATE)){
      manager.remove(t_helper);
    }
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.services.TestbedServiceTemplateImpl$ServiceOperationImpl

Copyright © 2018 www.massapicom. 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.