1 package org.apache.ojb.ejb; 2 3 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 29 public class CategoryVO implements Serializable 30 { 31 private Integer objId; 32 private String categoryName; 33 private String description; 34 private Collection assignedArticles; 35 36 public CategoryVO(Integer categoryId, String categoryName, String 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 getAssignedArticles() 48 { 49 return assignedArticles; 50 } 51 52 public void setAssignedArticles(Collection assignedArticles) 53 { 54 this.assignedArticles = assignedArticles; 55 } 56 57 public Integer getObjId() 58 { 59 return objId; 60 } 61 62 public void setObjId(Integer objId) 63 { 64 this.objId = objId; 65 } 66 67 public String getCategoryName() 68 { 69 return categoryName; 70 } 71 72 public void setCategoryName(String categoryName) 73 { 74 this.categoryName = categoryName; 75 } 76 77 public String getDescription() 78 { 79 return description; 80 } 81 82 public void setDescription(String description) 83 { 84 this.description = description; 85 } 86 87 public String 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 |