|
|
@@ -0,0 +1,155 @@
|
|
|
+package seecoder.devcloud.web.po;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+import seecoder.devcloud.web.enums.State;
|
|
|
+import seecoder.devcloud.web.enums.Type;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+public class TreeNode {
|
|
|
+ private int id;
|
|
|
+ private String title;
|
|
|
+ private String description;
|
|
|
+ private Type type;
|
|
|
+ private int priority;
|
|
|
+ private State state;
|
|
|
+ private String processor;
|
|
|
+ private int time_to_take;
|
|
|
+ private Date start_time;
|
|
|
+ private Date end_time;
|
|
|
+ private boolean is_leaf;
|
|
|
+ private int group_id;
|
|
|
+
|
|
|
+ public TreeNode() {
|
|
|
+ }
|
|
|
+
|
|
|
+ public TreeNode(int id, String title, String description, Type type, int priority, State state, String processor, int time_to_take, Date start_time, Date end_time, boolean is_leaf, int group_id) {
|
|
|
+ this.id = id;
|
|
|
+ this.title = title;
|
|
|
+ this.description = description;
|
|
|
+ this.type = type;
|
|
|
+ this.priority = priority;
|
|
|
+ this.state = state;
|
|
|
+ this.processor = processor;
|
|
|
+ this.time_to_take = time_to_take;
|
|
|
+ this.start_time = start_time;
|
|
|
+ this.end_time = end_time;
|
|
|
+ this.is_leaf = is_leaf;
|
|
|
+ this.group_id = group_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(int id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTitle() {
|
|
|
+ return title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTitle(String title) {
|
|
|
+ this.title = title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDescription() {
|
|
|
+ return description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDescription(String description) {
|
|
|
+ this.description = description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Type getType() {
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setType(Type type) {
|
|
|
+ this.type = type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getPriority() {
|
|
|
+ return priority;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPriority(int priority) {
|
|
|
+ this.priority = priority;
|
|
|
+ }
|
|
|
+
|
|
|
+ public State getState() {
|
|
|
+ return state;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setState(State state) {
|
|
|
+ this.state = state;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProcessor() {
|
|
|
+ return processor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProcessor(String processor) {
|
|
|
+ this.processor = processor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getTime_to_take() {
|
|
|
+ return time_to_take;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTime_to_take(int time_to_take) {
|
|
|
+ this.time_to_take = time_to_take;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getStart_time() {
|
|
|
+ return start_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStart_time(Date start_time) {
|
|
|
+ this.start_time = start_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getEnd_time() {
|
|
|
+ return end_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEnd_time(Date end_time) {
|
|
|
+ this.end_time = end_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isIs_leaf() {
|
|
|
+ return is_leaf;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIs_leaf(boolean is_leaf) {
|
|
|
+ this.is_leaf = is_leaf;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getGroup_id() {
|
|
|
+ return group_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGroup_id(int group_id) {
|
|
|
+ this.group_id = group_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "TreeNode{" +
|
|
|
+ "id=" + id +
|
|
|
+ ", title='" + title + '\'' +
|
|
|
+ ", description='" + description + '\'' +
|
|
|
+ ", type=" + type +
|
|
|
+ ", priority=" + priority +
|
|
|
+ ", state=" + state +
|
|
|
+ ", processor='" + processor + '\'' +
|
|
|
+ ", time_to_take=" + time_to_take +
|
|
|
+ ", start_time=" + start_time +
|
|
|
+ ", end_time=" + end_time +
|
|
|
+ ", is_leaf=" + is_leaf +
|
|
|
+ ", group_id=" + group_id +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
+}
|