001
014
015 package com.liferay.portlet.messageboards.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
030 public class MBCategorySoap implements Serializable {
031 public static MBCategorySoap toSoapModel(MBCategory model) {
032 MBCategorySoap soapModel = new MBCategorySoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setCategoryId(model.getCategoryId());
036 soapModel.setGroupId(model.getGroupId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setModifiedDate(model.getModifiedDate());
042 soapModel.setParentCategoryId(model.getParentCategoryId());
043 soapModel.setName(model.getName());
044 soapModel.setDescription(model.getDescription());
045 soapModel.setThreadCount(model.getThreadCount());
046 soapModel.setMessageCount(model.getMessageCount());
047 soapModel.setLastPostDate(model.getLastPostDate());
048
049 return soapModel;
050 }
051
052 public static MBCategorySoap[] toSoapModels(MBCategory[] models) {
053 MBCategorySoap[] soapModels = new MBCategorySoap[models.length];
054
055 for (int i = 0; i < models.length; i++) {
056 soapModels[i] = toSoapModel(models[i]);
057 }
058
059 return soapModels;
060 }
061
062 public static MBCategorySoap[][] toSoapModels(MBCategory[][] models) {
063 MBCategorySoap[][] soapModels = null;
064
065 if (models.length > 0) {
066 soapModels = new MBCategorySoap[models.length][models[0].length];
067 }
068 else {
069 soapModels = new MBCategorySoap[0][0];
070 }
071
072 for (int i = 0; i < models.length; i++) {
073 soapModels[i] = toSoapModels(models[i]);
074 }
075
076 return soapModels;
077 }
078
079 public static MBCategorySoap[] toSoapModels(List<MBCategory> models) {
080 List<MBCategorySoap> soapModels = new ArrayList<MBCategorySoap>(models.size());
081
082 for (MBCategory model : models) {
083 soapModels.add(toSoapModel(model));
084 }
085
086 return soapModels.toArray(new MBCategorySoap[soapModels.size()]);
087 }
088
089 public MBCategorySoap() {
090 }
091
092 public long getPrimaryKey() {
093 return _categoryId;
094 }
095
096 public void setPrimaryKey(long pk) {
097 setCategoryId(pk);
098 }
099
100 public String getUuid() {
101 return _uuid;
102 }
103
104 public void setUuid(String uuid) {
105 _uuid = uuid;
106 }
107
108 public long getCategoryId() {
109 return _categoryId;
110 }
111
112 public void setCategoryId(long categoryId) {
113 _categoryId = categoryId;
114 }
115
116 public long getGroupId() {
117 return _groupId;
118 }
119
120 public void setGroupId(long groupId) {
121 _groupId = groupId;
122 }
123
124 public long getCompanyId() {
125 return _companyId;
126 }
127
128 public void setCompanyId(long companyId) {
129 _companyId = companyId;
130 }
131
132 public long getUserId() {
133 return _userId;
134 }
135
136 public void setUserId(long userId) {
137 _userId = userId;
138 }
139
140 public String getUserName() {
141 return _userName;
142 }
143
144 public void setUserName(String userName) {
145 _userName = userName;
146 }
147
148 public Date getCreateDate() {
149 return _createDate;
150 }
151
152 public void setCreateDate(Date createDate) {
153 _createDate = createDate;
154 }
155
156 public Date getModifiedDate() {
157 return _modifiedDate;
158 }
159
160 public void setModifiedDate(Date modifiedDate) {
161 _modifiedDate = modifiedDate;
162 }
163
164 public long getParentCategoryId() {
165 return _parentCategoryId;
166 }
167
168 public void setParentCategoryId(long parentCategoryId) {
169 _parentCategoryId = parentCategoryId;
170 }
171
172 public String getName() {
173 return _name;
174 }
175
176 public void setName(String name) {
177 _name = name;
178 }
179
180 public String getDescription() {
181 return _description;
182 }
183
184 public void setDescription(String description) {
185 _description = description;
186 }
187
188 public int getThreadCount() {
189 return _threadCount;
190 }
191
192 public void setThreadCount(int threadCount) {
193 _threadCount = threadCount;
194 }
195
196 public int getMessageCount() {
197 return _messageCount;
198 }
199
200 public void setMessageCount(int messageCount) {
201 _messageCount = messageCount;
202 }
203
204 public Date getLastPostDate() {
205 return _lastPostDate;
206 }
207
208 public void setLastPostDate(Date lastPostDate) {
209 _lastPostDate = lastPostDate;
210 }
211
212 private String _uuid;
213 private long _categoryId;
214 private long _groupId;
215 private long _companyId;
216 private long _userId;
217 private String _userName;
218 private Date _createDate;
219 private Date _modifiedDate;
220 private long _parentCategoryId;
221 private String _name;
222 private String _description;
223 private int _threadCount;
224 private int _messageCount;
225 private Date _lastPostDate;
226 }