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    /**
020     * <p>
021     * This class is a wrapper for {@link MBBan}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBBan
026     * @generated
027     */
028    public class MBBanWrapper implements MBBan, ModelWrapper<MBBan> {
029            public MBBanWrapper(MBBan mbBan) {
030                    _mbBan = mbBan;
031            }
032    
033            public Class<?> getModelClass() {
034                    return MBBan.class;
035            }
036    
037            public String getModelClassName() {
038                    return MBBan.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this message boards ban.
043            *
044            * @return the primary key of this message boards ban
045            */
046            public long getPrimaryKey() {
047                    return _mbBan.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this message boards ban.
052            *
053            * @param primaryKey the primary key of this message boards ban
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _mbBan.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the ban ID of this message boards ban.
061            *
062            * @return the ban ID of this message boards ban
063            */
064            public long getBanId() {
065                    return _mbBan.getBanId();
066            }
067    
068            /**
069            * Sets the ban ID of this message boards ban.
070            *
071            * @param banId the ban ID of this message boards ban
072            */
073            public void setBanId(long banId) {
074                    _mbBan.setBanId(banId);
075            }
076    
077            /**
078            * Returns the group ID of this message boards ban.
079            *
080            * @return the group ID of this message boards ban
081            */
082            public long getGroupId() {
083                    return _mbBan.getGroupId();
084            }
085    
086            /**
087            * Sets the group ID of this message boards ban.
088            *
089            * @param groupId the group ID of this message boards ban
090            */
091            public void setGroupId(long groupId) {
092                    _mbBan.setGroupId(groupId);
093            }
094    
095            /**
096            * Returns the company ID of this message boards ban.
097            *
098            * @return the company ID of this message boards ban
099            */
100            public long getCompanyId() {
101                    return _mbBan.getCompanyId();
102            }
103    
104            /**
105            * Sets the company ID of this message boards ban.
106            *
107            * @param companyId the company ID of this message boards ban
108            */
109            public void setCompanyId(long companyId) {
110                    _mbBan.setCompanyId(companyId);
111            }
112    
113            /**
114            * Returns the user ID of this message boards ban.
115            *
116            * @return the user ID of this message boards ban
117            */
118            public long getUserId() {
119                    return _mbBan.getUserId();
120            }
121    
122            /**
123            * Sets the user ID of this message boards ban.
124            *
125            * @param userId the user ID of this message boards ban
126            */
127            public void setUserId(long userId) {
128                    _mbBan.setUserId(userId);
129            }
130    
131            /**
132            * Returns the user uuid of this message boards ban.
133            *
134            * @return the user uuid of this message boards ban
135            * @throws SystemException if a system exception occurred
136            */
137            public java.lang.String getUserUuid()
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _mbBan.getUserUuid();
140            }
141    
142            /**
143            * Sets the user uuid of this message boards ban.
144            *
145            * @param userUuid the user uuid of this message boards ban
146            */
147            public void setUserUuid(java.lang.String userUuid) {
148                    _mbBan.setUserUuid(userUuid);
149            }
150    
151            /**
152            * Returns the user name of this message boards ban.
153            *
154            * @return the user name of this message boards ban
155            */
156            public java.lang.String getUserName() {
157                    return _mbBan.getUserName();
158            }
159    
160            /**
161            * Sets the user name of this message boards ban.
162            *
163            * @param userName the user name of this message boards ban
164            */
165            public void setUserName(java.lang.String userName) {
166                    _mbBan.setUserName(userName);
167            }
168    
169            /**
170            * Returns the create date of this message boards ban.
171            *
172            * @return the create date of this message boards ban
173            */
174            public java.util.Date getCreateDate() {
175                    return _mbBan.getCreateDate();
176            }
177    
178            /**
179            * Sets the create date of this message boards ban.
180            *
181            * @param createDate the create date of this message boards ban
182            */
183            public void setCreateDate(java.util.Date createDate) {
184                    _mbBan.setCreateDate(createDate);
185            }
186    
187            /**
188            * Returns the modified date of this message boards ban.
189            *
190            * @return the modified date of this message boards ban
191            */
192            public java.util.Date getModifiedDate() {
193                    return _mbBan.getModifiedDate();
194            }
195    
196            /**
197            * Sets the modified date of this message boards ban.
198            *
199            * @param modifiedDate the modified date of this message boards ban
200            */
201            public void setModifiedDate(java.util.Date modifiedDate) {
202                    _mbBan.setModifiedDate(modifiedDate);
203            }
204    
205            /**
206            * Returns the ban user ID of this message boards ban.
207            *
208            * @return the ban user ID of this message boards ban
209            */
210            public long getBanUserId() {
211                    return _mbBan.getBanUserId();
212            }
213    
214            /**
215            * Sets the ban user ID of this message boards ban.
216            *
217            * @param banUserId the ban user ID of this message boards ban
218            */
219            public void setBanUserId(long banUserId) {
220                    _mbBan.setBanUserId(banUserId);
221            }
222    
223            /**
224            * Returns the ban user uuid of this message boards ban.
225            *
226            * @return the ban user uuid of this message boards ban
227            * @throws SystemException if a system exception occurred
228            */
229            public java.lang.String getBanUserUuid()
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _mbBan.getBanUserUuid();
232            }
233    
234            /**
235            * Sets the ban user uuid of this message boards ban.
236            *
237            * @param banUserUuid the ban user uuid of this message boards ban
238            */
239            public void setBanUserUuid(java.lang.String banUserUuid) {
240                    _mbBan.setBanUserUuid(banUserUuid);
241            }
242    
243            public boolean isNew() {
244                    return _mbBan.isNew();
245            }
246    
247            public void setNew(boolean n) {
248                    _mbBan.setNew(n);
249            }
250    
251            public boolean isCachedModel() {
252                    return _mbBan.isCachedModel();
253            }
254    
255            public void setCachedModel(boolean cachedModel) {
256                    _mbBan.setCachedModel(cachedModel);
257            }
258    
259            public boolean isEscapedModel() {
260                    return _mbBan.isEscapedModel();
261            }
262    
263            public java.io.Serializable getPrimaryKeyObj() {
264                    return _mbBan.getPrimaryKeyObj();
265            }
266    
267            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
268                    _mbBan.setPrimaryKeyObj(primaryKeyObj);
269            }
270    
271            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
272                    return _mbBan.getExpandoBridge();
273            }
274    
275            public void setExpandoBridgeAttributes(
276                    com.liferay.portal.service.ServiceContext serviceContext) {
277                    _mbBan.setExpandoBridgeAttributes(serviceContext);
278            }
279    
280            @Override
281            public java.lang.Object clone() {
282                    return new MBBanWrapper((MBBan)_mbBan.clone());
283            }
284    
285            public int compareTo(com.liferay.portlet.messageboards.model.MBBan mbBan) {
286                    return _mbBan.compareTo(mbBan);
287            }
288    
289            @Override
290            public int hashCode() {
291                    return _mbBan.hashCode();
292            }
293    
294            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBBan> toCacheModel() {
295                    return _mbBan.toCacheModel();
296            }
297    
298            public com.liferay.portlet.messageboards.model.MBBan toEscapedModel() {
299                    return new MBBanWrapper(_mbBan.toEscapedModel());
300            }
301    
302            @Override
303            public java.lang.String toString() {
304                    return _mbBan.toString();
305            }
306    
307            public java.lang.String toXmlString() {
308                    return _mbBan.toXmlString();
309            }
310    
311            public void persist()
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    _mbBan.persist();
314            }
315    
316            /**
317             * @deprecated Renamed to {@link #getWrappedModel}
318             */
319            public MBBan getWrappedMBBan() {
320                    return _mbBan;
321            }
322    
323            public MBBan getWrappedModel() {
324                    return _mbBan;
325            }
326    
327            public void resetOriginalValues() {
328                    _mbBan.resetOriginalValues();
329            }
330    
331            private MBBan _mbBan;
332    }