01: package org.apache.ojb.ejb;
02:
03: /* Copyright 2003-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * 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;
19: import java.util.Collection;
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 {
30: private Integer objId;
31: private String categoryName;
32: private String description;
33: private Collection assignedArticles;
34:
35: public CategoryVO(Integer categoryId, String categoryName,
36: String description) {
37: this .objId = categoryId;
38: this .categoryName = categoryName;
39: this .description = description;
40: }
41:
42: public CategoryVO() {
43: }
44:
45: public Collection getAssignedArticles() {
46: return assignedArticles;
47: }
48:
49: public void setAssignedArticles(Collection assignedArticles) {
50: this .assignedArticles = assignedArticles;
51: }
52:
53: public Integer getObjId() {
54: return objId;
55: }
56:
57: public void setObjId(Integer objId) {
58: this .objId = objId;
59: }
60:
61: public String getCategoryName() {
62: return categoryName;
63: }
64:
65: public void setCategoryName(String categoryName) {
66: this .categoryName = categoryName;
67: }
68:
69: public String getDescription() {
70: return description;
71: }
72:
73: public void setDescription(String description) {
74: this .description = description;
75: }
76:
77: public String toString() {
78: ToStringBuilder buf = new ToStringBuilder(this ,
79: ToStringStyle.MULTI_LINE_STYLE);
80: buf.append("objId", objId).append("categoryName", categoryName)
81: .append("description", description).append(
82: "assignedArticles", assignedArticles);
83: return buf.toString();
84: }
85: }
|