⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 articlebean.java

📁 我的博客
💻 JAVA
字号:
package com.yxq.valuebean;

public class ArticleBean
{
	private int id = -1;     		// 文章ID
	private int typeId = -1;		// 所属类别
	private String title = "";		// 标题
	private String content = "";	// 内容
	private String sdTime = "";		// 发表时间
	private String create = "";		// 文章来源
	private String info = "";		//	文章描述
	private int review = 0;			//	????
	private int count = 0;			// 访问次数

	public int getId()  // id bean;
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}
	
	public int getTypeId()  // typeId bean;
	{
		return typeId;
	}

	public void setTypeId(int typeId)
	{
		this.typeId = typeId;
	}
	
	public String getTitle()  // titel bean;
	{
		return title;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	// titel 方法 限制文章标题的长度
	public String getTitle(int len)  								
	{
		if (len <= 0 || len > title.length())
			len = title.length();
		return title.substring(0, len) + "...";
	}
	
	public String getContent()  // content bean;
	{
		return content;
	}
	
	public void setContent(String content)
	{
		this.content = content;
	}
	
	// content 方法 限制文章内容
	public String getContent(int len)
	{
		if (len <= 0 || len > content.length())
			len = content.length();
		return content.substring(0, len) + "...";
	}
	
	public String getSdTime()  // sdTime bean;
	{
		return sdTime;
	}

	public void setSdTime(String sdTime)
	{
		this.sdTime = sdTime;
	}
	
	public String getCreate()  // create bean;
	{
		return create;
	}

	public void setCreate(String create)
	{
		this.create = create;
	}
	
	public String getInfo()  // info bean;
	{
		return info;
	}

	public void setInfo(String info)
	{
		this.info = info;
	}
	
	public int getReview() // review bean;
	{
		return review;
	}

	public void setReview(int review)
	{
		this.review = review;
	}

	public int getCount()  // count bean;
	{
		return count;
	}

	public void setCount(int count)
	{
		this.count = count;
	}
}

⌨️ 快捷键说明

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