1    package geekblog;
2    
3    
4    public class BlogComment
5      implements java.io.Serializable
6    {
7      private long EntryID;
8      private String Name;
9      private String EMail;
10     private String Comment;
11     
12   
13     public BlogComment(long entryID, String name, String comment)
14     {
15       this(entryID, name, null, comment);
16     }
17     public BlogComment(long entryID, String name, String email, String comment)
18     {
19       EntryID = entryID;
20       Name = name;
21       EMail = email;
22       Comment = comment;
23     }
24   
25   
26     /**
27      * Return the ID of the BlogEntry this is a comment on.
28      */
29     public long getEntryID()
30     { return EntryID; }
31   
32   
33     /**
34      * Return the Name property
35      */
36     public String getName()
37     { return Name; }
38     /**
39      * Set the Name property
40      */
41     public void setName(String value)
42     { Name = value; }
43   
44   
45     /**
46      * Return the EMail property
47      */
48     public String getEMail()
49     { return EMail; }
50     /**
51      * Set the EMail property
52      */
53     public void setEMail(String value)
54     { EMail = value; }
55   
56   
57     /**
58      * Return the Comment property
59      */
60     public String getComment()
61     { return Comment; }
62     /**
63      * Set the Comment property
64      */
65     public void setComment(String value)
66     { Comment = value; }
67   }
68