package com.ps.visualization.vo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ProtocolProgress entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "protocol_progress", catalog = "global_scan_all")
public class ProtocolProgress implements java.io.Serializable {

	// Fields

	private Integer id;
	private String protocol;
	private Integer ipNumTotal;
	private Integer ipNumDone;
	private Integer ipNumExist;
	private Timestamp updateTime;

	// Constructors

	/** default constructor */
	public ProtocolProgress() {
	}

	/** full constructor */
	public ProtocolProgress(String protocol, Integer ipNumTotal,
			Integer ipNumDone, Integer ipNumExist, Timestamp updateTime) {
		this.protocol = protocol;
		this.ipNumTotal = ipNumTotal;
		this.ipNumDone = ipNumDone;
		this.ipNumExist = ipNumExist;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "protocol", nullable = false, length = 20)
	public String getProtocol() {
		return this.protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	@Column(name = "ip_num_total", nullable = false)
	public Integer getIpNumTotal() {
		return this.ipNumTotal;
	}

	public void setIpNumTotal(Integer ipNumTotal) {
		this.ipNumTotal = ipNumTotal;
	}

	@Column(name = "ip_num_done", nullable = false)
	public Integer getIpNumDone() {
		return this.ipNumDone;
	}

	public void setIpNumDone(Integer ipNumDone) {
		this.ipNumDone = ipNumDone;
	}

	@Column(name = "ip_num_exist", nullable = false)
	public Integer getIpNumExist() {
		return this.ipNumExist;
	}

	public void setIpNumExist(Integer ipNumExist) {
		this.ipNumExist = ipNumExist;
	}

	@Column(name = "update_time", nullable = false, length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}