package com.sx.mas.beans;
public class TreeNode {
private int tid;
private int pid;
private String tname;
private int isleaf;
public int getTid() {
return tid;
}
public void setTid(int tid) {
this.tid = tid;
}
public int getPid() {
return pid;
}
public void setPid(int pid) {
this.pid = pid;
}
public String getTname() {
return tname;
}
public void setTname(String tname) {
this.tname = tname;
}
public int getIsleaf() {
return isleaf;
}
public void setIsleaf(int isleaf) {
this.isleaf = isleaf;
}
}
package com.sx.mas.beans;
public class TreeNode {
private int tid;
private int pid;
private String tname;
private int isleaf;
public int getTid() {
return tid;
}
public void setTid(int tid) {
this.tid = tid;
}
public int getPid() {
return pid;
}
public void setPid(int pid) {
this.pid = pid;
}
public String getTname() {
return tname;
}
public void setTname(String tname) {
this.tname = tname;
}
public int getIsleaf() {
return isleaf;
}
public void setIsleaf(int isleaf) {
this.isleaf = isleaf;
}
}
第六步:创建相关的DAO类,代码如下。DAO类将数据库表装保存到Vector对象中。
复制代码 代码如下: