@Entity
public class SensorDataEntity
extends java.lang.Object
SensorDataRepository
,
SensorWrapper
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
dataJson |
|
private int |
id |
|
private static int |
MAX_DATA_JSON_LEN |
must be less than the maximum column length of VARCHAR field in mySQL.
|
private SensorEntity |
sensorBySensorIp |
|
private java.lang.String |
sensorIp |
|
private java.util.Date |
timeStamp |
Constructor | Description |
---|---|
SensorDataEntity() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getDataJson() |
|
int |
getId() |
|
SensorEntity |
getSensorBySensorIp() |
|
java.lang.String |
getSensorIp() |
|
java.util.Date |
getTimeStamp() |
|
int |
hashCode() |
|
void |
setDataJson(java.lang.String dataJson) |
|
void |
setId(int id) |
|
void |
setSensorBySensorIp(SensorEntity sensorBySensorIp) |
|
void |
setSensorIp(java.lang.String sensorIp) |
|
void |
setTimeStamp(java.util.Date timeStamp) |
|
java.lang.String |
toString() |
private static final int MAX_DATA_JSON_LEN
private int id
private java.lang.String sensorIp
private java.util.Date timeStamp
private java.lang.String dataJson
private SensorEntity sensorBySensorIp
public int getId()
public void setId(int id)
public java.lang.String getSensorIp()
public void setSensorIp(java.lang.String sensorIp)
public java.util.Date getTimeStamp()
public void setTimeStamp(java.util.Date timeStamp)
public java.lang.String getDataJson()
public void setDataJson(java.lang.String dataJson)
public SensorEntity getSensorBySensorIp()
public void setSensorBySensorIp(SensorEntity sensorBySensorIp)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object