You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

566 lines
16 KiB

package com.topsail.influxdb.pojo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
public class OcConfig {
private Long id;
private String imei;
private String typename;
private Integer devicetype;
private Integer collectiongap;
private Integer sendinggap;
private String urladdress;
private String port;
private Integer unipaththresholdlimit;
private Integer unipaththresholdupper;
private Integer unipathchangethreshold;
private Integer multiplethresholdlimit;
private Integer multiplethresholdupper;
private Integer multiplechangethreshold;
private Integer controlvalvestate;
private String starttime;
private String endtime;
private Integer numdays;
private Integer switchingvalue;
private Integer stopreporting;
private String softwareversions;
private String hardwareversions;
private String imsi;
private String apn;
private Date time;
private String autocontrolpolicy;
private String autocontroltime;
private String selfchecktime;
private Integer collide;
private Integer lean;
private Integer loraFrequency;
private Integer loraBandwidth;
private Integer loraSpreading;
private Integer loraEncodingRate;
private String cimei;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getImei() {
return imei;
}
public void setImei(String imei) {
this.imei = imei == null ? null : imei.trim();
}
public String getTypename() {
return typename;
}
public void setTypename(String typename) {
this.typename = typename == null ? null : typename.trim();
}
public Integer getDevicetype() {
return devicetype;
}
public void setDevicetype(Integer devicetype) {
this.devicetype = devicetype;
}
public Integer getCollectiongap() {
return collectiongap;
}
public void setCollectiongap(Integer collectiongap) {
this.collectiongap = collectiongap;
}
public Integer getSendinggap() {
return sendinggap;
}
public void setSendinggap(Integer sendinggap) {
this.sendinggap = sendinggap;
}
public String getUrladdress() {
return urladdress;
}
public void setUrladdress(String urladdress) {
this.urladdress = urladdress == null ? null : urladdress.trim();
}
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port == null ? null : port.trim();
}
public Integer getUnipaththresholdlimit() {
return unipaththresholdlimit;
}
public void setUnipaththresholdlimit(Integer unipaththresholdlimit) {
this.unipaththresholdlimit = unipaththresholdlimit;
}
public Integer getUnipaththresholdupper() {
return unipaththresholdupper;
}
public void setUnipaththresholdupper(Integer unipaththresholdupper) {
this.unipaththresholdupper = unipaththresholdupper;
}
public Integer getUnipathchangethreshold() {
return unipathchangethreshold;
}
public void setUnipathchangethreshold(Integer unipathchangethreshold) {
this.unipathchangethreshold = unipathchangethreshold;
}
public Integer getMultiplethresholdlimit() {
return multiplethresholdlimit;
}
public void setMultiplethresholdlimit(Integer multiplethresholdlimit) {
this.multiplethresholdlimit = multiplethresholdlimit;
}
public Integer getMultiplethresholdupper() {
return multiplethresholdupper;
}
public void setMultiplethresholdupper(Integer multiplethresholdupper) {
this.multiplethresholdupper = multiplethresholdupper;
}
public Integer getMultiplechangethreshold() {
return multiplechangethreshold;
}
public void setMultiplechangethreshold(Integer multiplechangethreshold) {
this.multiplechangethreshold = multiplechangethreshold;
}
public Integer getControlvalvestate() {
return controlvalvestate;
}
public void setControlvalvestate(Integer controlvalvestate) {
this.controlvalvestate = controlvalvestate;
}
public String getStarttime() {
return starttime;
}
public void setStarttime(String starttime) {
this.starttime = starttime == null ? null : starttime.trim();
}
public String getEndtime() {
return endtime;
}
public void setEndtime(String endtime) {
this.endtime = endtime == null ? null : endtime.trim();
}
public Integer getNumdays() {
return numdays;
}
public void setNumdays(Integer numdays) {
this.numdays = numdays;
}
public Integer getSwitchingvalue() {
return switchingvalue;
}
public void setSwitchingvalue(Integer switchingvalue) {
this.switchingvalue = switchingvalue;
}
public Integer getStopreporting() {
return stopreporting;
}
public void setStopreporting(Integer stopreporting) {
this.stopreporting = stopreporting;
}
public String getSoftwareversions() {
return softwareversions;
}
public void setSoftwareversions(String softwareversions) {
this.softwareversions = softwareversions == null ? null : softwareversions.trim();
}
public String getHardwareversions() {
return hardwareversions;
}
public void setHardwareversions(String hardwareversions) {
this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim();
}
public String getImsi() {
return imsi;
}
public void setImsi(String imsi) {
this.imsi = imsi == null ? null : imsi.trim();
}
public String getApn() {
return apn;
}
public void setApn(String apn) {
this.apn = apn == null ? null : apn.trim();
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public String getAutocontrolpolicy() {
return autocontrolpolicy;
}
public void setAutocontrolpolicy(String autocontrolpolicy) {
this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim();
}
public String getAutocontroltime() {
return autocontroltime;
}
public void setAutocontroltime(String autocontroltime) {
this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim();
}
public String getSelfchecktime() {
return selfchecktime;
}
public void setSelfchecktime(String selfchecktime) {
this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim();
}
public Integer getCollide() {
return collide;
}
public void setCollide(Integer collide) {
this.collide = collide;
}
public Integer getLean() {
return lean;
}
public void setLean(Integer lean) {
this.lean = lean;
}
public Integer getLoraFrequency() {
return loraFrequency;
}
public void setLoraFrequency(Integer loraFrequency) {
this.loraFrequency = loraFrequency;
}
public Integer getLoraBandwidth() {
return loraBandwidth;
}
public void setLoraBandwidth(Integer loraBandwidth) {
this.loraBandwidth = loraBandwidth;
}
public Integer getLoraSpreading() {
return loraSpreading;
}
public void setLoraSpreading(Integer loraSpreading) {
this.loraSpreading = loraSpreading;
}
public Integer getLoraEncodingRate() {
return loraEncodingRate;
}
public void setLoraEncodingRate(Integer loraEncodingRate) {
this.loraEncodingRate = loraEncodingRate;
}
public String getCimei() {
return cimei;
}
public void setCimei(String cimei) {
this.cimei = cimei == null ? null : cimei.trim();
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table oc_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
imei("imei", "imei", "VARCHAR", false),
typename("typeName", "typename", "VARCHAR", false),
devicetype("deviceType", "devicetype", "INTEGER", false),
collectiongap("collectionGap", "collectiongap", "INTEGER", false),
sendinggap("sendingGap", "sendinggap", "INTEGER", false),
urladdress("urlAddress", "urladdress", "VARCHAR", false),
port("port", "port", "VARCHAR", false),
unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false),
unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false),
unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false),
multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false),
multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false),
multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false),
controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false),
starttime("startTime", "starttime", "VARCHAR", false),
endtime("endTime", "endtime", "VARCHAR", false),
numdays("numDays", "numdays", "INTEGER", false),
switchingvalue("switchingValue", "switchingvalue", "INTEGER", false),
stopreporting("stopReporting", "stopreporting", "INTEGER", false),
softwareversions("softwareVersions", "softwareversions", "VARCHAR", false),
hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false),
imsi("IMSI", "imsi", "VARCHAR", false),
apn("APN", "apn", "VARCHAR", false),
time("time", "time", "TIMESTAMP", false),
autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false),
autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false),
selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false),
collide("collide", "collide", "INTEGER", false),
lean("lean", "lean", "INTEGER", false),
loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false),
loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false),
loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false),
loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false),
cimei("cimei", "cimei", "VARCHAR", false);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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 oc_config
*
* @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;
}
}
}
}