posttext.java
来自「javaBB,一套很不錯的JSP源碼,特共享給大家」· Java 代码 · 共 64 行
JAVA
64 行
package org.javabb.vo;
import java.util.Date;
public class PostText extends Post {
private static final long serialVersionUID = 1L;
public String postBody;
/*
* Used on search
*/
public PostText(Long topicId, Integer pageLastPost, Long postId, String titleTopic,
Long forumId, String forumName, Date postDate, Long userId, String userName,
Integer replies, Integer views, String postBody){
Topic topic = new Topic();
topic.setId(topicId);
topic.setPageLastPost(pageLastPost);
topic.setTitleTopic(titleTopic);
topic.setRespostas(replies);
topic.setVisualizacoes(views);
Forum forum = new Forum();
forum.setId(forumId);
forum.setNome(forumName);
topic.setForum(forum);
this.setTopic(topic);
User user = new User();
user.setIdUser(userId);
user.setUser(userName);
this.setUser(user);
this.setIdPost(postId);
this.setPostDate(postDate);
this.setPostBody(postBody);
}
public PostText(){
}
public PostText(Long _pId){
setId(_pId);
}
/**
* @return Returns the postBody.
*/
public String getPostBody() {
return postBody;
}
/**
* @param postBody The postBody to set.
*/
public void setPostBody(String postBody) {
this.postBody = postBody;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?