bbs.java

来自「要实现功能有:发帖」· Java 代码 · 共 57 行

JAVA
57
字号
package bean;
/**
 * 数据库中的bbs表
 * */
import java.sql.*;
public class Bbs {
	
	private int bid;
	
	private String btitle;
	
	private String author;
	
	private Timestamp bdate;
	
	public Bbs() {}

	public Bbs(int bid, String btitle, String author, Timestamp bdate) {
		this.bid = bid;
		this.btitle = btitle;
		this.author = author;
		this.bdate = bdate;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Timestamp getBdate() {
		return bdate;
	}

	public void setBdate(Timestamp bdate) {
		this.bdate = bdate;
	}

	public int getBid() {
		return bid;
	}

	public void setBid(int bid) {
		this.bid = bid;
	}

	public String getBtitle() {
		return btitle;
	}

	public void setBtitle(String btitle) {
		this.btitle = btitle;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?