001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
024     * <p>
025     * This class is a wrapper for {@link MBBan}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       MBBan
030     * @generated
031     */
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            /**
118            * Returns the primary key of this message boards ban.
119            *
120            * @return the primary key of this message boards ban
121            */
122            public long getPrimaryKey() {
123                    return _mbBan.getPrimaryKey();
124            }
125    
126            /**
127            * Sets the primary key of this message boards ban.
128            *
129            * @param primaryKey the primary key of this message boards ban
130            */
131            public void setPrimaryKey(long primaryKey) {
132                    _mbBan.setPrimaryKey(primaryKey);
133            }
134    
135            /**
136            * Returns the uuid of this message boards ban.
137            *
138            * @return the uuid of this message boards ban
139            */
140            public java.lang.String getUuid() {
141                    return _mbBan.getUuid();
142            }
143    
144            /**
145            * Sets the uuid of this message boards ban.
146            *
147            * @param uuid the uuid of this message boards ban
148            */
149            public void setUuid(java.lang.String uuid) {
150                    _mbBan.setUuid(uuid);
151            }
152    
153            /**
154            * Returns the ban ID of this message boards ban.
155            *
156            * @return the ban ID of this message boards ban
157            */
158            public long getBanId() {
159                    return _mbBan.getBanId();
160            }
161    
162            /**
163            * Sets the ban ID of this message boards ban.
164            *
165            * @param banId the ban ID of this message boards ban
166            */
167            public void setBanId(long banId) {
168                    _mbBan.setBanId(banId);
169            }
170    
171            /**
172            * Returns the group ID of this message boards ban.
173            *
174            * @return the group ID of this message boards ban
175            */
176            public long getGroupId() {
177                    return _mbBan.getGroupId();
178            }
179    
180            /**
181            * Sets the group ID of this message boards ban.
182            *
183            * @param groupId the group ID of this message boards ban
184            */
185            public void setGroupId(long groupId) {
186                    _mbBan.setGroupId(groupId);
187            }
188    
189            /**
190            * Returns the company ID of this message boards ban.
191            *
192            * @return the company ID of this message boards ban
193            */
194            public long getCompanyId() {
195                    return _mbBan.getCompanyId();
196            }
197    
198            /**
199            * Sets the company ID of this message boards ban.
200            *
201            * @param companyId the company ID of this message boards ban
202            */
203            public void setCompanyId(long companyId) {
204                    _mbBan.setCompanyId(companyId);
205            }
206    
207            /**
208            * Returns the user ID of this message boards ban.
209            *
210            * @return the user ID of this message boards ban
211            */
212            public long getUserId() {
213                    return _mbBan.getUserId();
214            }
215    
216            /**
217            * Sets the user ID of this message boards ban.
218            *
219            * @param userId the user ID of this message boards ban
220            */
221            public void setUserId(long userId) {
222                    _mbBan.setUserId(userId);
223            }
224    
225            /**
226            * Returns the user uuid of this message boards ban.
227            *
228            * @return the user uuid of this message boards ban
229            * @throws SystemException if a system exception occurred
230            */
231            public java.lang.String getUserUuid()
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _mbBan.getUserUuid();
234            }
235    
236            /**
237            * Sets the user uuid of this message boards ban.
238            *
239            * @param userUuid the user uuid of this message boards ban
240            */
241            public void setUserUuid(java.lang.String userUuid) {
242                    _mbBan.setUserUuid(userUuid);
243            }
244    
245            /**
246            * Returns the user name of this message boards ban.
247            *
248            * @return the user name of this message boards ban
249            */
250            public java.lang.String getUserName() {
251                    return _mbBan.getUserName();
252            }
253    
254            /**
255            * Sets the user name of this message boards ban.
256            *
257            * @param userName the user name of this message boards ban
258            */
259            public void setUserName(java.lang.String userName) {
260                    _mbBan.setUserName(userName);
261            }
262    
263            /**
264            * Returns the create date of this message boards ban.
265            *
266            * @return the create date of this message boards ban
267            */
268            public java.util.Date getCreateDate() {
269                    return _mbBan.getCreateDate();
270            }
271    
272            /**
273            * Sets the create date of this message boards ban.
274            *
275            * @param createDate the create date of this message boards ban
276            */
277            public void setCreateDate(java.util.Date createDate) {
278                    _mbBan.setCreateDate(createDate);
279            }
280    
281            /**
282            * Returns the modified date of this message boards ban.
283            *
284            * @return the modified date of this message boards ban
285            */
286            public java.util.Date getModifiedDate() {
287                    return _mbBan.getModifiedDate();
288            }
289    
290            /**
291            * Sets the modified date of this message boards ban.
292            *
293            * @param modifiedDate the modified date of this message boards ban
294            */
295            public void setModifiedDate(java.util.Date modifiedDate) {
296                    _mbBan.setModifiedDate(modifiedDate);
297            }
298    
299            /**
300            * Returns the ban user ID of this message boards ban.
301            *
302            * @return the ban user ID of this message boards ban
303            */
304            public long getBanUserId() {
305                    return _mbBan.getBanUserId();
306            }
307    
308            /**
309            * Sets the ban user ID of this message boards ban.
310            *
311            * @param banUserId the ban user ID of this message boards ban
312            */
313            public void setBanUserId(long banUserId) {
314                    _mbBan.setBanUserId(banUserId);
315            }
316    
317            /**
318            * Returns the ban user uuid of this message boards ban.
319            *
320            * @return the ban user uuid of this message boards ban
321            * @throws SystemException if a system exception occurred
322            */
323            public java.lang.String getBanUserUuid()
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _mbBan.getBanUserUuid();
326            }
327    
328            /**
329            * Sets the ban user uuid of this message boards ban.
330            *
331            * @param banUserUuid the ban user uuid of this message boards ban
332            */
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            /**
425             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
426             */
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    }