package net.wicp.tams.app.duckula.controller.bean.models;

import net.wicp.tams.common.annotation.TamsBean;
import net.wicp.tams.common.annotation.TamsCol;
import net.wicp.tams.common.constant.PageElement;

/**
 *
 * This class was generated by MyBatis Generator.
 * This class corresponds to the database table rtdw_flinktask
 */
@TamsBean(title = "flink任务配置")
public class RtdwFlinktask {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.id
	 * @mbg.generated
	 */
	private Long id;
	/**
	 * Database Column Remarks: 任务名 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.name
	 * @mbg.generated
	 */
	@TamsCol(value = "任务名", save = 1, query = 1, showWidth = 100, orderby = 1)
	private String name;
	/**
	 * Database Column Remarks: 需要槽数 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.slot
	 * @mbg.generated
	 */
	@TamsCol(value = "需要槽数", save = 1, query = 0, showWidth = 100, orderby = 2,pageElement = PageElement.NumberBox, pageElementOpt = "{'precision':0,'min':0,'max':32,'missingmsg':'slot在1到32之间'}")
	private Integer slot;
	/**
	 * Database Column Remarks: 基础镜像版本 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.base_img
	 * @mbg.generated
	 */
	//'columns':'[[{field:\"name\",width:70,title:\"镜像名\"}]]'
	@TamsCol(value = "镜像版本",  save = 1, query = 0, showWidth = 100, orderby = 2,pageElement = PageElement.ComboGrid,pageElementOpt = "{'url':'/setting/flinkBaseImage:query?needpage=false'}",opt_columns = "[[{field:'name',width:70,title:'镜像名'},{field:'imageTag',width:100,title:'镜像版本'},{field:'deployDate1',width:150,title:'发布日期'}]]") 
	private Long baseImg;
	/**
	 * Database Column Remarks: 名称空间 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.namespace
	 * @mbg.generated
	 */
	@TamsCol(value = "名称空间", save = 1, query = 0, showWidth = 100, orderby = 3)
	private String namespace;
	/**
	 * Database Column Remarks: 用户执行程序保存的路径 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.user_jar_path
	 * @mbg.generated
	 */
	@TamsCol(value = "执行程序", save = 1, query = -1, showWidth = 300, orderby = 9, pageElement = PageElement.Upload, pageElementOpt = "{}")
	private String userJarPath;
	/**
	 * Database Column Remarks: 执行主类 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.entry_class
	 * @mbg.generated
	 */
	@TamsCol(value = "执行主类", save = 1, query = -1, showWidth = 200, orderby = 8)
	private String entryClass;
	/**
	 * Database Column Remarks: 主参数 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.main_args
	 * @mbg.generated
	 */
	@TamsCol(value = "主类参数", save = 0, query = -1, orderby = 10,colspan = 3)
	private String mainArgs;
	/**
	 * Database Column Remarks: 其它参数 This field was generated by MyBatis Generator. This field corresponds to the database column rtdw_flinktask.flink_config
	 * @mbg.generated
	 */
	@TamsCol(value = "其它参数", save = 0, query = -1, orderby = 11, colspan = 3)
	private String flinkConfig;

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table rtdw_flinktask
	 * @mbg.generated
	 */
	public RtdwFlinktask(Long id, String name, Integer slot, Long baseImg, String namespace, String userJarPath,
			String entryClass, String mainArgs, String flinkConfig) {
		this.id = id;
		this.name = name;
		this.slot = slot;
		this.baseImg = baseImg;
		this.namespace = namespace;
		this.userJarPath = userJarPath;
		this.entryClass = entryClass;
		this.mainArgs = mainArgs;
		this.flinkConfig = flinkConfig;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table rtdw_flinktask
	 * @mbg.generated
	 */
	public RtdwFlinktask() {
		super();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.id
	 * @return  the value of rtdw_flinktask.id
	 * @mbg.generated
	 */
	public Long getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.id
	 * @param id  the value for rtdw_flinktask.id
	 * @mbg.generated
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.name
	 * @return  the value of rtdw_flinktask.name
	 * @mbg.generated
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.name
	 * @param name  the value for rtdw_flinktask.name
	 * @mbg.generated
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.slot
	 * @return  the value of rtdw_flinktask.slot
	 * @mbg.generated
	 */
	public Integer getSlot() {
		return slot;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.slot
	 * @param slot  the value for rtdw_flinktask.slot
	 * @mbg.generated
	 */
	public void setSlot(Integer slot) {
		this.slot = slot;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.base_img
	 * @return  the value of rtdw_flinktask.base_img
	 * @mbg.generated
	 */
	public Long getBaseImg() {
		return baseImg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.base_img
	 * @param baseImg  the value for rtdw_flinktask.base_img
	 * @mbg.generated
	 */
	public void setBaseImg(Long baseImg) {
		this.baseImg = baseImg;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.namespace
	 * @return  the value of rtdw_flinktask.namespace
	 * @mbg.generated
	 */
	public String getNamespace() {
		return namespace;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.namespace
	 * @param namespace  the value for rtdw_flinktask.namespace
	 * @mbg.generated
	 */
	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.user_jar_path
	 * @return  the value of rtdw_flinktask.user_jar_path
	 * @mbg.generated
	 */
	public String getUserJarPath() {
		return userJarPath;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.user_jar_path
	 * @param userJarPath  the value for rtdw_flinktask.user_jar_path
	 * @mbg.generated
	 */
	public void setUserJarPath(String userJarPath) {
		this.userJarPath = userJarPath;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.entry_class
	 * @return  the value of rtdw_flinktask.entry_class
	 * @mbg.generated
	 */
	public String getEntryClass() {
		return entryClass;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.entry_class
	 * @param entryClass  the value for rtdw_flinktask.entry_class
	 * @mbg.generated
	 */
	public void setEntryClass(String entryClass) {
		this.entryClass = entryClass;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.main_args
	 * @return  the value of rtdw_flinktask.main_args
	 * @mbg.generated
	 */
	public String getMainArgs() {
		return mainArgs;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.main_args
	 * @param mainArgs  the value for rtdw_flinktask.main_args
	 * @mbg.generated
	 */
	public void setMainArgs(String mainArgs) {
		this.mainArgs = mainArgs;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column rtdw_flinktask.flink_config
	 * @return  the value of rtdw_flinktask.flink_config
	 * @mbg.generated
	 */
	public String getFlinkConfig() {
		return flinkConfig;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column rtdw_flinktask.flink_config
	 * @param flinkConfig  the value for rtdw_flinktask.flink_config
	 * @mbg.generated
	 */
	public void setFlinkConfig(String flinkConfig) {
		this.flinkConfig = flinkConfig;
	}
}