KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > ejb > CategoryVO


1 package org.apache.ojb.ejb;
2
3 /* Copyright 2003-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 import java.io.Serializable JavaDoc;
19 import java.util.Collection JavaDoc;
20
21 import org.apache.commons.lang.builder.ToStringBuilder;
22 import org.apache.commons.lang.builder.ToStringStyle;
23
24 /**
25  *
26  * @author <a HREF="mailto:armin@codeAuLait.de">Armin Waibel</a>
27  * @version $Id: CategoryVO.java,v 1.6.2.1 2005/12/21 22:21:38 tomdz Exp $
28  */

29 public class CategoryVO implements Serializable JavaDoc
30 {
31     private Integer JavaDoc objId;
32     private String JavaDoc categoryName;
33     private String JavaDoc description;
34     private Collection JavaDoc assignedArticles;
35
36     public CategoryVO(Integer JavaDoc categoryId, String JavaDoc categoryName, String JavaDoc description)
37     {
38         this.objId = categoryId;
39         this.categoryName = categoryName;
40         this.description = description;
41     }
42
43     public CategoryVO()
44     {
45     }
46
47     public Collection JavaDoc getAssignedArticles()
48     {
49         return assignedArticles;
50     }
51
52     public void setAssignedArticles(Collection JavaDoc assignedArticles)
53     {
54         this.assignedArticles = assignedArticles;
55     }
56
57     public Integer JavaDoc getObjId()
58     {
59         return objId;
60     }
61
62     public void setObjId(Integer JavaDoc objId)
63     {
64         this.objId = objId;
65     }
66
67     public String JavaDoc getCategoryName()
68     {
69         return categoryName;
70     }
71
72     public void setCategoryName(String JavaDoc categoryName)
73     {
74         this.categoryName = categoryName;
75     }
76
77     public String JavaDoc getDescription()
78     {
79         return description;
80     }
81
82     public void setDescription(String JavaDoc description)
83     {
84         this.description = description;
85     }
86
87     public String JavaDoc toString()
88     {
89         ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
90         buf.append("objId", objId).
91                 append("categoryName", categoryName).
92                 append("description", description).
93                 append("assignedArticles", assignedArticles);
94         return buf.toString();
95     }
96 }
97
Popular Tags