KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dlog4j > formbean > TrackBackForm


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

16 package dlog4j.formbean;
17
18 import java.util.Date JavaDoc;
19
20 /**
21  * TrackBackÏî
22  * @author Liudong
23  */

24 public class TrackBackForm extends DlogActionForm {
25
26     public final static String JavaDoc ERROR_KEY = "message";
27     
28     int id;
29     String JavaDoc title;
30     String JavaDoc excerpt;
31     String JavaDoc url;
32     String JavaDoc blog_name;
33     String JavaDoc remoteAddr;
34     Date JavaDoc refTime;
35     LogForm log;
36     
37     public int getLog_id() {
38         return (log!=null)?log.getId():-1;
39     }
40     public void setLog_id(int log_id) {
41         if(log==null)
42             log = new LogForm();
43         log.setId(log_id);
44     }
45     
46     public String JavaDoc getBlog_name() {
47         return blog_name;
48     }
49     public void setBlog_name(String JavaDoc blog_name) {
50         this.blog_name = blog_name;
51     }
52     public String JavaDoc getExcerpt() {
53         return excerpt;
54     }
55     public void setExcerpt(String JavaDoc excerpt) {
56         this.excerpt = excerpt;
57     }
58     public String JavaDoc getTitle() {
59         return title;
60     }
61     public void setTitle(String JavaDoc title) {
62         this.title = title;
63     }
64     public String JavaDoc getUrl() {
65         return url;
66     }
67     public void setUrl(String JavaDoc url) {
68         this.url = url;
69     }
70     public Date JavaDoc getRefTime() {
71         return refTime;
72     }
73     public void setRefTime(Date JavaDoc refTime) {
74         this.refTime = refTime;
75     }
76     public String JavaDoc getRemoteAddr() {
77         return remoteAddr;
78     }
79     public void setRemoteAddr(String JavaDoc remoteAddr) {
80         this.remoteAddr = remoteAddr;
81     }
82     public LogForm getLog() {
83         return log;
84     }
85     public void setLog(LogForm log) {
86         this.log = log;
87     }
88     public int getId() {
89         return id;
90     }
91     public void setId(int id) {
92         this.id = id;
93     }
94 }
95
Popular Tags