📄 messagebean.java
字号:
package ksnb;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.Statement;
public class MessageBean {
private String content,author;
private int book;
private java.sql.Date datetime;
private int id;
public MessageBean()
{
this.id=0;
this.book=0;
this.content=null;
this.author=null;
this.datetime=null;
}
public void setBook(int book)
{
this.book=book;
}
public void setId(int id)
{
this.id=id;
}
public void setContent(String content)
{
this.content=content;
}
public void setAuthor(String author)
{
this.author=author;
}
public void setDatetime(java.sql.Date date)
{
this.datetime=date;
}
public String getContent()
{
return content;
}
public String getAuthor()
{
return author;
}
public java.sql.Date getDatetime()
{
return datetime;
}
public int getBook()
{
return book;
}
public int getId() {
return id;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -