http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/WorkflowCatalogImpl.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/WorkflowCatalogImpl.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/WorkflowCatalogImpl.java deleted file mode 100644 index 0c3f2ad..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/WorkflowCatalogImpl.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.impl; - -import org.airavata.appcatalog.cpi.AppCatalogException; -import org.airavata.appcatalog.cpi.WorkflowCatalog; -import org.apache.aiaravata.application.catalog.data.resources.*; -import org.apache.aiaravata.application.catalog.data.util.AppCatalogThriftConversion; -import org.apache.aiaravata.application.catalog.data.util.AppCatalogUtils; -import org.apache.airavata.model.Workflow; -import org.apache.airavata.model.appcatalog.appinterface.InputDataObjectType; -import org.apache.airavata.model.appcatalog.appinterface.OutputDataObjectType; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class WorkflowCatalogImpl implements WorkflowCatalog { - private final static Logger logger = LoggerFactory.getLogger(WorkflowCatalogImpl.class); - - @Override - public List<String> getAllWorkflows(String gatewayId) throws AppCatalogException { - List<String> workflowIds = new ArrayList<String>(); - try { - WorkflowResource resource = new WorkflowResource(); - resource.setGatewayId(gatewayId); - workflowIds = resource.getAllIds(); - } catch (Exception e) { - logger.error("Error while retrieving all the workflow template ids...", e); - throw new AppCatalogException(e); - } - return workflowIds; - } - - @Override - public Workflow getWorkflow(String workflowTemplateId) throws AppCatalogException { - try { - WorkflowResource resource = new WorkflowResource(); - WorkflowResource wfResource = (WorkflowResource)resource.get(workflowTemplateId); - return AppCatalogThriftConversion.getWorkflow(wfResource); - } catch (Exception e) { - logger.error("Error while retrieving the workflow...", e); - throw new AppCatalogException(e); - } - } - - @Override - public void deleteWorkflow(String workflowTemplateId) throws AppCatalogException { - try { - WorkflowResource resource = new WorkflowResource(); - resource.remove(workflowTemplateId); - } catch (Exception e) { - logger.error("Error while deleting the workflow...", e); - throw new AppCatalogException(e); - } - } - - @Override - public String registerWorkflow(Workflow workflow, String gatewayId) throws AppCatalogException { - try { - WorkflowResource resource = new WorkflowResource(); - resource.setWfTemplateId(AppCatalogUtils.getID(workflow.getName())); - resource.setWfName(workflow.getName()); - resource.setGraph(workflow.getGraph()); - resource.setGatewayId(gatewayId); - if (workflow.getImage() != null){ - resource.setImage(new String(workflow.getImage())); - } - resource.save(); - workflow.setTemplateId(resource.getWfTemplateId()); - List<InputDataObjectType> workflowInputs = workflow.getWorkflowInputs(); - if (workflowInputs != null && workflowInputs.size() != 0){ - for (InputDataObjectType input : workflowInputs){ - WorkflowInputResource wfInputResource = new WorkflowInputResource(); - wfInputResource.setWorkflowResource(resource); - wfInputResource.setInputKey(input.getName()); - wfInputResource.setInputVal(input.getValue()); - wfInputResource.setWfTemplateId(resource.getWfTemplateId()); - wfInputResource.setDataType(input.getType().toString()); - wfInputResource.setAppArgument(input.getApplicationArgument()); - wfInputResource.setStandardInput(input.isStandardInput()); - wfInputResource.setUserFriendlyDesc(input.getUserFriendlyDescription()); - wfInputResource.setMetadata(input.getMetaData()); - wfInputResource.save(); - } - } - List<OutputDataObjectType> workflowOutputs = workflow.getWorkflowOutputs(); - if (workflowOutputs != null && workflowOutputs.size() != 0){ - for (OutputDataObjectType output : workflowOutputs){ - WorkflowOutputResource outputResource = new WorkflowOutputResource(); - outputResource.setWorkflowResource(resource); - outputResource.setOutputKey(output.getName()); - outputResource.setOutputVal(output.getValue()); - outputResource.setWfTemplateId(resource.getWfTemplateId()); - outputResource.setDataType(output.getType().toString()); - outputResource.save(); - } - } - return resource.getWfTemplateId(); - } catch (Exception e) { - logger.error("Error while saving the workflow...", e); - throw new AppCatalogException(e); - } - } - - @Override - public void updateWorkflow(String workflowTemplateId, Workflow workflow) throws AppCatalogException { - try { - WorkflowResource resource = new WorkflowResource(); - WorkflowResource existingWF = (WorkflowResource)resource.get(workflowTemplateId); - existingWF.setWfName(workflow.getName()); - existingWF.setGraph(workflow.getGraph()); - if (workflow.getImage() != null){ - existingWF.setImage(new String(workflow.getImage())); - } - existingWF.save(); - List<InputDataObjectType> existingwFInputs = workflow.getWorkflowInputs(); - if (existingwFInputs != null && existingwFInputs.size() != 0){ - for (InputDataObjectType input : existingwFInputs){ - WorkflowInputResource wfInputResource = new WorkflowInputResource(); - Map<String, String> ids = new HashMap<String, String>(); - ids.put(AbstractResource.WFInputConstants.WF_TEMPLATE_ID,existingWF.getWfTemplateId()); - ids.put(AbstractResource.WFInputConstants.INPUT_KEY,input.getName()); - WorkflowInputResource existingInput = (WorkflowInputResource)wfInputResource.get(ids); - existingInput.setWorkflowResource(existingWF); - existingInput.setInputKey(input.getName()); - existingInput.setInputVal(input.getValue()); - existingInput.setWfTemplateId(existingWF.getWfTemplateId()); - existingInput.setDataType(input.getType().toString()); - existingInput.setAppArgument(input.getApplicationArgument()); - existingInput.setStandardInput(input.isStandardInput()); - existingInput.setUserFriendlyDesc(input.getUserFriendlyDescription()); - existingInput.setMetadata(input.getMetaData()); - existingInput.save(); - } - } - List<OutputDataObjectType> workflowOutputs = workflow.getWorkflowOutputs(); - if (workflowOutputs != null && workflowOutputs.size() != 0){ - for (OutputDataObjectType output : workflowOutputs){ - WorkflowOutputResource outputResource = new WorkflowOutputResource(); - Map<String, String> ids = new HashMap<String, String>(); - ids.put(AbstractResource.WFOutputConstants.WF_TEMPLATE_ID,existingWF.getWfTemplateId()); - ids.put(AbstractResource.WFOutputConstants.OUTPUT_KEY,output.getName()); - WorkflowOutputResource existingOutput = (WorkflowOutputResource)outputResource.get(ids); - existingOutput.setWorkflowResource(existingWF); - existingOutput.setOutputKey(output.getName()); - existingOutput.setOutputVal(output.getValue()); - existingOutput.setWfTemplateId(existingWF.getWfTemplateId()); - existingOutput.setDataType(output.getType().toString()); - existingOutput.save(); - } - } - } catch (Exception e) { - logger.error("Error while updating the workflow...", e); - throw new AppCatalogException(e); - } - } - - @Override - public String getWorkflowTemplateId(String workflowName) throws AppCatalogException { - try { - WorkflowResource resource = new WorkflowResource(); - List<Resource> resourceList = resource.get(AbstractResource.WorkflowConstants.WF_NAME, workflowName); - if (resourceList != null && !resourceList.isEmpty()){ - WorkflowResource wfResource = (WorkflowResource)resourceList.get(0); - return wfResource.getWfTemplateId(); - } - } catch (Exception e) { - logger.error("Error while retrieving the workflow with the workflow name...", e); - throw new AppCatalogException(e); - } - return null; - } - - @Override - public boolean isWorkflowExistWithName(String workflowName) throws AppCatalogException { - try { - WorkflowResource resource = new WorkflowResource(); - List<Resource> resourceList = resource.get(AbstractResource.WorkflowConstants.WF_NAME, workflowName); - if (resourceList != null && !resourceList.isEmpty()){ - return true; - } - } catch (Exception e) { - logger.error("Error while retrieving the workflow with the workflow name...", e); - throw new AppCatalogException(e); - } - return false; - } - - @Override - public void updateWorkflowOutputs(String workflowTemplateId, List<OutputDataObjectType> workflowOutputs) throws AppCatalogException { - WorkflowResource resource = new WorkflowResource(); - WorkflowResource existingWF = (WorkflowResource)resource.get(workflowTemplateId); - if (workflowOutputs != null && workflowOutputs.size() != 0) { - for (OutputDataObjectType output : workflowOutputs) { - WorkflowOutputResource outputResource = new WorkflowOutputResource(); - Map<String, String> ids = new HashMap<String, String>(); - ids.put(AbstractResource.WFOutputConstants.WF_TEMPLATE_ID, existingWF.getWfTemplateId()); - ids.put(AbstractResource.WFOutputConstants.OUTPUT_KEY, output.getName()); - WorkflowOutputResource existingOutput = (WorkflowOutputResource) outputResource.get(ids); - existingOutput.setWorkflowResource(existingWF); - existingOutput.setOutputKey(output.getName()); - existingOutput.setOutputVal(output.getValue()); - existingOutput.setWfTemplateId(existingWF.getWfTemplateId()); - existingOutput.setDataType(output.getType().toString()); - existingOutput.save(); - } - } - } -}
http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment.java deleted file mode 100644 index f3ca043..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import javax.persistence.*; -import java.io.Serializable; - -@Entity -@Table(name = "APP_ENVIRONMENT") -@IdClass(AppEnvironment_PK.class) -public class AppEnvironment implements Serializable { - @Id - @Column(name = "DEPLOYMENT_ID") - private String deploymentID; - @Id - @Column(name = "NAME") - private String name; - - @Column(name = "VALUE") - private String value; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "DEPLOYMENT_ID") - private ApplicationDeployment applicationDeployment; - - public String getDeploymentID() { - return deploymentID; - } - - public void setDeploymentID(String deploymentID) { - this.deploymentID = deploymentID; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - public ApplicationDeployment getApplicationDeployment() { - return applicationDeployment; - } - - public void setApplicationDeployment(ApplicationDeployment applicationDeployment) { - this.applicationDeployment = applicationDeployment; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment_PK.java deleted file mode 100644 index 8d8e23a..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppEnvironment_PK.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class AppEnvironment_PK implements Serializable { - private String deploymentID; - private String name; - - public AppEnvironment_PK(String deploymentID, String name) { - this.deploymentID = deploymentID; - this.name = name; - } - - public AppEnvironment_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getDeploymentID() { - return deploymentID; - } - - public void setDeploymentID(String deploymentID) { - this.deploymentID = deploymentID; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppInput_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppInput_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppInput_PK.java deleted file mode 100644 index 97a79cf..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppInput_PK.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class AppInput_PK implements Serializable { - private String interfaceID; - private String inputKey; - - public AppInput_PK(String interfaceID, String inputKey) { - this.interfaceID = interfaceID; - this.inputKey = inputKey; - } - - public AppInput_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getInputKey() { - return inputKey; - } - - public void setInputKey(String inputKey) { - this.inputKey = inputKey; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping.java deleted file mode 100644 index d446e3a..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import javax.persistence.*; -import java.io.Serializable; - -@Entity -@Table(name = "APP_MODULE_MAPPING") -@IdClass(AppModuleMapping_PK.class) -public class AppModuleMapping implements Serializable { - @Id - @Column(name = "INTERFACE_ID") - private String interfaceID; - @Id - @Column(name = "MODULE_ID") - private String moduleID; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "INTERFACE_ID") - private ApplicationInterface applicationInterface; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "MODULE_ID") - private ApplicationModule applicationModule; - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getModuleID() { - return moduleID; - } - - public void setModuleID(String moduleID) { - this.moduleID = moduleID; - } - - public ApplicationInterface getApplicationInterface() { - return applicationInterface; - } - - public void setApplicationInterface(ApplicationInterface applicationInterface) { - this.applicationInterface = applicationInterface; - } - - public ApplicationModule getApplicationModule() { - return applicationModule; - } - - public void setApplicationModule(ApplicationModule applicationModule) { - this.applicationModule = applicationModule; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping_PK.java deleted file mode 100644 index 3aeba37..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppModuleMapping_PK.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class AppModuleMapping_PK implements Serializable { - private String interfaceID; - private String moduleID; - - public AppModuleMapping_PK(String interfaceID, String moduleID) { - this.interfaceID = interfaceID; - this.moduleID = moduleID; - } - - public AppModuleMapping_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getModuleID() { - return moduleID; - } - - public void setModuleID(String moduleID) { - this.moduleID = moduleID; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppOutput_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppOutput_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppOutput_PK.java deleted file mode 100644 index 9426072..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/AppOutput_PK.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class AppOutput_PK implements Serializable { - private String interfaceID; - private String outputKey; - - public AppOutput_PK(String interfaceID, String outputKey) { - this.interfaceID = interfaceID; - this.outputKey = outputKey; - } - - public AppOutput_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getOutputKey() { - return outputKey; - } - - public void setOutputKey(String outputKey) { - this.outputKey = outputKey; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationDeployment.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationDeployment.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationDeployment.java deleted file mode 100644 index e5468a0..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationDeployment.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; - -@Entity -@Table(name = "APPLICATION_DEPLOYMENT") -public class ApplicationDeployment implements Serializable { - @Id - @Column(name = "DEPLOYMENT_ID") - private String deploymentID; - @Column(name = "APP_MODULE_ID") - private String appModuleID; - @Column(name = "COMPUTE_HOST_ID") - private String hostID; - @Column(name = "EXECUTABLE_PATH") - private String executablePath; - @Column(name = "APPLICATION_DESC") - private String applicationDesc; - @Column(name = "PARALLELISM") - private String parallelism; - @Column(name = "GATEWAY_ID") - private String gatewayId; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "APP_MODULE_ID") - private ApplicationModule applicationModule; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "COMPUTE_HOSTID") - private ComputeResource computeResource; - - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - - @Column(name = "UPDATE_TIME") - private Timestamp updateTime; - - public String getGatewayId() { - return gatewayId; - } - - public void setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; - } - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public Timestamp getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Timestamp updateTime) { - this.updateTime = updateTime; - } - - public String getDeploymentID() { - return deploymentID; - } - - public void setDeploymentID(String deploymentID) { - this.deploymentID = deploymentID; - } - - public String getAppModuleID() { - return appModuleID; - } - - public void setAppModuleID(String appModuleID) { - this.appModuleID = appModuleID; - } - - public String getHostID() { - return hostID; - } - - public void setHostID(String hostID) { - this.hostID = hostID; - } - - public String getExecutablePath() { - return executablePath; - } - - public void setExecutablePath(String executablePath) { - this.executablePath = executablePath; - } - - public String getApplicationDesc() { - return applicationDesc; - } - - public void setApplicationDesc(String applicationDesc) { - this.applicationDesc = applicationDesc; - } - - public ApplicationModule getApplicationModule() { - return applicationModule; - } - - public void setApplicationModule(ApplicationModule applicationModule) { - this.applicationModule = applicationModule; - } - - public ComputeResource getComputeResource() { - return computeResource; - } - - public void setComputeResource(ComputeResource computeResource) { - this.computeResource = computeResource; - } - - public String getParallelism() { - return parallelism; - } - - public void setParallelism(String parallelism) { - this.parallelism = parallelism; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInput.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInput.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInput.java deleted file mode 100644 index 5255bc0..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInput.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - - -import javax.persistence.*; -import java.io.Serializable; - -@Entity -@Table(name = "APPLICATION_INPUT") -@IdClass(AppInput_PK.class) -public class ApplicationInput implements Serializable { - @Id - @Column(name = "INTERFACE_ID") - private String interfaceID; - @Id - @Column(name = "INPUT_KEY") - private String inputKey; - @Column(name = "INPUT_VALUE") - private String inputVal; - @Column(name = "DATA_TYPE") - private String dataType; - @Column(name = "METADATA") - private String metadata; - @Column(name = "APP_ARGUMENT") - private String appArgument; - @Column(name = "USER_FRIENDLY_DESC") - private String userFriendlyDesc; - @Column(name = "STANDARD_INPUT") - private boolean standardInput; - @Column(name="INPUT_ORDER") - private int inputOrder; - @Column(name="IS_REQUIRED") - private boolean isRequired; - @Column(name="REQUIRED_TO_COMMANDLINE") - private boolean requiredToCMD; - @Column(name = "DATA_STAGED") - private boolean dataStaged; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "INTERFACE_ID") - private ApplicationInterface applicationInterface; - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getInputKey() { - return inputKey; - } - - public void setInputKey(String inputKey) { - this.inputKey = inputKey; - } - - public String getInputVal() { - return inputVal; - } - - public void setInputVal(String inputVal) { - this.inputVal = inputVal; - } - - public String getDataType() { - return dataType; - } - - public void setDataType(String dataType) { - this.dataType = dataType; - } - - public String getMetadata() { - return metadata; - } - - public void setMetadata(String metadata) { - this.metadata = metadata; - } - - public String getAppArgument() { - return appArgument; - } - - public void setAppArgument(String appArgument) { - this.appArgument = appArgument; - } - - public String getUserFriendlyDesc() { - return userFriendlyDesc; - } - - public void setUserFriendlyDesc(String userFriendlyDesc) { - this.userFriendlyDesc = userFriendlyDesc; - } - - public ApplicationInterface getApplicationInterface() { - return applicationInterface; - } - - public void setApplicationInterface(ApplicationInterface applicationInterface) { - this.applicationInterface = applicationInterface; - } - - public boolean isStandardInput() { - return standardInput; - } - - public void setStandardInput(boolean standardInput) { - this.standardInput = standardInput; - } - - public int getInputOrder() { - return inputOrder; - } - - public void setInputOrder(int inputOrder) { - this.inputOrder = inputOrder; - } - - public boolean isRequired() { - return isRequired; - } - - public void setRequired(boolean isRequired) { - this.isRequired = isRequired; - } - - public boolean isRequiredToCMD() { - return requiredToCMD; - } - - public void setRequiredToCMD(boolean requiredToCMD) { - this.requiredToCMD = requiredToCMD; - } - - public boolean isDataStaged() { - return dataStaged; - } - - public void setDataStaged(boolean dataStaged) { - this.dataStaged = dataStaged; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInterface.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInterface.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInterface.java deleted file mode 100644 index 4f9c6a3..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationInterface.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import java.io.Serializable; -import java.sql.Timestamp; - -@Entity -@Table(name = "APPLICATION_INTERFACE") -public class ApplicationInterface implements Serializable { - @Id - @Column(name = "INTERFACE_ID") - private String interfaceID; - @Column(name = "APPLICATION_NAME") - private String appName; - @Column(name = "APPLICATION_DESCRIPTION") - private String appDescription; - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - @Column(name = "GATEWAY_ID") - private String gatewayId; - - @Column(name = "UPDATE_TIME") - private Timestamp updateTime; - - public String getGatewayId() { - return gatewayId; - } - - public void setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; - } - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public Timestamp getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Timestamp updateTime) { - this.updateTime = updateTime; - } - - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getAppName() { - return appName; - } - - public void setAppName(String appName) { - this.appName = appName; - } - - public String getAppDescription() { - return appDescription; - } - - public void setAppDescription(String appDescription) { - this.appDescription = appDescription; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationModule.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationModule.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationModule.java deleted file mode 100644 index b4bd8bc..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationModule.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import java.io.Serializable; -import java.sql.Timestamp; - -@Entity -@Table(name = "APPLICATION_MODULE") -public class ApplicationModule implements Serializable { - @Id - @Column(name = "MODULE_ID") - private String moduleID; - @Column(name = "MODULE_NAME") - private String moduleName; - @Column(name = "MODULE_VERSION") - private String moduleVersion; - @Column(name = "MODULE_DESC") - private String moduleDesc; - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - @Column(name = "GATEWAY_ID") - private String gatewayId; - - @Column(name = "UPDATE_TIME") - private Timestamp updateTime; - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public Timestamp getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Timestamp updateTime) { - this.updateTime = updateTime; - } - - - public String getModuleID() { - return moduleID; - } - - public void setModuleID(String moduleID) { - this.moduleID = moduleID; - } - - public String getModuleName() { - return moduleName; - } - - public void setModuleName(String moduleName) { - this.moduleName = moduleName; - } - - public String getModuleVersion() { - return moduleVersion; - } - - public void setModuleVersion(String moduleVersion) { - this.moduleVersion = moduleVersion; - } - - public String getModuleDesc() { - return moduleDesc; - } - - public void setModuleDesc(String moduleDesc) { - this.moduleDesc = moduleDesc; - } - - public String getGatewayId() { - return gatewayId; - } - - public void setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationOutput.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationOutput.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationOutput.java deleted file mode 100644 index b2cb867..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ApplicationOutput.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - - -import javax.persistence.*; -import java.io.Serializable; - -@Entity -@Table(name = "APPLICATION_OUTPUT") -@IdClass(AppOutput_PK.class) -public class ApplicationOutput implements Serializable { - @Id - @Column(name = "INTERFACE_ID") - private String interfaceID; - @Id - @Column(name = "OUTPUT_KEY") - private String outputKey; - @Column(name = "OUTPUT_VALUE") - private String outputVal; - @Column(name = "DATA_TYPE") - private String dataType; - @Column(name = "IS_REQUIRED") - private boolean isRequired; - @Column(name="REQUIRED_TO_COMMANDLINE") - private boolean requiredToCMD; - @Column(name = "DATA_MOVEMENT") - private boolean dataMovement; - @Column(name = "DATA_NAME_LOCATION") - private String dataNameLocation; - @Column(name = "SEARCH_QUERY") - private String searchQuery; - @Column(name = "APP_ARGUMENT") - private String applicationArgument; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "INTERFACE_ID") - private ApplicationInterface applicationInterface; - - public String getInterfaceID() { - return interfaceID; - } - - public void setInterfaceID(String interfaceID) { - this.interfaceID = interfaceID; - } - - public String getDataType() { - return dataType; - } - - public void setDataType(String dataType) { - this.dataType = dataType; - } - - public ApplicationInterface getApplicationInterface() { - return applicationInterface; - } - - public void setApplicationInterface(ApplicationInterface applicationInterface) { - this.applicationInterface = applicationInterface; - } - - public String getOutputKey() { - return outputKey; - } - - public void setOutputKey(String outputKey) { - this.outputKey = outputKey; - } - - public String getOutputVal() { - return outputVal; - } - - public void setOutputVal(String outputVal) { - this.outputVal = outputVal; - } - - public boolean isRequired() { - return isRequired; - } - - public void setRequired(boolean isRequired) { - this.isRequired = isRequired; - } - - public boolean isRequiredToCMD() { - return requiredToCMD; - } - - public void setRequiredToCMD(boolean requiredToCMD) { - this.requiredToCMD = requiredToCMD; - } - - public boolean isDataMovement() { - return dataMovement; - } - - public void setDataMovement(boolean dataMovement) { - this.dataMovement = dataMovement; - } - - public String getDataNameLocation() { - return dataNameLocation; - } - - public void setDataNameLocation(String dataNameLocation) { - this.dataNameLocation = dataNameLocation; - } - - public String getSearchQuery() { - return searchQuery; - } - - public void setSearchQuery(String searchQuery) { - this.searchQuery = searchQuery; - } - - public String getApplicationArgument() { - return applicationArgument; - } - - public void setApplicationArgument(String applicationArgument) { - this.applicationArgument = applicationArgument; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue.java deleted file mode 100644 index ac94b10..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; - -import org.apache.openjpa.persistence.DataCache; - -@DataCache -@Entity -@Table(name = "BATCH_QUEUE") -@IdClass(BatchQueue_PK.class) -public class BatchQueue implements Serializable { - - @Id - @Column(name = "COMPUTE_RESOURCE_ID") - private String computeResourceId; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "COMPUTE_RESOURCE_ID") - private ComputeResource computeResource; - - @Column(name = "MAX_RUNTIME") - private int maxRuntime; - - @Column(name = "MAX_JOB_IN_QUEUE") - private int maxJobInQueue; - - @Column(name = "QUEUE_DESCRIPTION") - private String queueDescription; - - @Id - @Column(name = "QUEUE_NAME") - private String queueName; - - @Column(name = "MAX_PROCESSORS") - private int maxProcessors; - - @Column(name = "MAX_NODES") - private int maxNodes; - - @Column(name = "MAX_MEMORY") - private int maxMemory; - - public int getMaxMemory() { - return maxMemory; - } - - public void setMaxMemory(int maxMemory) { - this.maxMemory = maxMemory; - } - - public String getComputeResourceId() { - return computeResourceId; - } - - public ComputeResource getComputeResource() { - return computeResource; - } - - public int getMaxRuntime() { - return maxRuntime; - } - - public int getMaxJobInQueue() { - return maxJobInQueue; - } - - public String getQueueDescription() { - return queueDescription; - } - - public String getQueueName() { - return queueName; - } - - public int getMaxProcessors() { - return maxProcessors; - } - - public int getMaxNodes() { - return maxNodes; - } - - public void setComputeResourceId(String computeResourceId) { - this.computeResourceId=computeResourceId; - } - - public void setComputeResource(ComputeResource computeResource) { - this.computeResource=computeResource; - } - - public void setMaxRuntime(int maxRuntime) { - this.maxRuntime=maxRuntime; - } - - public void setMaxJobInQueue(int maxJobInQueue) { - this.maxJobInQueue=maxJobInQueue; - } - - public void setQueueDescription(String queueDescription) { - this.queueDescription=queueDescription; - } - - public void setQueueName(String queueName) { - this.queueName=queueName; - } - - public void setMaxProcessors(int maxProcessors) { - this.maxProcessors=maxProcessors; - } - - public void setMaxNodes(int maxNodes) { - this.maxNodes=maxNodes; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue_PK.java deleted file mode 100644 index 1cd64d6..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/BatchQueue_PK.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class BatchQueue_PK implements Serializable { - private String computeResourceId; - private String queueName; - public BatchQueue_PK(String computeResourceId, String queueName){ - this.computeResourceId = computeResourceId; - this.queueName = queueName; - } - - public BatchQueue_PK() { - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getComputeResourceId() { - return computeResourceId; - } - - public String getQueueName() { - return queueName; - } - - public void setComputeResourceId(String computeResourceId) { - this.computeResourceId=computeResourceId; - } - - public void setQueueName(String queueName) { - this.queueName=queueName; - } -} - http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/CloudJobSubmission.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/CloudJobSubmission.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/CloudJobSubmission.java deleted file mode 100644 index 2a9e8bb..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/CloudJobSubmission.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * -*/ -package org.apache.aiaravata.application.catalog.data.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name = "CLOUD_JOB_SUBMISSION") -public class CloudJobSubmission implements Serializable { - @Id - @Column(name = "JOB_SUBMISSION_INTERFACE_ID") - private String jobSubmissionInterfaceId; - - @Column(name = "SECURITY_PROTOCOL") - private String securityProtocol; - - @Column(name = "NODE_ID") - private String nodeId; - - @Column(name = "EXECUTABLE_TYPE") - private String executableType; - - @Column(name = "PROVIDER_NAME") - private String providerName; - - @Column(name = "USER_ACCOUNT_NAME") - private String userAccountName; - - - public String getExecutableType() { - return executableType; - } - - public void setExecutableType(String executableType) { - this.executableType = executableType; - } - - public String getProviderName() { - return providerName; - } - - public void setProviderName(String providerName) { - this.providerName = providerName; - } - - public String getUserAccountName() { - return userAccountName; - } - - public void setUserAccountName(String userAccountName) { - this.userAccountName = userAccountName; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getJobSubmissionInterfaceId() { - return jobSubmissionInterfaceId; - } - - - public String getSecurityProtocol() { - return securityProtocol; - } - - - public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) { - this.jobSubmissionInterfaceId=jobSubmissionInterfaceId; - } - - - public void setSecurityProtocol(String securityProtocol) { - this.securityProtocol=securityProtocol; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResource.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResource.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResource.java deleted file mode 100644 index 51141ec..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResource.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; -import java.sql.Timestamp; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - -import org.apache.openjpa.persistence.DataCache; - -@DataCache -@Entity -@Table(name = "COMPUTE_RESOURCE") -public class ComputeResource implements Serializable { - - @Column(name = "RESOURCE_DESCRIPTION") - private String resourceDescription; - - @Id - @Column(name = "RESOURCE_ID") - private String resourceId; - - @Column(name = "HOST_NAME") - private String hostName; - - @Column(name = "MAX_MEMORY_NODE") - private int maxMemoryPerNode; - - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - - @Column(name = "UPDATE_TIME") - private Timestamp updateTime; - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public Timestamp getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Timestamp updateTime) { - this.updateTime = updateTime; - } - - public String getResourceDescription() { - return resourceDescription; - } - - public String getResourceId() { - return resourceId; - } - - public String getHostName() { - return hostName; - } - - public void setResourceDescription(String resourceDescription) { - this.resourceDescription=resourceDescription; - } - - public void setResourceId(String resourceId) { - this.resourceId=resourceId; - } - - public void setHostName(String hostName) { - this.hostName=hostName; - } - - public int getMaxMemoryPerNode() { - return maxMemoryPerNode; - } - - public void setMaxMemoryPerNode(int maxMemoryPerNode) { - this.maxMemoryPerNode = maxMemoryPerNode; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem.java deleted file mode 100644 index 184056a..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; - -import org.apache.openjpa.persistence.DataCache; - -@DataCache -@Entity -@Table(name = "COMPUTE_RESOURCE_FILE_SYSTEM") -@IdClass(ComputeResourceFileSystem_PK.class) -public class ComputeResourceFileSystem implements Serializable { - - @Id - @Column(name = "COMPUTE_RESOURCE_ID") - private String computeResourceId; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "COMPUTE_RESOURCE_ID") - private ComputeResource computeResource; - - @Column(name = "PATH") - private String path; - - @Id - @Column(name = "FILE_SYSTEM") - private String fileSystem; - - public String getComputeResourceId() { - return computeResourceId; - } - - public ComputeResource getComputeResource() { - return computeResource; - } - - public String getPath() { - return path; - } - - public String getFileSystem() { - return fileSystem; - } - - public void setComputeResourceId(String computeResourceId) { - this.computeResourceId=computeResourceId; - } - - public void setComputeResource(ComputeResource computeResource) { - this.computeResource=computeResource; - } - - public void setPath(String path) { - this.path=path; - } - - public void setFileSystem(String fileSystem) { - this.fileSystem=fileSystem; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem_PK.java deleted file mode 100644 index 4df2d99..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourceFileSystem_PK.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class ComputeResourceFileSystem_PK implements Serializable { - private String computeResourceId; - private String fileSystem; - public ComputeResourceFileSystem_PK(String computeResourceId, String fileSystem){ - this.computeResourceId = computeResourceId; - this.fileSystem = fileSystem; - } - - public ComputeResourceFileSystem_PK() { - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getComputeResourceId() { - return computeResourceId; - } - - public String getFileSystem() { - return fileSystem; - } - - public void setComputeResourceId(String computeResourceId) { - this.computeResourceId=computeResourceId; - } - - public void setFileSystem(String fileSystem) { - this.fileSystem=fileSystem; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreference.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreference.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreference.java deleted file mode 100644 index 7643519..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreference.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - - -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; - -@Entity -@Table(name = "COMPUTE_RESOURCE_PREFERENCE") -@IdClass(ComputeResourcePreferencePK.class) -public class ComputeResourcePreference { - @Id - @Column(name = "GATEWAY_ID") - private String gatewayId; - @Id - @Column(name = "RESOURCE_ID") - private String resourceId; - @Column(name = "OVERRIDE_BY_AIRAVATA") - private boolean overrideByAiravata; - @Column(name = "PREFERED_JOB_SUB_PROTOCOL") - private String preferedJobSubmissionProtocol; - @Column(name = "PREFERED_DATA_MOVE_PROTOCOL") - private String preferedDataMoveProtocol; - @Column(name = "PREFERED_BATCH_QUEUE") - private String batchQueue; - @Column(name = "SCRATCH_LOCATION") - private String scratchLocation; - @Column(name = "ALLOCATION_PROJECT_NUMBER") - private String projectNumber; - @Column(name = "LOGIN_USERNAME") - private String loginUserName; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "RESOURCE_ID") - private ComputeResource computeHostResource; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "GATEWAY_ID") - private GatewayProfile gatewayProfile; - - public String getGatewayId() { - return gatewayId; - } - - public void setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public boolean isOverrideByAiravata() { - return overrideByAiravata; - } - - public void setOverrideByAiravata(boolean overrideByAiravata) { - this.overrideByAiravata = overrideByAiravata; - } - - public String getPreferedJobSubmissionProtocol() { - return preferedJobSubmissionProtocol; - } - - public void setPreferedJobSubmissionProtocol(String preferedJobSubmissionProtocol) { - this.preferedJobSubmissionProtocol = preferedJobSubmissionProtocol; - } - - public String getPreferedDataMoveProtocol() { - return preferedDataMoveProtocol; - } - - public void setPreferedDataMoveProtocol(String preferedDataMoveProtocol) { - this.preferedDataMoveProtocol = preferedDataMoveProtocol; - } - - public String getBatchQueue() { - return batchQueue; - } - - public void setBatchQueue(String batchQueue) { - this.batchQueue = batchQueue; - } - - public String getScratchLocation() { - return scratchLocation; - } - - public void setScratchLocation(String scratchLocation) { - this.scratchLocation = scratchLocation; - } - - public String getProjectNumber() { - return projectNumber; - } - - public void setProjectNumber(String projectNumber) { - this.projectNumber = projectNumber; - } - - public ComputeResource getComputeHostResource() { - return computeHostResource; - } - - public void setComputeHostResource(ComputeResource computeHostResource) { - this.computeHostResource = computeHostResource; - } - - public GatewayProfile getGatewayProfile() { - return gatewayProfile; - } - - public void setGatewayProfile(GatewayProfile gatewayProfile) { - this.gatewayProfile = gatewayProfile; - } - - public String getLoginUserName() { - return loginUserName; - } - - public void setLoginUserName(String loginUserName) { - this.loginUserName = loginUserName; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreferencePK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreferencePK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreferencePK.java deleted file mode 100644 index 5e2c0b7..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/ComputeResourcePreferencePK.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class ComputeResourcePreferencePK implements Serializable { - private String gatewayId; - private String resourceId; - - public ComputeResourcePreferencePK(String gatewayId, String resourceId) { - this.gatewayId = gatewayId; - this.resourceId = resourceId; - } - - public ComputeResourcePreferencePK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getGatewayId() { - return gatewayId; - } - - public void setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration.java deleted file mode 100644 index 5bee8bf..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration.java +++ /dev/null @@ -1,57 +0,0 @@ -/* -* -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -* -*/ -package org.apache.aiaravata.application.catalog.data.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; - -@DataCache -@Entity -@Table(name ="CONFIGURATION") -@IdClass(Configuration_PK.class) -public class Configuration implements Serializable { - @Id - @Column(name = "CONFIG_KEY") - private String config_key; - - @Id - @Column(name = "CONFIG_VAL") - private String config_val; - - public String getConfig_key() { - return config_key; - } - - public String getConfig_val() { - return config_val; - } - - public void setConfig_key(String config_key) { - this.config_key = config_key; - } - - public void setConfig_val(String config_val) { - this.config_val = config_val; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration_PK.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration_PK.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration_PK.java deleted file mode 100644 index f9cfbab..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/Configuration_PK.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; - -public class Configuration_PK implements Serializable { - private String config_key; - private String config_val; - - public Configuration_PK(String config_key, String config_val) { - this.config_key = config_key; - this.config_val = config_val; - } - - public Configuration_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getConfig_key() { - return config_key; - } - - public void setConfig_key(String config_key) { - this.config_key = config_key; - } - - public void setConfig_val(String config_val) { - this.config_val = config_val; - } - - public String getConfig_val() { - return config_val; - } - -} http://git-wip-us.apache.org/repos/asf/airavata/blob/ec8c6202/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/DataMovementInterface.java ---------------------------------------------------------------------- diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/DataMovementInterface.java b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/DataMovementInterface.java deleted file mode 100644 index 9ba1a6d..0000000 --- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/model/DataMovementInterface.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.aiaravata.application.catalog.data.model; - -import java.io.Serializable; -import java.sql.Timestamp; - -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; - -import org.apache.openjpa.persistence.DataCache; - -@DataCache -@Entity -@Table(name = "DATA_MOVEMENT_INTERFACE") -@IdClass(DataMovementInterface_PK.class) -public class DataMovementInterface implements Serializable { - - @Id - @Column(name = "COMPUTE_RESOURCE_ID") - private String computeResourceId; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "COMPUTE_RESOURCE_ID") - private ComputeResource computeResource; - - @Column(name = "DATA_MOVEMENT_PROTOCOL") - private String dataMovementProtocol; - - @Id - @Column(name = "DATA_MOVEMENT_INTERFACE_ID") - private String dataMovementInterfaceId; - - @Column(name = "PRIORITY_ORDER") - private int priorityOrder; - - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - - @Column(name = "UPDATE_TIME") - private Timestamp updateTime; - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public Timestamp getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Timestamp updateTime) { - this.updateTime = updateTime; - } - - - public String getComputeResourceId() { - return computeResourceId; - } - - public ComputeResource getComputeResource() { - return computeResource; - } - - public String getDataMovementProtocol() { - return dataMovementProtocol; - } - - public String getDataMovementInterfaceId() { - return dataMovementInterfaceId; - } - - public int getPriorityOrder() { - return priorityOrder; - } - - public void setComputeResourceId(String computeResourceId) { - this.computeResourceId=computeResourceId; - } - - public void setComputeResource(ComputeResource computeResource) { - this.computeResource=computeResource; - } - - public void setDataMovementProtocol(String dataMovementProtocol) { - this.dataMovementProtocol=dataMovementProtocol; - } - - public void setDataMovementInterfaceId(String dataMovementInterfaceId) { - this.dataMovementInterfaceId=dataMovementInterfaceId; - } - - public void setPriorityOrder(int priorityOrder) { - this.priorityOrder=priorityOrder; - } -}
