📄 searchmodel.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package biz.tbuy.bbs;import java.io.Serializable;/** * * @author Administrator */public class SearchModel implements Serializable{ private String _keyword; // 关键字 private boolean _byTitle; // 通过标题关建字 private boolean _byContent; // 通过正文 private boolean _byUserid; // 通过用户id private String _orderKey; // 排序方式 asc or desc private String _orderType; // 升降序 private int _length; // 主体内容截取长度 public SearchModel() { _orderKey = "t_num"; _orderType = "desc"; _length = 280; } /** 设置搜索关键字 */ public void setKeyword(String keyword) { _keyword = keyword; } /** 获取搜索关键字 */ public String getKeyword() { return _keyword; } /** 设置是否通过标题字段搜索 */ public void setByTitle(boolean byTitle) { _byTitle = byTitle; } /** 获取是否通过标题字段搜索 */ public boolean getByTitle() { return _byTitle; } /** 设置是否通过主体内容字段搜索 */ public void setByContent(boolean byContent) { _byContent = byContent; } /** 获取是否通过主体内容字段搜索 */ public boolean getByContent() { return _byContent; } /** 设置是否通过作者id字段搜索 */ public void setByUserid(boolean byUserid) { _byUserid = byUserid; } /** 获取是否通过作者id字段搜索 */ public boolean getByUserid() { return _byUserid; } // ------------------------------------------------------------ 排序 /** 设置排序关键字段 */ public void setOrderKey(String orderKey) { _orderKey = orderKey; } /** 获取排序关键字段 */ public String getOrderKey() { return _orderKey; } /** 设置排序关键字段的升降序类型(asc|desc) */ public void setOrderType(String orderType) { _orderType = orderType; } /** 获取排序关键字段的升降序类型(asc|desc) */ public String getOrderType() { return _orderType; } /** 设置主体内容的截取长度 */ public void setLength(int length) { _length = length; } /** 获取主体内容的截取长度 */ public int getLength() { return _length; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -