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("banId", getBanId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("userName", getUserName());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("modifiedDate", getModifiedDate());
055 attributes.put("banUserId", getBanUserId());
056
057 return attributes;
058 }
059
060 public void setModelAttributes(Map<String, Object> attributes) {
061 Long banId = (Long)attributes.get("banId");
062
063 if (banId != null) {
064 setBanId(banId);
065 }
066
067 Long groupId = (Long)attributes.get("groupId");
068
069 if (groupId != null) {
070 setGroupId(groupId);
071 }
072
073 Long companyId = (Long)attributes.get("companyId");
074
075 if (companyId != null) {
076 setCompanyId(companyId);
077 }
078
079 Long userId = (Long)attributes.get("userId");
080
081 if (userId != null) {
082 setUserId(userId);
083 }
084
085 String userName = (String)attributes.get("userName");
086
087 if (userName != null) {
088 setUserName(userName);
089 }
090
091 Date createDate = (Date)attributes.get("createDate");
092
093 if (createDate != null) {
094 setCreateDate(createDate);
095 }
096
097 Date modifiedDate = (Date)attributes.get("modifiedDate");
098
099 if (modifiedDate != null) {
100 setModifiedDate(modifiedDate);
101 }
102
103 Long banUserId = (Long)attributes.get("banUserId");
104
105 if (banUserId != null) {
106 setBanUserId(banUserId);
107 }
108 }
109
110
115 public long getPrimaryKey() {
116 return _mbBan.getPrimaryKey();
117 }
118
119
124 public void setPrimaryKey(long primaryKey) {
125 _mbBan.setPrimaryKey(primaryKey);
126 }
127
128
133 public long getBanId() {
134 return _mbBan.getBanId();
135 }
136
137
142 public void setBanId(long banId) {
143 _mbBan.setBanId(banId);
144 }
145
146
151 public long getGroupId() {
152 return _mbBan.getGroupId();
153 }
154
155
160 public void setGroupId(long groupId) {
161 _mbBan.setGroupId(groupId);
162 }
163
164
169 public long getCompanyId() {
170 return _mbBan.getCompanyId();
171 }
172
173
178 public void setCompanyId(long companyId) {
179 _mbBan.setCompanyId(companyId);
180 }
181
182
187 public long getUserId() {
188 return _mbBan.getUserId();
189 }
190
191
196 public void setUserId(long userId) {
197 _mbBan.setUserId(userId);
198 }
199
200
206 public java.lang.String getUserUuid()
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return _mbBan.getUserUuid();
209 }
210
211
216 public void setUserUuid(java.lang.String userUuid) {
217 _mbBan.setUserUuid(userUuid);
218 }
219
220
225 public java.lang.String getUserName() {
226 return _mbBan.getUserName();
227 }
228
229
234 public void setUserName(java.lang.String userName) {
235 _mbBan.setUserName(userName);
236 }
237
238
243 public java.util.Date getCreateDate() {
244 return _mbBan.getCreateDate();
245 }
246
247
252 public void setCreateDate(java.util.Date createDate) {
253 _mbBan.setCreateDate(createDate);
254 }
255
256
261 public java.util.Date getModifiedDate() {
262 return _mbBan.getModifiedDate();
263 }
264
265
270 public void setModifiedDate(java.util.Date modifiedDate) {
271 _mbBan.setModifiedDate(modifiedDate);
272 }
273
274
279 public long getBanUserId() {
280 return _mbBan.getBanUserId();
281 }
282
283
288 public void setBanUserId(long banUserId) {
289 _mbBan.setBanUserId(banUserId);
290 }
291
292
298 public java.lang.String getBanUserUuid()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return _mbBan.getBanUserUuid();
301 }
302
303
308 public void setBanUserUuid(java.lang.String banUserUuid) {
309 _mbBan.setBanUserUuid(banUserUuid);
310 }
311
312 public boolean isNew() {
313 return _mbBan.isNew();
314 }
315
316 public void setNew(boolean n) {
317 _mbBan.setNew(n);
318 }
319
320 public boolean isCachedModel() {
321 return _mbBan.isCachedModel();
322 }
323
324 public void setCachedModel(boolean cachedModel) {
325 _mbBan.setCachedModel(cachedModel);
326 }
327
328 public boolean isEscapedModel() {
329 return _mbBan.isEscapedModel();
330 }
331
332 public java.io.Serializable getPrimaryKeyObj() {
333 return _mbBan.getPrimaryKeyObj();
334 }
335
336 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
337 _mbBan.setPrimaryKeyObj(primaryKeyObj);
338 }
339
340 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
341 return _mbBan.getExpandoBridge();
342 }
343
344 public void setExpandoBridgeAttributes(
345 com.liferay.portal.service.ServiceContext serviceContext) {
346 _mbBan.setExpandoBridgeAttributes(serviceContext);
347 }
348
349 @Override
350 public java.lang.Object clone() {
351 return new MBBanWrapper((MBBan)_mbBan.clone());
352 }
353
354 public int compareTo(com.liferay.portlet.messageboards.model.MBBan mbBan) {
355 return _mbBan.compareTo(mbBan);
356 }
357
358 @Override
359 public int hashCode() {
360 return _mbBan.hashCode();
361 }
362
363 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBBan> toCacheModel() {
364 return _mbBan.toCacheModel();
365 }
366
367 public com.liferay.portlet.messageboards.model.MBBan toEscapedModel() {
368 return new MBBanWrapper(_mbBan.toEscapedModel());
369 }
370
371 public com.liferay.portlet.messageboards.model.MBBan toUnescapedModel() {
372 return new MBBanWrapper(_mbBan.toUnescapedModel());
373 }
374
375 @Override
376 public java.lang.String toString() {
377 return _mbBan.toString();
378 }
379
380 public java.lang.String toXmlString() {
381 return _mbBan.toXmlString();
382 }
383
384 public void persist()
385 throws com.liferay.portal.kernel.exception.SystemException {
386 _mbBan.persist();
387 }
388
389
392 public MBBan getWrappedMBBan() {
393 return _mbBan;
394 }
395
396 public MBBan getWrappedModel() {
397 return _mbBan;
398 }
399
400 public void resetOriginalValues() {
401 _mbBan.resetOriginalValues();
402 }
403
404 private MBBan _mbBan;
405 }