/**
*
* 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.registry.core.app.catalog.model;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "APPLICATION_INPUT")
@IdClass(AppInput_PK.class)
public class ApplicationIntInput 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;
@Column(name = "IS_READ_ONLY")
private boolean isReadOnly;
@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;
}
public boolean isReadOnly() {
return isReadOnly;
}
public void setReadOnly(boolean isReadOnly) {
this.isReadOnly = isReadOnly;
}
}