001    /**
002     * Copyright (c) 2000-2012 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("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            /**
111            * Returns the primary key of this message boards ban.
112            *
113            * @return the primary key of this message boards ban
114            */
115            public long getPrimaryKey() {
116                    return _mbBan.getPrimaryKey();
117            }
118    
119            /**
120            * Sets the primary key of this message boards ban.
121            *
122            * @param primaryKey the primary key of this message boards ban
123            */
124            public void setPrimaryKey(long primaryKey) {
125                    _mbBan.setPrimaryKey(primaryKey);
126            }
127    
128            /**
129            * Returns the ban ID of this message boards ban.
130            *
131            * @return the ban ID of this message boards ban
132            */
133            public long getBanId() {
134                    return _mbBan.getBanId();
135            }
136    
137            /**
138            * Sets the ban ID of this message boards ban.
139            *
140            * @param banId the ban ID of this message boards ban
141            */
142            public void setBanId(long banId) {
143                    _mbBan.setBanId(banId);
144            }
145    
146            /**
147            * Returns the group ID of this message boards ban.
148            *
149            * @return the group ID of this message boards ban
150            */
151            public long getGroupId() {
152                    return _mbBan.getGroupId();
153            }
154    
155            /**
156            * Sets the group ID of this message boards ban.
157            *
158            * @param groupId the group ID of this message boards ban
159            */
160            public void setGroupId(long groupId) {
161                    _mbBan.setGroupId(groupId);
162            }
163    
164            /**
165            * Returns the company ID of this message boards ban.
166            *
167            * @return the company ID of this message boards ban
168            */
169            public long getCompanyId() {
170                    return _mbBan.getCompanyId();
171            }
172    
173            /**
174            * Sets the company ID of this message boards ban.
175            *
176            * @param companyId the company ID of this message boards ban
177            */
178            public void setCompanyId(long companyId) {
179                    _mbBan.setCompanyId(companyId);
180            }
181    
182            /**
183            * Returns the user ID of this message boards ban.
184            *
185            * @return the user ID of this message boards ban
186            */
187            public long getUserId() {
188                    return _mbBan.getUserId();
189            }
190    
191            /**
192            * Sets the user ID of this message boards ban.
193            *
194            * @param userId the user ID of this message boards ban
195            */
196            public void setUserId(long userId) {
197                    _mbBan.setUserId(userId);
198            }
199    
200            /**
201            * Returns the user uuid of this message boards ban.
202            *
203            * @return the user uuid of this message boards ban
204            * @throws SystemException if a system exception occurred
205            */
206            public java.lang.String getUserUuid()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _mbBan.getUserUuid();
209            }
210    
211            /**
212            * Sets the user uuid of this message boards ban.
213            *
214            * @param userUuid the user uuid of this message boards ban
215            */
216            public void setUserUuid(java.lang.String userUuid) {
217                    _mbBan.setUserUuid(userUuid);
218            }
219    
220            /**
221            * Returns the user name of this message boards ban.
222            *
223            * @return the user name of this message boards ban
224            */
225            public java.lang.String getUserName() {
226                    return _mbBan.getUserName();
227            }
228    
229            /**
230            * Sets the user name of this message boards ban.
231            *
232            * @param userName the user name of this message boards ban
233            */
234            public void setUserName(java.lang.String userName) {
235                    _mbBan.setUserName(userName);
236            }
237    
238            /**
239            * Returns the create date of this message boards ban.
240            *
241            * @return the create date of this message boards ban
242            */
243            public java.util.Date getCreateDate() {
244                    return _mbBan.getCreateDate();
245            }
246    
247            /**
248            * Sets the create date of this message boards ban.
249            *
250            * @param createDate the create date of this message boards ban
251            */
252            public void setCreateDate(java.util.Date createDate) {
253                    _mbBan.setCreateDate(createDate);
254            }
255    
256            /**
257            * Returns the modified date of this message boards ban.
258            *
259            * @return the modified date of this message boards ban
260            */
261            public java.util.Date getModifiedDate() {
262                    return _mbBan.getModifiedDate();
263            }
264    
265            /**
266            * Sets the modified date of this message boards ban.
267            *
268            * @param modifiedDate the modified date of this message boards ban
269            */
270            public void setModifiedDate(java.util.Date modifiedDate) {
271                    _mbBan.setModifiedDate(modifiedDate);
272            }
273    
274            /**
275            * Returns the ban user ID of this message boards ban.
276            *
277            * @return the ban user ID of this message boards ban
278            */
279            public long getBanUserId() {
280                    return _mbBan.getBanUserId();
281            }
282    
283            /**
284            * Sets the ban user ID of this message boards ban.
285            *
286            * @param banUserId the ban user ID of this message boards ban
287            */
288            public void setBanUserId(long banUserId) {
289                    _mbBan.setBanUserId(banUserId);
290            }
291    
292            /**
293            * Returns the ban user uuid of this message boards ban.
294            *
295            * @return the ban user uuid of this message boards ban
296            * @throws SystemException if a system exception occurred
297            */
298            public java.lang.String getBanUserUuid()
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _mbBan.getBanUserUuid();
301            }
302    
303            /**
304            * Sets the ban user uuid of this message boards ban.
305            *
306            * @param banUserUuid the ban user uuid of this message boards ban
307            */
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            @Override
372            public java.lang.String toString() {
373                    return _mbBan.toString();
374            }
375    
376            public java.lang.String toXmlString() {
377                    return _mbBan.toXmlString();
378            }
379    
380            public void persist()
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    _mbBan.persist();
383            }
384    
385            /**
386             * @deprecated Renamed to {@link #getWrappedModel}
387             */
388            public MBBan getWrappedMBBan() {
389                    return _mbBan;
390            }
391    
392            public MBBan getWrappedModel() {
393                    return _mbBan;
394            }
395    
396            public void resetOriginalValues() {
397                    _mbBan.resetOriginalValues();
398            }
399    
400            private MBBan _mbBan;
401    }