package org.well.well.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

@Entity
@Table(name = "data_gas")
public class Methane implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 566089135526318711L;
	private Long dbId;
	private String devCode; //设备编号
	private String wellCode; //井编号
	private String strength; //浓度
	private String cell;       //电池电量
	private String descn;       //状态描述
	private Timestamp uptime;       //采集时间
	private Timestamp logtime;      //记录时间
	private String pci;
	private String rsrp;
	private String snr;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getDbId() {
		return dbId;
	}

	public void setDbId(Long dbId) {
		this.dbId = dbId;
	}

	@Column(name = "STRENGTH")
	public String getStrength() {
		return strength;
	}

	public void setStrength(String strength) {
		this.strength = strength;
	}

	@Column(name = "DEVCODE")
	public String getDevCode() {
		return devCode;
	}

	public void setDevCode(String devCode) {
		this.devCode = devCode;
	}

	@Column(name = "WELL_CODE")
	public String getWellCode() {
		return wellCode;
	}

	public void setWellCode(String wellCode) {
		this.wellCode = wellCode;
	}

	@Column(name = "DESCN")
	public String getDescn() {
		return descn;
	}

	public void setDescn(String descn) {
		this.descn = descn;
	}

	@Column(name = "CELL")
	public String getCell() {
		return cell;
	}

	public void setCell(String cell) {
		this.cell = cell;
	}

	@Column(name = "UPTIME")
	public Timestamp getUptime() {
		return uptime;
	}

	public void setUptime(Timestamp uptime) {
		this.uptime = uptime;
	}

	@Column(name = "LOGTIME")
	public Timestamp getLogtime() {
		return logtime;
	}

	public void setLogtime(Timestamp logtime) {
		this.logtime = logtime;
	}

	@Column(name = "PCI")
	public String getPci() {
		return pci;
	}

	public void setPci(String pci) {
		this.pci = pci;
	}

	@Column(name = "RSRP")
	public String getRsrp() {
		return rsrp;
	}

	public void setRsrp(String rsrp) {
		this.rsrp = rsrp;
	}

	@Column(name = "SNR")
	public String getSnr() {
		return snr;
	}

	public void setSnr(String snr) {
		this.snr = snr;
	}

	public Methane(String devCode,String wellCode, String strength, String cell, Timestamp uptime, Timestamp logtime) {
		this.devCode = devCode;
		this.wellCode=wellCode;
		this.strength = strength;
		this.cell = cell;
		this.uptime = uptime;
		this.logtime = logtime;
	}
}
