package com.topsail.influxdb.pojo;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Date;
|
|
|
|
public class HistoryAll {
|
|
private Long id;
|
|
|
|
private Integer devicetype;
|
|
|
|
private String imei;
|
|
|
|
private Integer batterylevel;
|
|
|
|
private Integer singalstrength;
|
|
|
|
private String sampledata;
|
|
|
|
private Integer passnum;
|
|
|
|
private Integer batterystate;
|
|
|
|
private String alarmtype;
|
|
|
|
private String platformtype;
|
|
|
|
private String username;
|
|
|
|
private String unit;
|
|
|
|
private String sendtime;
|
|
|
|
private String databody;
|
|
|
|
private Date time;
|
|
|
|
private String value;
|
|
|
|
private Date senddate;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Integer getDevicetype() {
|
|
return devicetype;
|
|
}
|
|
|
|
public void setDevicetype(Integer devicetype) {
|
|
this.devicetype = devicetype;
|
|
}
|
|
|
|
public String getImei() {
|
|
return imei;
|
|
}
|
|
|
|
public void setImei(String imei) {
|
|
this.imei = imei == null ? null : imei.trim();
|
|
}
|
|
|
|
public Integer getBatterylevel() {
|
|
return batterylevel;
|
|
}
|
|
|
|
public void setBatterylevel(Integer batterylevel) {
|
|
this.batterylevel = batterylevel;
|
|
}
|
|
|
|
public Integer getSingalstrength() {
|
|
return singalstrength;
|
|
}
|
|
|
|
public void setSingalstrength(Integer singalstrength) {
|
|
this.singalstrength = singalstrength;
|
|
}
|
|
|
|
public String getSampledata() {
|
|
return sampledata;
|
|
}
|
|
|
|
public void setSampledata(String sampledata) {
|
|
this.sampledata = sampledata == null ? null : sampledata.trim();
|
|
}
|
|
|
|
public Integer getPassnum() {
|
|
return passnum;
|
|
}
|
|
|
|
public void setPassnum(Integer passnum) {
|
|
this.passnum = passnum;
|
|
}
|
|
|
|
public Integer getBatterystate() {
|
|
return batterystate;
|
|
}
|
|
|
|
public void setBatterystate(Integer batterystate) {
|
|
this.batterystate = batterystate;
|
|
}
|
|
|
|
public String getAlarmtype() {
|
|
return alarmtype;
|
|
}
|
|
|
|
public void setAlarmtype(String alarmtype) {
|
|
this.alarmtype = alarmtype == null ? null : alarmtype.trim();
|
|
}
|
|
|
|
public String getPlatformtype() {
|
|
return platformtype;
|
|
}
|
|
|
|
public void setPlatformtype(String platformtype) {
|
|
this.platformtype = platformtype == null ? null : platformtype.trim();
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username == null ? null : username.trim();
|
|
}
|
|
|
|
public String getUnit() {
|
|
return unit;
|
|
}
|
|
|
|
public void setUnit(String unit) {
|
|
this.unit = unit == null ? null : unit.trim();
|
|
}
|
|
|
|
public String getSendtime() {
|
|
return sendtime;
|
|
}
|
|
|
|
public void setSendtime(String sendtime) {
|
|
this.sendtime = sendtime == null ? null : sendtime.trim();
|
|
}
|
|
|
|
public String getDatabody() {
|
|
return databody;
|
|
}
|
|
|
|
public void setDatabody(String databody) {
|
|
this.databody = databody == null ? null : databody.trim();
|
|
}
|
|
|
|
public Date getTime() {
|
|
return time;
|
|
}
|
|
|
|
public void setTime(Date time) {
|
|
this.time = time;
|
|
}
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(String value) {
|
|
this.value = value == null ? null : value.trim();
|
|
}
|
|
|
|
public Date getSenddate() {
|
|
return senddate;
|
|
}
|
|
|
|
public void setSenddate(Date senddate) {
|
|
this.senddate = senddate;
|
|
}
|
|
|
|
/**
|
|
* This enum was generated by MyBatis Generator.
|
|
* This enum corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public enum Column {
|
|
id("id", "id", "BIGINT", false),
|
|
devicetype("deviceType", "devicetype", "INTEGER", false),
|
|
imei("Imei", "imei", "VARCHAR", false),
|
|
batterylevel("batteryLevel", "batterylevel", "INTEGER", false),
|
|
singalstrength("singalStrength", "singalstrength", "INTEGER", false),
|
|
sampledata("sampleData", "sampledata", "VARCHAR", false),
|
|
passnum("passNum", "passnum", "INTEGER", false),
|
|
batterystate("batteryState", "batterystate", "INTEGER", false),
|
|
alarmtype("alarmType", "alarmtype", "VARCHAR", false),
|
|
platformtype("platformType", "platformtype", "VARCHAR", false),
|
|
username("userName", "username", "VARCHAR", false),
|
|
unit("unit", "unit", "VARCHAR", false),
|
|
sendtime("sendTime", "sendtime", "VARCHAR", false),
|
|
databody("dataBody", "databody", "VARCHAR", false),
|
|
time("time", "time", "TIMESTAMP", false),
|
|
value("value", "value", "VARCHAR", false),
|
|
senddate("sendDate", "senddate", "TIMESTAMP", false);
|
|
|
|
/**
|
|
* This field was generated by MyBatis Generator.
|
|
* This field corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
private static final String BEGINNING_DELIMITER = "\"";
|
|
|
|
/**
|
|
* This field was generated by MyBatis Generator.
|
|
* This field corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
private static final String ENDING_DELIMITER = "\"";
|
|
|
|
/**
|
|
* This field was generated by MyBatis Generator.
|
|
* This field corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
private final String column;
|
|
|
|
/**
|
|
* This field was generated by MyBatis Generator.
|
|
* This field corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
private final boolean isColumnNameDelimited;
|
|
|
|
/**
|
|
* This field was generated by MyBatis Generator.
|
|
* This field corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
private final String javaProperty;
|
|
|
|
/**
|
|
* This field was generated by MyBatis Generator.
|
|
* This field corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
private final String jdbcType;
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String value() {
|
|
return this.column;
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String getValue() {
|
|
return this.column;
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String getJavaProperty() {
|
|
return this.javaProperty;
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String getJdbcType() {
|
|
return this.jdbcType;
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
|
|
this.column = column;
|
|
this.javaProperty = javaProperty;
|
|
this.jdbcType = jdbcType;
|
|
this.isColumnNameDelimited = isColumnNameDelimited;
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String desc() {
|
|
return this.getEscapedColumnName() + " DESC";
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String asc() {
|
|
return this.getEscapedColumnName() + " ASC";
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public static Column[] excludes(Column ... excludes) {
|
|
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
|
|
if (excludes != null && excludes.length > 0) {
|
|
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
|
|
}
|
|
return columns.toArray(new Column[]{});
|
|
}
|
|
|
|
/**
|
|
* This method was generated by MyBatis Generator.
|
|
* This method corresponds to the database table history_all
|
|
*
|
|
* @mbg.generated
|
|
* @project https://github.com/itfsw/mybatis-generator-plugin
|
|
*/
|
|
public String getEscapedColumnName() {
|
|
if (this.isColumnNameDelimited) {
|
|
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
|
|
} else {
|
|
return this.column;
|
|
}
|
|
}
|
|
}
|
|
}
|