001
014
015 package com.liferay.portlet.messageboards.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class MBBanWrapper implements MBBan, ModelWrapper<MBBan> {
033 public MBBanWrapper(MBBan mbBan) {
034 _mbBan = mbBan;
035 }
036
037 public Class<?> getModelClass() {
038 return MBBan.class;
039 }
040
041 public String getModelClassName() {
042 return MBBan.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("banId", getBanId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("banUserId", getBanUserId());
057
058 return attributes;
059 }
060
061 public void setModelAttributes(Map<String, Object> attributes) {
062 String uuid = (String)attributes.get("uuid");
063
064 if (uuid != null) {
065 setUuid(uuid);
066 }
067
068 Long banId = (Long)attributes.get("banId");
069
070 if (banId != null) {
071 setBanId(banId);
072 }
073
074 Long groupId = (Long)attributes.get("groupId");
075
076 if (groupId != null) {
077 setGroupId(groupId);
078 }
079
080 Long companyId = (Long)attributes.get("companyId");
081
082 if (companyId != null) {
083 setCompanyId(companyId);
084 }
085
086 Long userId = (Long)attributes.get("userId");
087
088 if (userId != null) {
089 setUserId(userId);
090 }
091
092 String userName = (String)attributes.get("userName");
093
094 if (userName != null) {
095 setUserName(userName);
096 }
097
098 Date createDate = (Date)attributes.get("createDate");
099
100 if (createDate != null) {
101 setCreateDate(createDate);
102 }
103
104 Date modifiedDate = (Date)attributes.get("modifiedDate");
105
106 if (modifiedDate != null) {
107 setModifiedDate(modifiedDate);
108 }
109
110 Long banUserId = (Long)attributes.get("banUserId");
111
112 if (banUserId != null) {
113 setBanUserId(banUserId);
114 }
115 }
116
117
122 public long getPrimaryKey() {
123 return _mbBan.getPrimaryKey();
124 }
125
126
131 public void setPrimaryKey(long primaryKey) {
132 _mbBan.setPrimaryKey(primaryKey);
133 }
134
135
140 public java.lang.String getUuid() {
141 return _mbBan.getUuid();
142 }
143
144
149 public void setUuid(java.lang.String uuid) {
150 _mbBan.setUuid(uuid);
151 }
152
153
158 public long getBanId() {
159 return _mbBan.getBanId();
160 }
161
162
167 public void setBanId(long banId) {
168 _mbBan.setBanId(banId);
169 }
170
171
176 public long getGroupId() {
177 return _mbBan.getGroupId();
178 }
179
180
185 public void setGroupId(long groupId) {
186 _mbBan.setGroupId(groupId);
187 }
188
189
194 public long getCompanyId() {
195 return _mbBan.getCompanyId();
196 }
197
198
203 public void setCompanyId(long companyId) {
204 _mbBan.setCompanyId(companyId);
205 }
206
207
212 public long getUserId() {
213 return _mbBan.getUserId();
214 }
215
216
221 public void setUserId(long userId) {
222 _mbBan.setUserId(userId);
223 }
224
225
231 public java.lang.String getUserUuid()
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return _mbBan.getUserUuid();
234 }
235
236
241 public void setUserUuid(java.lang.String userUuid) {
242 _mbBan.setUserUuid(userUuid);
243 }
244
245
250 public java.lang.String getUserName() {
251 return _mbBan.getUserName();
252 }
253
254
259 public void setUserName(java.lang.String userName) {
260 _mbBan.setUserName(userName);
261 }
262
263
268 public java.util.Date getCreateDate() {
269 return _mbBan.getCreateDate();
270 }
271
272
277 public void setCreateDate(java.util.Date createDate) {
278 _mbBan.setCreateDate(createDate);
279 }
280
281
286 public java.util.Date getModifiedDate() {
287 return _mbBan.getModifiedDate();
288 }
289
290
295 public void setModifiedDate(java.util.Date modifiedDate) {
296 _mbBan.setModifiedDate(modifiedDate);
297 }
298
299
304 public long getBanUserId() {
305 return _mbBan.getBanUserId();
306 }
307
308
313 public void setBanUserId(long banUserId) {
314 _mbBan.setBanUserId(banUserId);
315 }
316
317
323 public java.lang.String getBanUserUuid()
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return _mbBan.getBanUserUuid();
326 }
327
328
333 public void setBanUserUuid(java.lang.String banUserUuid) {
334 _mbBan.setBanUserUuid(banUserUuid);
335 }
336
337 public boolean isNew() {
338 return _mbBan.isNew();
339 }
340
341 public void setNew(boolean n) {
342 _mbBan.setNew(n);
343 }
344
345 public boolean isCachedModel() {
346 return _mbBan.isCachedModel();
347 }
348
349 public void setCachedModel(boolean cachedModel) {
350 _mbBan.setCachedModel(cachedModel);
351 }
352
353 public boolean isEscapedModel() {
354 return _mbBan.isEscapedModel();
355 }
356
357 public java.io.Serializable getPrimaryKeyObj() {
358 return _mbBan.getPrimaryKeyObj();
359 }
360
361 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
362 _mbBan.setPrimaryKeyObj(primaryKeyObj);
363 }
364
365 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
366 return _mbBan.getExpandoBridge();
367 }
368
369 public void setExpandoBridgeAttributes(
370 com.liferay.portal.model.BaseModel<?> baseModel) {
371 _mbBan.setExpandoBridgeAttributes(baseModel);
372 }
373
374 public void setExpandoBridgeAttributes(
375 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
376 _mbBan.setExpandoBridgeAttributes(expandoBridge);
377 }
378
379 public void setExpandoBridgeAttributes(
380 com.liferay.portal.service.ServiceContext serviceContext) {
381 _mbBan.setExpandoBridgeAttributes(serviceContext);
382 }
383
384 @Override
385 public java.lang.Object clone() {
386 return new MBBanWrapper((MBBan)_mbBan.clone());
387 }
388
389 public int compareTo(com.liferay.portlet.messageboards.model.MBBan mbBan) {
390 return _mbBan.compareTo(mbBan);
391 }
392
393 @Override
394 public int hashCode() {
395 return _mbBan.hashCode();
396 }
397
398 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBBan> toCacheModel() {
399 return _mbBan.toCacheModel();
400 }
401
402 public com.liferay.portlet.messageboards.model.MBBan toEscapedModel() {
403 return new MBBanWrapper(_mbBan.toEscapedModel());
404 }
405
406 public com.liferay.portlet.messageboards.model.MBBan toUnescapedModel() {
407 return new MBBanWrapper(_mbBan.toUnescapedModel());
408 }
409
410 @Override
411 public java.lang.String toString() {
412 return _mbBan.toString();
413 }
414
415 public java.lang.String toXmlString() {
416 return _mbBan.toXmlString();
417 }
418
419 public void persist()
420 throws com.liferay.portal.kernel.exception.SystemException {
421 _mbBan.persist();
422 }
423
424
427 public MBBan getWrappedMBBan() {
428 return _mbBan;
429 }
430
431 public MBBan getWrappedModel() {
432 return _mbBan;
433 }
434
435 public void resetOriginalValues() {
436 _mbBan.resetOriginalValues();
437 }
438
439 private MBBan _mbBan;
440 }