Examples of save()


Examples of org.albertsanso.web20.wines.dao.jpa.JPAWineDao.save()

    Wine wine = null;
   
    wine = new Wine();
    wine.setCellarName("cellar 1");
    wine.setName("El meu vi");
    wineDao.save(wine);
   
    wine = new Wine();
    wine.setCellarName("cellar 2");
    wine.setName("El meu vi 2");
    wineDao.save(wine);
View Full Code Here

Examples of org.analyse.core.util.save.AnalyseSave.save()

                System.err.println(exp);
            }
        } else if (action.equals(Constantes.NEW)) {
            AnalyseSave s = Main.analyseFrame.getAnalyseSave();
            s.setNewOption(true) ;
            s.save();
            s.clear();
           
        } else if (action.equals(Constantes.OPEN)) {
            AnalyseSave s = Main.analyseFrame.getAnalyseSave();
View Full Code Here

Examples of org.antlr.v4.runtime.ParserRuleContext.save()

        }
        if ( gui ) {
          tree.inspect(parser);
        }
        if ( psFile!=null ) {
          tree.save(parser, psFile); // Generate postscript
        }
      }
      catch (NoSuchMethodException nsme) {
        System.err.println("No method for rule "+startRuleName+" or it has arguments");
      }
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.BatchQueueResource.save()

    if (batchQueueList != null && !batchQueueList.isEmpty()) {
        for (BatchQueue batchQueue : batchQueueList) {
          BatchQueueResource bq = AppCatalogThriftConversion.getBatchQueue(batchQueue);
          bq.setComputeResourceId(computeHostResource.getResourceId());
          bq.setComputeHostResource(computeHostResource);
            bq.save();
        }
    }
  }

  protected void saveIpAddresses(ComputeResourceDescription description,
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.ComputeHostPreferenceResource.save()

                    resource.setPreferredJobProtocol(preference.getPreferredJobSubmissionProtocol());
                    resource.setPreferedDMProtocol(preference.getPreferredDataMovementProtocol());
                    resource.setBatchQueue(preference.getPreferredBatchQueue());
                    resource.setProjectNumber(preference.getAllocationProjectNumber());
                    resource.setScratchLocation(preference.getScratchLocation());
                    resource.save();
                }
            }
            return profileResource.getGatewayID();
        }catch (Exception e) {
            logger.error("Error while saving gateway profile...", e);
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.ComputeResourceFileSystemResource.save()

          ComputeResourceFileSystemResource computeResourceFileSystemResource = new ComputeResourceFileSystemResource();
          computeResourceFileSystemResource.setComputeHostResource(computeHostResource);
          computeResourceFileSystemResource.setComputeResourceId(computeHostResource.getResourceId());
          computeResourceFileSystemResource.setFileSystem(key.toString());
          computeResourceFileSystemResource.setPath(fileSystems.get(key));
          computeResourceFileSystemResource.save();
        }
    }
  }

  protected void saveBatchQueues(ComputeResourceDescription description,
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.ComputeResourceResource.save()

  }

  protected ComputeResourceResource saveComputeResource(
      ComputeResourceDescription description) throws AppCatalogException {
    ComputeResourceResource computeHostResource = AppCatalogThriftConversion.getComputeHostResource(description);
    computeHostResource.save();
    return computeHostResource;
  }

  protected void saveDataMovementInterfaces(
      ComputeResourceDescription description,
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.DataMovementInterfaceResource.save()

          DataMovementInterfaceResource dmi = AppCatalogThriftConversion.getDataMovementInterface(dataMovementInterface);
          dmi.setComputeResourceId(computeResourceId);
          ComputeResourceResource computeResourceResource = new ComputeResourceResource();
          computeResourceResource=(ComputeResourceResource)computeResourceResource.get(computeResourceId);
          dmi.setComputeHostResource(computeResourceResource);
          dmi.save();
        }catch (Exception e){
            logger.error("Error while saving "+dataMovementInterface.getDataMovementProtocol().toString()+" data movement Protocol...", e);
            throw new AppCatalogException(e);
        }
    }
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.GatewayProfileResource.save()

        try {
            GatewayProfileResource profileResource = new GatewayProfileResource();
            profileResource.setGatewayName(gatewayProfile.getGatewayName());
            profileResource.setGatewayID(AppCatalogUtils.getID(gatewayProfile.getGatewayName()));
            profileResource.setGatewayDesc(gatewayProfile.getGatewayDescription());
            profileResource.save();
            gatewayProfile.setGatewayID(profileResource.getGatewayID());
            List<ComputeResourcePreference> computeResourcePreferences = gatewayProfile.getComputeResourcePreferences();
            if (computeResourcePreferences != null && !computeResourcePreferences.isEmpty()){
                for (ComputeResourcePreference preference : computeResourcePreferences ){
                    ComputeHostPreferenceResource resource = new ComputeHostPreferenceResource();
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.GridftpDataMovementResource.save()

    @Override
    public boolean updateGridFTPDataMovementDetails(String jobSubmissionInterfaceId, GridFTPDataMovement gridFTPDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            GridftpDataMovementResource movment = AppCatalogThriftConversion.getGridFTPDataMovementDescription(gridFTPDataMovement);
            movment.setDataMovementInterfaceId(jobSubmissionInterfaceId);
            movment.save();
            return true;
        } catch (AppCatalogException e) {
            logger.error("Error while adding job submission interface to resource compute resource...", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
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.