http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input.java deleted file mode 100644 index c074889..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input.java +++ /dev/null @@ -1,170 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name ="EXPERIMENT_INPUT") -@IdClass(Experiment_Input_PK.class) -public class Experiment_Input implements Serializable { - @Id - @Column(name = "EXPERIMENT_ID") - private String experiment_id; - - @Id - @Column(name = "INPUT_KEY") - private String ex_key; - - @Lob - @Column(name = "VALUE") - private char[] value; - - @Column(name = "DATA_TYPE") - private String dataType; - - @Column(name = "APP_ARGUMENT") - private String appArgument; - - @Column(name = "STANDARD_INPUT") - private boolean standardInput; - - @Column(name = "USER_FRIENDLY_DESC") - private String userFriendlyDesc; - - @Column(name = "METADATA") - private String metadata; - - @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 - @JoinColumn(name = "EXPERIMENT_ID") - private Experiment experiment; - - public int getInputOrder() { - return inputOrder; - } - - public void setInputOrder(int inputOrder) { - this.inputOrder = inputOrder; - } - - public String getExperiment_id() { - return experiment_id; - } - - public void setExperiment_id(String experiment_id) { - this.experiment_id = experiment_id; - } - - public String getEx_key() { - return ex_key; - } - - public void setEx_key(String ex_key) { - this.ex_key = ex_key; - } - - public char[] getValue() { - return value; - } - - public void setValue(char[] value) { - this.value = value; - } - - 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 boolean isStandardInput() { - return standardInput; - } - - public void setStandardInput(boolean standardInput) { - this.standardInput = standardInput; - } - - public String getUserFriendlyDesc() { - return userFriendlyDesc; - } - - public void setUserFriendlyDesc(String userFriendlyDesc) { - this.userFriendlyDesc = userFriendlyDesc; - } - - 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/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input_PK.java deleted file mode 100644 index 4a9886f..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Input_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class Experiment_Input_PK implements Serializable { - private String experiment_id; - private String ex_key; - - public Experiment_Input_PK(String experiment_id, String ex_key) { - this.experiment_id = experiment_id; - this.ex_key = ex_key; - } - - public Experiment_Input_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getExperiment_id() { - return experiment_id; - } - - public void setExperiment_id(String experiment_id) { - this.experiment_id = experiment_id; - } - - public String getEx_key() { - return ex_key; - } - - public void setEx_key(String ex_key) { - this.ex_key = ex_key; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output.java deleted file mode 100644 index d9d728f..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output.java +++ /dev/null @@ -1,143 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name ="EXPERIMENT_OUTPUT") -@IdClass(Experiment_Output_PK.class) -public class Experiment_Output implements Serializable { - @Id - @Column(name = "EXPERIMENT_ID") - private String experiment_id; - - @Id - @Column(name = "OUTPUT_KEY") - private String ex_key; - @Lob - @Column(name = "VALUE") - private char[] value; - @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 - @JoinColumn(name = "EXPERIMENT_ID") - private Experiment experiment; - - public String getExperiment_id() { - return experiment_id; - } - - public void setExperiment_id(String experiment_id) { - this.experiment_id = experiment_id; - } - - public String getEx_key() { - return ex_key; - } - - public void setEx_key(String ex_key) { - this.ex_key = ex_key; - } - - public char[] getValue() { - return value; - } - - public void setValue(char[] value) { - this.value = value; - } - - public String getDataType() { - return dataType; - } - - public void setDataType(String dataType) { - this.dataType = dataType; - } - - 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/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output_PK.java deleted file mode 100644 index 822021a..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Experiment_Output_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class Experiment_Output_PK implements Serializable { - private String experiment_id; - private String ex_key; - - public Experiment_Output_PK(String experiment_id, String ex_key) { - this.experiment_id = experiment_id; - this.ex_key = ex_key; - } - - public Experiment_Output_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getExperiment_id() { - return experiment_id; - } - - public void setExperiment_id(String experiment_id) { - this.experiment_id = experiment_id; - } - - public String getEx_key() { - return ex_key; - } - - public void setEx_key(String ex_key) { - this.ex_key = ex_key; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway.java deleted file mode 100644 index f3e693c..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway.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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name ="GATEWAY") -public class Gateway implements Serializable { - @Id - @Column(name = "GATEWAY_ID") - private String gateway_id; - @Column(name = "GATEWAY_NAME") - private String gateway_name; - @Column(name = "DOMAIN") - private String domain; - @Column(name = "EMAIL_ADDRESS") - private String emailAddress; - - public String getGateway_name() { - return gateway_name; - } - - public void setGateway_name(String gateway_name) { - this.gateway_name = gateway_name; - } - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } - - public String getGateway_id() { - return gateway_id; - } - - public void setGateway_id(String gateway_id) { - this.gateway_id = gateway_id; - } - - public String getEmailAddress() { - return emailAddress; - } - - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker.java deleted file mode 100644 index d4ef9b9..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker.java +++ /dev/null @@ -1,82 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name ="GATEWAY_WORKER") -@IdClass(Gateway_Worker_PK.class) -public class Gateway_Worker implements Serializable { - @Id - @Column(name = "GATEWAY_ID") - private String gateway_id; - - @Id - @Column(name = "USER_NAME") - private String user_name; - - @ManyToOne(cascade=CascadeType.MERGE) - @JoinColumn(name = "GATEWAY_ID") - private Gateway gateway; - - - @ManyToOne(cascade=CascadeType.MERGE) - @JoinColumn(name = "USER_NAME") - private Users user; - - public String getUser_name() { - return user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void setGateway(Gateway gateway) { - this.gateway = gateway; - } - - public Gateway getGateway() { - return gateway; - } - - public Users getUser() { - return user; - } - - public void setUser(Users user) { - this.user = user; - } - - public String getGateway_id() { - return gateway_id; - } - - public void setGateway_id(String gateway_id) { - this.gateway_id = gateway_id; - } -} - http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker_PK.java deleted file mode 100644 index 49ca862..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Gateway_Worker_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class Gateway_Worker_PK implements Serializable { - private String gateway_id; - private String user_name; - - public Gateway_Worker_PK(String gateway_id, String user_name) { - this.gateway_id = gateway_id; - this.user_name = user_name; - } - - public Gateway_Worker_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getUser_name() { - return user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public String getGateway_id() { - return gateway_id; - } - - public void setGateway_id(String gateway_id) { - this.gateway_id = gateway_id; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetail.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetail.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetail.java deleted file mode 100644 index 7142313..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetail.java +++ /dev/null @@ -1,135 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; -import java.util.List; - -@DataCache -@Entity -@Table(name = "JOB_DETAIL") -@IdClass(JobDetails_PK.class) -public class JobDetail implements Serializable { - @Id - @Column(name = "JOB_ID") - private String jobId; - @Id - @Column(name = "TASK_ID") - private String taskId; - @Column(name = "JOB_DESCRIPTION") - @Lob - private char[] jobDescription; - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - @Column(name = "COMPUTE_RESOURCE_CONSUMED") - private String computeResourceConsumed; - @Column(name = "JOBNAME") - private String jobName; - @Column(name = "WORKING_DIR") - private String workingDir; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "TASK_ID") - private TaskDetail task; - - @OneToOne (fetch = FetchType.LAZY, mappedBy = "jobDetail") - private Status jobStatus; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "jobDetail") - private List<ErrorDetail> errorDetails; - - public List<ErrorDetail> getErrorDetails() { - return errorDetails; - } - - public void setErrorDetails(List<ErrorDetail> errorDetails) { - this.errorDetails = errorDetails; - } - - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public char[] getJobDescription() { - return jobDescription; - } - - public void setJobDescription(char[] jobDescription) { - this.jobDescription = jobDescription; - } - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public String getComputeResourceConsumed() { - return computeResourceConsumed; - } - - public void setComputeResourceConsumed(String computeResourceConsumed) { - this.computeResourceConsumed = computeResourceConsumed; - } - - public String getJobName() { - return jobName; - } - - public void setJobName(String jobName) { - this.jobName = jobName; - } - - public String getWorkingDir() { - return workingDir; - } - - public void setWorkingDir(String workingDir) { - this.workingDir = workingDir; - } - - public Status getJobStatus() { - return jobStatus; - } - - public void setJobStatus(Status jobStatus) { - this.jobStatus = jobStatus; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetails_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetails_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetails_PK.java deleted file mode 100644 index a68a1a0..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/JobDetails_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class JobDetails_PK implements Serializable { - private String jobId; - private String taskId; - - public JobDetails_PK(String jobId, String taskId) { - this.jobId = jobId; - this.taskId = taskId; - } - - public JobDetails_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput.java deleted file mode 100644 index 1109774..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput.java +++ /dev/null @@ -1,163 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name = "NODE_INPUT") -@IdClass(NodeInput_PK.class) -public class NodeInput implements Serializable { - @Id - @Column(name = "NODE_INSTANCE_ID") - private String nodeId; - @Id - @Column(name = "INPUT_KEY") - private String inputKey; - @Column(name = "DATA_TYPE") - private String dataType; - @Column(name = "METADATA") - private String metadata; - @Column(name = "VALUE") - private String value; - @Column(name = "APP_ARGUMENT") - private String appArgument; - @Column(name = "INPUT_ORDER") - private int inputOrder; - - @Column(name = "STANDARD_INPUT") - private boolean standardInput; - - @Column(name = "USER_FRIENDLY_DESC") - private String userFriendlyDesc; - - @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 = "NODE_INSTANCE_ID") - private WorkflowNodeDetail nodeDetail; - - public String getInputKey() { - return inputKey; - } - - public void setInputKey(String inputKey) { - this.inputKey = inputKey; - } - - 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 getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getAppArgument() { - return appArgument; - } - - public void setAppArgument(String appArgument) { - this.appArgument = appArgument; - } - - public boolean isStandardInput() { - return standardInput; - } - - public void setStandardInput(boolean standardInput) { - this.standardInput = standardInput; - } - - public String getUserFriendlyDesc() { - return userFriendlyDesc; - } - - public void setUserFriendlyDesc(String userFriendlyDesc) { - this.userFriendlyDesc = userFriendlyDesc; - } - - public int getInputOrder() { - return inputOrder; - } - - public void setInputOrder(int inputOrder) { - this.inputOrder = inputOrder; - } - - public boolean getIsRequired() { - return isRequired; - } - - public void setIsRequired(boolean isRequired) { - this.isRequired = isRequired; - } - - public boolean getRequiredToCMD() { - 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/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput_PK.java deleted file mode 100644 index 3aeb980..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeInput_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class NodeInput_PK implements Serializable { - private String nodeId; - private String inputKey; - - public NodeInput_PK(String nodeId, String inputKey) { - this.nodeId = nodeId; - this.inputKey = inputKey; - } - - public NodeInput_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getInputKey() { - return inputKey; - } - - public void setInputKey(String inputKey) { - this.inputKey = inputKey; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput.java deleted file mode 100644 index 9831805..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput.java +++ /dev/null @@ -1,140 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name = "NODE_OUTPUT") -@IdClass(NodeOutput_PK.class) -public class NodeOutput implements Serializable { - @Id - @Column(name = "NODE_INSTANCE_ID") - private String nodeId; - @Id - @Column(name = "OUTPUT_KEY") - private String outputKey; - @Column(name = "DATA_TYPE") - private String dataType; - @Column(name = "VALUE") - private String value; - @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 = "NODE_INSTANCE_ID") - private WorkflowNodeDetail nodeDetail; - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - public String getOutputKey() { - return outputKey; - } - - public void setOutputKey(String outputKey) { - this.outputKey = outputKey; - } - - public String getDataType() { - return dataType; - } - - public void setDataType(String dataType) { - this.dataType = dataType; - } - - 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/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput_PK.java deleted file mode 100644 index fcbd4cf..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/NodeOutput_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class NodeOutput_PK implements Serializable { - private String nodeId; - private String outputKey; - - public NodeOutput_PK(String nodeId, String outputKey) { - this.nodeId = nodeId; - this.outputKey = outputKey; - } - - public NodeOutput_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getOutputKey() { - return outputKey; - } - - public void setOutputKey(String outputKey) { - this.outputKey = outputKey; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Notification_Email.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Notification_Email.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Notification_Email.java deleted file mode 100644 index 8c8606e..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Notification_Email.java +++ /dev/null @@ -1,81 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name ="NOTIFICATION_EMAIL") -public class Notification_Email implements Serializable { - @Id - @GeneratedValue - private int emailId; - @Column(name = "EXPERIMENT_ID") - private String experiment_id; - @Column(name = "TASK_ID") - private String taskId; - @Column(name = "EMAIL_ADDRESS") - private String emailAddress; - - @ManyToOne - @JoinColumn(name = "EXPERIMENT_ID") - private Experiment experiment; - @ManyToOne - @JoinColumn(name = "TASK_ID") - private TaskDetail task; - - public String getExperiment_id() { - return experiment_id; - } - - public void setExperiment_id(String experiment_id) { - this.experiment_id = experiment_id; - } - - public String getEmailAddress() { - return emailAddress; - } - - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public int getEmailId() { - return emailId; - } - - public void setEmailId(int emailId) { - this.emailId = emailId; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Project.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Project.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Project.java deleted file mode 100644 index 96bbf54..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Project.java +++ /dev/null @@ -1,125 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; - -@DataCache -@Entity -@Table(name ="PROJECT") -public class Project implements Serializable { - @Id - @Column(name = "PROJECT_ID") - private String project_id; - - @Column(name = "GATEWAY_ID") - private String gateway_id; - - @Column(name = "PROJECT_NAME") - private String project_name; - - @Column(name = "DESCRIPTION") - private String description; - - @Column(name = "USER_NAME") - private String user_name; - - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - - @ManyToOne(cascade=CascadeType.MERGE) - @JoinColumn(name = "GATEWAY_ID") - private Gateway gateway; - - @ManyToOne(cascade=CascadeType.MERGE) - @JoinColumn(name = "USER_NAME") - private Users users; - - - public String getProject_name() { - return project_name; - } - - public Gateway getGateway() { - return gateway; - } - - public void setProject_name(String project_name) { - this.project_name = project_name; - } - - public void setGateway(Gateway gateway) { - this.gateway = gateway; - } - - public Users getUsers() { - return users; - } - - public void setUsers(Users users) { - this.users = users; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public void setProject_id(String project_id) { - this.project_id = project_id; - } - - public String getProject_id() { - return project_id; - } - - public String getUser_name() { - return user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public String getGateway_id() { - return gateway_id; - } - - public void setGateway_id(String gateway_id) { - this.gateway_id = gateway_id; - } -} - http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser.java deleted file mode 100644 index 5bb8804..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser.java +++ /dev/null @@ -1,81 +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.airavata.experiment.catalog.model; - - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@IdClass(ProjectUser_PK.class) -@Table(name = "PROJECT_USER") -public class ProjectUser implements Serializable { - @Id - @Column(name = "PROJECT_ID") - private String projectID; - @Id - @Column(name = "USER_NAME") - private String userName; - - @ManyToOne(cascade=CascadeType.MERGE) - @JoinColumn(name = "PROJECT_ID") - private Project project; - - @ManyToOne(cascade=CascadeType.MERGE) - @JoinColumn(name = "USER_NAME") - private Users user; - - public String getProjectID() { - return projectID; - } - - public void setProjectID(String projectID) { - this.projectID = projectID; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public Project getProject() { - return project; - } - - public void setProject(Project project) { - this.project = project; - } - - public Users getUser() { - return user; - } - - public void setUser(Users user) { - this.user = user; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser_PK.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser_PK.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser_PK.java deleted file mode 100644 index 0d0fb40..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/ProjectUser_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.airavata.experiment.catalog.model; - -import java.io.Serializable; - -public class ProjectUser_PK implements Serializable { - private String projectID; - private String userName; - - public ProjectUser_PK(String projectID, String userName) { - this.projectID = projectID; - this.userName = userName; - } - - public ProjectUser_PK() { - ; - } - - @Override - public boolean equals(Object o) { - return false; - } - - @Override - public int hashCode() { - return 1; - } - - public String getProjectID() { - return projectID; - } - - public void setProjectID(String projectID) { - this.projectID = projectID; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/QosParam.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/QosParam.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/QosParam.java deleted file mode 100644 index 9b3f081..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/QosParam.java +++ /dev/null @@ -1,103 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name = "QOS_PARAMS") -public class QosParam implements Serializable { - @Id - @GeneratedValue - @Column(name = "QOS_ID") - private int qosId; - @Column(name = "EXPERIMENT_ID") - private String expId; - @Column(name = "TASK_ID") - private String taskId; - @Column(name = "START_EXECUTION_AT") - private String startExecutionAt; - @Column(name = "EXECUTE_BEFORE") - private String executeBefore; - @Column(name = "NO_OF_RETRIES") - private int noOfRetries; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "EXPERIMENT_ID") - private Experiment experiment; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "TASK_ID") - private TaskDetail task; - - public int getQosId() { - return qosId; - } - - public void setQosId(int qosId) { - this.qosId = qosId; - } - - public String getExpId() { - return expId; - } - - public void setExpId(String expId) { - this.expId = expId; - } - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public String getStartExecutionAt() { - return startExecutionAt; - } - - public void setStartExecutionAt(String startExecutionAt) { - this.startExecutionAt = startExecutionAt; - } - - public String getExecuteBefore() { - return executeBefore; - } - - public void setExecuteBefore(String executeBefore) { - this.executeBefore = executeBefore; - } - - public int getNoOfRetries() { - return noOfRetries; - } - - public void setNoOfRetries(int noOfRetries) { - this.noOfRetries = noOfRetries; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Status.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Status.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Status.java deleted file mode 100644 index 52e088a..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Status.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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; - -@DataCache -@Entity -@Table(name = "STATUS") -public class Status implements Serializable { - @Id - @GeneratedValue - @Column(name = "STATUS_ID") - private int statusId; - @Column(name = "EXPERIMENT_ID") - private String expId; - @Column(name = "NODE_INSTANCE_ID") - private String nodeId; - @Column(name = "TRANSFER_ID") - private String transferId; - @Column(name = "TASK_ID") - private String taskId; - @Column(name = "JOB_ID") - private String jobId; - @Column(name = "STATE") - private String state; - @Column(name = "STATUS_UPDATE_TIME") - private Timestamp statusUpdateTime; - @Column(name = "STATUS_TYPE") - private String statusType; - - @ManyToOne(fetch = FetchType.LAZY, cascade= CascadeType.MERGE) - @JoinColumn(name = "EXPERIMENT_ID") - private Experiment experiment; - - @ManyToOne(fetch = FetchType.LAZY, cascade= CascadeType.MERGE) - @JoinColumn(name = "TASK_ID") - private TaskDetail task; - - @ManyToOne(fetch = FetchType.LAZY, cascade= CascadeType.MERGE) - @JoinColumn(name = "NODE_INSTANCE_ID") - private WorkflowNodeDetail nodeDetail; - - @ManyToOne(fetch = FetchType.LAZY, cascade= CascadeType.MERGE) - @JoinColumn(name = "TRANSFER_ID") - private DataTransferDetail transferDetail; - - @ManyToOne(fetch = FetchType.LAZY, cascade= CascadeType.MERGE) - @JoinColumn(name = "JOB_ID") - private JobDetail jobDetail; - - public int getStatusId() { - return statusId; - } - - public void setStatusId(int statusId) { - this.statusId = statusId; - } - - public String getExpId() { - return expId; - } - - public void setExpId(String expId) { - this.expId = expId; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getTransferId() { - return transferId; - } - - public void setTransferId(String transferId) { - this.transferId = transferId; - } - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public Timestamp getStatusUpdateTime() { - return statusUpdateTime; - } - - public void setStatusUpdateTime(Timestamp statusUpdateTime) { - this.statusUpdateTime = statusUpdateTime; - } - - public String getStatusType() { - return statusType; - } - - public void setStatusType(String statusType) { - this.statusType = statusType; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/TaskDetail.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/TaskDetail.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/TaskDetail.java deleted file mode 100644 index 423b189..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/TaskDetail.java +++ /dev/null @@ -1,221 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; -import java.util.List; - -@DataCache -@Entity -@Table(name = "TASK_DETAIL") -public class TaskDetail implements Serializable { - @Id - @Column(name = "TASK_ID") - private String taskId; - @Column(name = "NODE_INSTANCE_ID") - private String nodeId; - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - @Column(name = "APPLICATION_ID") - private String appId; - @Column(name = "APPLICATION_VERSION") - private String appVersion; - @Column(name = "ALLOW_NOTIFICATION") - private boolean allowNotification; - - @Column(name = "APPLICATION_DEPLOYMENT_ID") - private String applicationDeploymentId; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "NODE_INSTANCE_ID") - private WorkflowNodeDetail nodeDetail; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "task") - private List<ApplicationOutput> applicationOutputs; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "task") - private List<ApplicationInput> applicationInputs; - - @OneToOne (fetch = FetchType.LAZY, mappedBy = "task") - private Computational_Resource_Scheduling resourceScheduling; - - @OneToOne (fetch = FetchType.LAZY, mappedBy = "task") - private AdvancedInputDataHandling inputDataHandling; - - @OneToOne (fetch = FetchType.LAZY, mappedBy = "task") - private AdvancedOutputDataHandling outputDataHandling; - - @OneToOne (fetch = FetchType.LAZY, mappedBy = "task") - private Status taskStatus; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "task") - private List<JobDetail> jobDetails; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "task") - private List<DataTransferDetail> dataTransferDetails; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "task") - private List<Notification_Email> notificationEmails; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "task") - private List<ErrorDetail> errorDetails; - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getAppVersion() { - return appVersion; - } - - public void setAppVersion(String appVersion) { - this.appVersion = appVersion; - } - - public String getApplicationDeploymentId() { - return applicationDeploymentId; - } - - public void setApplicationDeploymentId(String applicationDeploymentId) { - this.applicationDeploymentId = applicationDeploymentId; - } - - public boolean isAllowNotification() { - return allowNotification; - } - - public void setAllowNotification(boolean allowNotification) { - this.allowNotification = allowNotification; - } - - public List<ApplicationOutput> getApplicationOutputs() { - return applicationOutputs; - } - - public void setApplicationOutputs(List<ApplicationOutput> applicationOutputs) { - this.applicationOutputs = applicationOutputs; - } - - public List<ApplicationInput> getApplicationInputs() { - return applicationInputs; - } - - public void setApplicationInputs(List<ApplicationInput> applicationInputs) { - this.applicationInputs = applicationInputs; - } - - public Computational_Resource_Scheduling getResourceScheduling() { - return resourceScheduling; - } - - public void setResourceScheduling(Computational_Resource_Scheduling resourceScheduling) { - this.resourceScheduling = resourceScheduling; - } - - public AdvancedInputDataHandling getInputDataHandling() { - return inputDataHandling; - } - - public void setInputDataHandling(AdvancedInputDataHandling inputDataHandling) { - this.inputDataHandling = inputDataHandling; - } - - public AdvancedOutputDataHandling getOutputDataHandling() { - return outputDataHandling; - } - - public void setOutputDataHandling(AdvancedOutputDataHandling outputDataHandling) { - this.outputDataHandling = outputDataHandling; - } - - public List<JobDetail> getJobDetails() { - return jobDetails; - } - - public void setJobDetails(List<JobDetail> jobDetails) { - this.jobDetails = jobDetails; - } - - public List<DataTransferDetail> getDataTransferDetails() { - return dataTransferDetails; - } - - public void setDataTransferDetails(List<DataTransferDetail> dataTransferDetails) { - this.dataTransferDetails = dataTransferDetails; - } - - public List<Notification_Email> getNotificationEmails() { - return notificationEmails; - } - - public void setNotificationEmails(List<Notification_Email> notificationEmails) { - this.notificationEmails = notificationEmails; - } - - public Status getTaskStatus() { - return taskStatus; - } - - public void setTaskStatus(Status taskStatus) { - this.taskStatus = taskStatus; - } - - public List<ErrorDetail> getErrorDetails() { - return errorDetails; - } - - public void setErrorDetails(List<ErrorDetail> errorDetails) { - this.errorDetails = errorDetails; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Users.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Users.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Users.java deleted file mode 100644 index f0b9b49..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/Users.java +++ /dev/null @@ -1,55 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; - -@DataCache -@Entity -@Table(name ="USERS") -public class Users implements Serializable { - - @Id - @Column(name = "USER_NAME") - private String user_name; - @Column(name = "PASSWORD") - private String password; - - - public String getUser_name() { - return user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } -} http://git-wip-us.apache.org/repos/asf/airavata/blob/5a648a60/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/WorkflowNodeDetail.java ---------------------------------------------------------------------- diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/WorkflowNodeDetail.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/WorkflowNodeDetail.java deleted file mode 100644 index 7d38322..0000000 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experimet/catalog/model/WorkflowNodeDetail.java +++ /dev/null @@ -1,155 +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.airavata.experiment.catalog.model; - -import org.apache.openjpa.persistence.DataCache; - -import javax.persistence.*; -import java.io.Serializable; -import java.sql.Timestamp; -import java.util.List; - -@DataCache -@Entity -@Table(name = "WORKFLOW_NODE_DETAIL") -public class WorkflowNodeDetail implements Serializable { - @Column(name = "EXPERIMENT_ID") - private String expId; - @Id - @Column(name = "NODE_INSTANCE_ID") - private String nodeId; - @Column(name = "EXECUTION_UNIT") - private String executionUnit; - @Column(name = "EXECUTION_UNIT_DATA") - private String executionUnitData; - @Column(name = "CREATION_TIME") - private Timestamp creationTime; - @Column(name = "NODE_NAME") - private String nodeName; - - @ManyToOne(cascade= CascadeType.MERGE) - @JoinColumn(name = "EXPERIMENT_ID") - private Experiment experiment; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "nodeDetail") - private List<TaskDetail> taskDetails; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "nodeDetail") - private List<NodeInput> nodeInputs; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "nodeDetail") - private List<NodeOutput> nodeOutputs; - - @OneToOne (fetch = FetchType.LAZY, mappedBy = "nodeDetail") - private Status nodeStatus; - - @OneToMany (fetch = FetchType.LAZY, mappedBy = "nodeDetail") - private List<ErrorDetail> errorDetails; - - public String getExpId() { - return expId; - } - - public void setExpId(String expId) { - this.expId = expId; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public Timestamp getCreationTime() { - return creationTime; - } - - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - public String getNodeName() { - return nodeName; - } - - public void setNodeName(String nodeName) { - this.nodeName = nodeName; - } - - public String getExecutionUnitData() { - return executionUnitData; - } - - public void setExecutionUnitData(String executionUnitData) { - this.executionUnitData = executionUnitData; - } - - public String getExecutionUnit() { - return executionUnit; - } - - public void setExecutionUnit(String executionUnit) { - this.executionUnit = executionUnit; - } - - public List<TaskDetail> getTaskDetails() { - return taskDetails; - } - - public void setTaskDetails(List<TaskDetail> taskDetails) { - this.taskDetails = taskDetails; - } - - public List<NodeInput> getNodeInputs() { - return nodeInputs; - } - - public void setNodeInputs(List<NodeInput> nodeInputs) { - this.nodeInputs = nodeInputs; - } - - public List<NodeOutput> getNodeOutputs() { - return nodeOutputs; - } - - public void setNodeOutputs(List<NodeOutput> nodeOutputs) { - this.nodeOutputs = nodeOutputs; - } - - public Status getNodeStatus() { - return nodeStatus; - } - - public void setNodeStatus(Status nodeStatus) { - this.nodeStatus = nodeStatus; - } - - public List<ErrorDetail> getErrorDetails() { - return errorDetails; - } - - public void setErrorDetails(List<ErrorDetail> errorDetails) { - this.errorDetails = errorDetails; - } -}
