package com.northglass.entity;
|
|
import javax.persistence.Entity;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import com.northglass.listener.ServerConnection;
|
|
@Entity
|
@Table(name="gmms_shelf")
|
public class Shelf extends IdEntity {
|
|
private String number;
|
private String state;
|
private String connectState;
|
private int port;
|
private String ipAddress;
|
private ServerConnection serverConnection = new ServerConnection();
|
private Thread controlThread;
|
|
public Shelf() { }
|
|
public Shelf(String number, String state, String connectState, int port,String ipAddress) {
|
this.number = number;
|
this.state = state;
|
this.connectState = connectState;
|
this.port = port;
|
this.ipAddress = ipAddress;
|
}
|
|
public String getConnectState() {
|
return connectState;
|
}
|
|
public void setConnectState(String connectState) {
|
this.connectState = connectState;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public int getPort() {
|
return port;
|
}
|
|
public void setPort(int port) {
|
this.port = port;
|
}
|
|
public String getNumber() {
|
return number;
|
}
|
|
public void setNumber(String number) {
|
this.number = number;
|
}
|
|
public String getIpAddress() {
|
return ipAddress;
|
}
|
|
public void setIpAddress(String ipAddress) {
|
this.ipAddress = ipAddress;
|
}
|
|
@Transient
|
public ServerConnection getServerConnection() {
|
return serverConnection;
|
}
|
|
public void setServerConnection(ServerConnection serverConnection) {
|
this.serverConnection = serverConnection;
|
}
|
|
@Transient
|
public Thread getControlThread() {
|
return controlThread;
|
}
|
|
public void setControlThread(Thread controlThread) {
|
this.controlThread = controlThread;
|
}
|
}
|