?? information.java
字號:
package com.longtime.wap.model;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* 數(shù)據(jù)庫信息表元素描述
*
* @author bulc
* @date Nov 1, 2007
*/
public class Information implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private long informationId;
private Business business;
private String title;
private Date pubDate;
private int isPub;
private int isHot;
private int isRecommend;
private double price;
private String content;
private String filePath;
private Date regDate;
private long payCount;
private Set userInfos = new HashSet();
/**
* 獲取用戶信息對象
*
* @return 用戶信息對象
*/
public Set getUserInfos() {
return userInfos;
}
/**設(shè)置用戶信息對象
*
* @param userInfos
* 用戶信息對象
*/
public void setUserInfos(Set userInfos) {
this.userInfos = userInfos;
}
/**
* 構(gòu)造函數(shù)
*
*/
public Information() {
}
/**
* 獲取信息編號
*
* @return 信息編號
*/
public long getInformationId() {
return this.informationId;
}
/**
* 設(shè)置信息編號
*
* @param informationId
* 信息編號
*/
public void setInformationId(long informationId) {
this.informationId = informationId;
}
/**
* 獲取業(yè)務(wù)名稱
*
* @return 業(yè)務(wù)名稱
*/
public Business getBusiness() {
return this.business;
}
/**
* 設(shè)置業(yè)務(wù)名稱
*
* @param business
* 業(yè)務(wù)名稱
*/
public void setBusiness(Business business) {
this.business = business;
}
/**
* 獲取信息標(biāo)題
*
* @return 信息標(biāo)題
*/
public String getTitle() {
return this.title;
}
/**
* 設(shè)置信息標(biāo)題
*
* @param title
* 信息標(biāo)題
*/
public void setTitle(String title) {
this.title = title;
}
/**
* 獲取信息發(fā)布日期
*
* @return 信息發(fā)布日期
*/
public Date getPubDate() {
return this.pubDate;
}
/**
* 設(shè)置信息發(fā)布日期
*
* @param pubDate
* 信息發(fā)布日期
*/
public void setPubDate(Date pubDate) {
this.pubDate = pubDate;
}
/**
* 獲取信息是否發(fā)布
*
* @return 信息是否發(fā)布
*/
public int getIsPub() {
return this.isPub;
}
/**
* 設(shè)置信息是否發(fā)布
*
* @param isPub
* 是否發(fā)布
*/
public void setIsPub(int isPub) {
this.isPub = isPub;
}
/**
* 獲取信息是否熱點(diǎn)
*
* @return 信息是否熱點(diǎn)
*/
public int getIsHot() {
return this.isHot;
}
/**
* 設(shè)置信息是否熱點(diǎn)
*
* @param isHot
* 是否熱點(diǎn)
*/
public void setIsHot(int isHot) {
this.isHot = isHot;
}
/**
* 獲取信息是否被推薦
*
* @return 信息是否被推薦
*/
public int getIsRecommend() {
return this.isRecommend;
}
/**
* 設(shè)置信息是否被推薦
*
* @param isRecommend
* 是否推薦
*/
public void setIsRecommend(int isRecommend) {
this.isRecommend = isRecommend;
}
/**
* 獲取信息價(jià)格
*
* @return 信息價(jià)格
*/
public double getPrice() {
return this.price;
}
/**
* 設(shè)置信息價(jià)格
*
* @param price
* 信息價(jià)格
*/
public void setPrice(double price) {
this.price = price;
}
/**
* 獲取信息詳細(xì)內(nèi)容
*
* @return 信息詳細(xì)內(nèi)容
*/
public String getContent() {
return this.content;
}
/**
* 設(shè)置信息詳細(xì)內(nèi)容
*
* @param content
* 信息詳細(xì)內(nèi)容
*/
public void setContent(String content) {
this.content = content;
}
/**
* 獲取信息中文件上傳路徑
*
* @return 文件上傳路徑
*/
public String getFilePath() {
return this.filePath;
}
/**
* 設(shè)置信息中文件上傳路徑
*
* @param filePath
* 文件上傳路徑
*/
public void setFilePath(String filePath) {
this.filePath = filePath;
}
/**
* 獲取信息的購買量
*
* @return 信息購買量
*/
public long getPayCount() {
return this.payCount;
}
/**
* 設(shè)置信息的購買量
*
* @param payCount
* 信息購買量
*/
public void setPayCount(long payCount) {
this.payCount = payCount;
}
/**
* 獲取信息購買時間
*
* @return 信息購買時間
*/
public Date getRegDate() {
return regDate;
}
/**
* 設(shè)置信息購買時間
*
* @param regDate
* 信息購買時間
*/
public void setRegDate(Date regDate) {
this.regDate = regDate;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -