1
14
15 package com.liferay.portlet.messageboards.model;
16
17 import java.io.Serializable;
18
19 import java.util.ArrayList;
20 import java.util.Date;
21 import java.util.List;
22
23
40 public class MBCategorySoap implements Serializable {
41 public static MBCategorySoap toSoapModel(MBCategory model) {
42 MBCategorySoap soapModel = new MBCategorySoap();
43
44 soapModel.setUuid(model.getUuid());
45 soapModel.setCategoryId(model.getCategoryId());
46 soapModel.setGroupId(model.getGroupId());
47 soapModel.setCompanyId(model.getCompanyId());
48 soapModel.setUserId(model.getUserId());
49 soapModel.setUserName(model.getUserName());
50 soapModel.setCreateDate(model.getCreateDate());
51 soapModel.setModifiedDate(model.getModifiedDate());
52 soapModel.setParentCategoryId(model.getParentCategoryId());
53 soapModel.setName(model.getName());
54 soapModel.setDescription(model.getDescription());
55 soapModel.setThreadCount(model.getThreadCount());
56 soapModel.setMessageCount(model.getMessageCount());
57 soapModel.setLastPostDate(model.getLastPostDate());
58
59 return soapModel;
60 }
61
62 public static MBCategorySoap[] toSoapModels(MBCategory[] models) {
63 MBCategorySoap[] soapModels = new MBCategorySoap[models.length];
64
65 for (int i = 0; i < models.length; i++) {
66 soapModels[i] = toSoapModel(models[i]);
67 }
68
69 return soapModels;
70 }
71
72 public static MBCategorySoap[][] toSoapModels(MBCategory[][] models) {
73 MBCategorySoap[][] soapModels = null;
74
75 if (models.length > 0) {
76 soapModels = new MBCategorySoap[models.length][models[0].length];
77 }
78 else {
79 soapModels = new MBCategorySoap[0][0];
80 }
81
82 for (int i = 0; i < models.length; i++) {
83 soapModels[i] = toSoapModels(models[i]);
84 }
85
86 return soapModels;
87 }
88
89 public static MBCategorySoap[] toSoapModels(List<MBCategory> models) {
90 List<MBCategorySoap> soapModels = new ArrayList<MBCategorySoap>(models.size());
91
92 for (MBCategory model : models) {
93 soapModels.add(toSoapModel(model));
94 }
95
96 return soapModels.toArray(new MBCategorySoap[soapModels.size()]);
97 }
98
99 public MBCategorySoap() {
100 }
101
102 public long getPrimaryKey() {
103 return _categoryId;
104 }
105
106 public void setPrimaryKey(long pk) {
107 setCategoryId(pk);
108 }
109
110 public String getUuid() {
111 return _uuid;
112 }
113
114 public void setUuid(String uuid) {
115 _uuid = uuid;
116 }
117
118 public long getCategoryId() {
119 return _categoryId;
120 }
121
122 public void setCategoryId(long categoryId) {
123 _categoryId = categoryId;
124 }
125
126 public long getGroupId() {
127 return _groupId;
128 }
129
130 public void setGroupId(long groupId) {
131 _groupId = groupId;
132 }
133
134 public long getCompanyId() {
135 return _companyId;
136 }
137
138 public void setCompanyId(long companyId) {
139 _companyId = companyId;
140 }
141
142 public long getUserId() {
143 return _userId;
144 }
145
146 public void setUserId(long userId) {
147 _userId = userId;
148 }
149
150 public String getUserName() {
151 return _userName;
152 }
153
154 public void setUserName(String userName) {
155 _userName = userName;
156 }
157
158 public Date getCreateDate() {
159 return _createDate;
160 }
161
162 public void setCreateDate(Date createDate) {
163 _createDate = createDate;
164 }
165
166 public Date getModifiedDate() {
167 return _modifiedDate;
168 }
169
170 public void setModifiedDate(Date modifiedDate) {
171 _modifiedDate = modifiedDate;
172 }
173
174 public long getParentCategoryId() {
175 return _parentCategoryId;
176 }
177
178 public void setParentCategoryId(long parentCategoryId) {
179 _parentCategoryId = parentCategoryId;
180 }
181
182 public String getName() {
183 return _name;
184 }
185
186 public void setName(String name) {
187 _name = name;
188 }
189
190 public String getDescription() {
191 return _description;
192 }
193
194 public void setDescription(String description) {
195 _description = description;
196 }
197
198 public int getThreadCount() {
199 return _threadCount;
200 }
201
202 public void setThreadCount(int threadCount) {
203 _threadCount = threadCount;
204 }
205
206 public int getMessageCount() {
207 return _messageCount;
208 }
209
210 public void setMessageCount(int messageCount) {
211 _messageCount = messageCount;
212 }
213
214 public Date getLastPostDate() {
215 return _lastPostDate;
216 }
217
218 public void setLastPostDate(Date lastPostDate) {
219 _lastPostDate = lastPostDate;
220 }
221
222 private String _uuid;
223 private long _categoryId;
224 private long _groupId;
225 private long _companyId;
226 private long _userId;
227 private String _userName;
228 private Date _createDate;
229 private Date _modifiedDate;
230 private long _parentCategoryId;
231 private String _name;
232 private String _description;
233 private int _threadCount;
234 private int _messageCount;
235 private Date _lastPostDate;
236 }