📄 article.java
字号:
package com.andrew.elements;
import java.sql.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Article {
private int id;
private int pid;
private long rootid;
private String title;
private String content;
private Date publishdate;
private boolean isLeaf;
private String username;
private int grade;// 树状结构时用于展现层次结构
public void init(HttpServletRequest request, HttpServletResponse response) {
}
/**
* @return the rootid
*/
public long getRootid() {
return rootid;
}
/**
* @param rootid
* the rootid to set
*/
public void setRootid(long rootid) {
this.rootid = rootid;
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id
* the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the pid
*/
public int getPid() {
return pid;
}
/**
* @param pid
* the pid to set
*/
public void setPid(int pid) {
this.pid = pid;
}
/**
* @return the title
*/
public String getTitle() {
return title;
}
/**
* @param title
* the title to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return the content
*/
public String getContent() {
return content;
}
/**
* @param content
* the content to set
*/
public void setContent(String content) {
this.content = content;
}
/**
* @return the isLeaf
*/
public boolean isLeaf() {
return isLeaf;
}
/**
* @param isLeaf
* the isLeaf to set
*/
public void setLeaf(boolean isLeaf) {
this.isLeaf = isLeaf;
}
/**
* @return the grade
*/
public int getGrade() {
return grade;
}
/**
* @param grade
* the grade to set
*/
public void setGrade(int grade) {
this.grade = grade;
}
/**
* @return the publishdate
*/
public Date getPublishdate() {
return publishdate;
}
/**
* @param publishdate the publishdate to set
*/
public void setPublishdate(Date publishdate) {
this.publishdate = publishdate;
}
/**
* @return the username
*/
public String getUsername() {
return username;
}
/**
* @param username the username to set
*/
public void setUsername(String username) {
this.username = username;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -