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 MBThread}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBThread
026     * @generated
027     */
028    public class MBThreadWrapper implements MBThread, ModelWrapper<MBThread> {
029            public MBThreadWrapper(MBThread mbThread) {
030                    _mbThread = mbThread;
031            }
032    
033            public Class<?> getModelClass() {
034                    return MBThread.class;
035            }
036    
037            public String getModelClassName() {
038                    return MBThread.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this message boards thread.
043            *
044            * @return the primary key of this message boards thread
045            */
046            public long getPrimaryKey() {
047                    return _mbThread.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this message boards thread.
052            *
053            * @param primaryKey the primary key of this message boards thread
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _mbThread.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the thread ID of this message boards thread.
061            *
062            * @return the thread ID of this message boards thread
063            */
064            public long getThreadId() {
065                    return _mbThread.getThreadId();
066            }
067    
068            /**
069            * Sets the thread ID of this message boards thread.
070            *
071            * @param threadId the thread ID of this message boards thread
072            */
073            public void setThreadId(long threadId) {
074                    _mbThread.setThreadId(threadId);
075            }
076    
077            /**
078            * Returns the group ID of this message boards thread.
079            *
080            * @return the group ID of this message boards thread
081            */
082            public long getGroupId() {
083                    return _mbThread.getGroupId();
084            }
085    
086            /**
087            * Sets the group ID of this message boards thread.
088            *
089            * @param groupId the group ID of this message boards thread
090            */
091            public void setGroupId(long groupId) {
092                    _mbThread.setGroupId(groupId);
093            }
094    
095            /**
096            * Returns the company ID of this message boards thread.
097            *
098            * @return the company ID of this message boards thread
099            */
100            public long getCompanyId() {
101                    return _mbThread.getCompanyId();
102            }
103    
104            /**
105            * Sets the company ID of this message boards thread.
106            *
107            * @param companyId the company ID of this message boards thread
108            */
109            public void setCompanyId(long companyId) {
110                    _mbThread.setCompanyId(companyId);
111            }
112    
113            /**
114            * Returns the category ID of this message boards thread.
115            *
116            * @return the category ID of this message boards thread
117            */
118            public long getCategoryId() {
119                    return _mbThread.getCategoryId();
120            }
121    
122            /**
123            * Sets the category ID of this message boards thread.
124            *
125            * @param categoryId the category ID of this message boards thread
126            */
127            public void setCategoryId(long categoryId) {
128                    _mbThread.setCategoryId(categoryId);
129            }
130    
131            /**
132            * Returns the root message ID of this message boards thread.
133            *
134            * @return the root message ID of this message boards thread
135            */
136            public long getRootMessageId() {
137                    return _mbThread.getRootMessageId();
138            }
139    
140            /**
141            * Sets the root message ID of this message boards thread.
142            *
143            * @param rootMessageId the root message ID of this message boards thread
144            */
145            public void setRootMessageId(long rootMessageId) {
146                    _mbThread.setRootMessageId(rootMessageId);
147            }
148    
149            /**
150            * Returns the root message user ID of this message boards thread.
151            *
152            * @return the root message user ID of this message boards thread
153            */
154            public long getRootMessageUserId() {
155                    return _mbThread.getRootMessageUserId();
156            }
157    
158            /**
159            * Sets the root message user ID of this message boards thread.
160            *
161            * @param rootMessageUserId the root message user ID of this message boards thread
162            */
163            public void setRootMessageUserId(long rootMessageUserId) {
164                    _mbThread.setRootMessageUserId(rootMessageUserId);
165            }
166    
167            /**
168            * Returns the root message user uuid of this message boards thread.
169            *
170            * @return the root message user uuid of this message boards thread
171            * @throws SystemException if a system exception occurred
172            */
173            public java.lang.String getRootMessageUserUuid()
174                    throws com.liferay.portal.kernel.exception.SystemException {
175                    return _mbThread.getRootMessageUserUuid();
176            }
177    
178            /**
179            * Sets the root message user uuid of this message boards thread.
180            *
181            * @param rootMessageUserUuid the root message user uuid of this message boards thread
182            */
183            public void setRootMessageUserUuid(java.lang.String rootMessageUserUuid) {
184                    _mbThread.setRootMessageUserUuid(rootMessageUserUuid);
185            }
186    
187            /**
188            * Returns the message count of this message boards thread.
189            *
190            * @return the message count of this message boards thread
191            */
192            public int getMessageCount() {
193                    return _mbThread.getMessageCount();
194            }
195    
196            /**
197            * Sets the message count of this message boards thread.
198            *
199            * @param messageCount the message count of this message boards thread
200            */
201            public void setMessageCount(int messageCount) {
202                    _mbThread.setMessageCount(messageCount);
203            }
204    
205            /**
206            * Returns the view count of this message boards thread.
207            *
208            * @return the view count of this message boards thread
209            */
210            public int getViewCount() {
211                    return _mbThread.getViewCount();
212            }
213    
214            /**
215            * Sets the view count of this message boards thread.
216            *
217            * @param viewCount the view count of this message boards thread
218            */
219            public void setViewCount(int viewCount) {
220                    _mbThread.setViewCount(viewCount);
221            }
222    
223            /**
224            * Returns the last post by user ID of this message boards thread.
225            *
226            * @return the last post by user ID of this message boards thread
227            */
228            public long getLastPostByUserId() {
229                    return _mbThread.getLastPostByUserId();
230            }
231    
232            /**
233            * Sets the last post by user ID of this message boards thread.
234            *
235            * @param lastPostByUserId the last post by user ID of this message boards thread
236            */
237            public void setLastPostByUserId(long lastPostByUserId) {
238                    _mbThread.setLastPostByUserId(lastPostByUserId);
239            }
240    
241            /**
242            * Returns the last post by user uuid of this message boards thread.
243            *
244            * @return the last post by user uuid of this message boards thread
245            * @throws SystemException if a system exception occurred
246            */
247            public java.lang.String getLastPostByUserUuid()
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _mbThread.getLastPostByUserUuid();
250            }
251    
252            /**
253            * Sets the last post by user uuid of this message boards thread.
254            *
255            * @param lastPostByUserUuid the last post by user uuid of this message boards thread
256            */
257            public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid) {
258                    _mbThread.setLastPostByUserUuid(lastPostByUserUuid);
259            }
260    
261            /**
262            * Returns the last post date of this message boards thread.
263            *
264            * @return the last post date of this message boards thread
265            */
266            public java.util.Date getLastPostDate() {
267                    return _mbThread.getLastPostDate();
268            }
269    
270            /**
271            * Sets the last post date of this message boards thread.
272            *
273            * @param lastPostDate the last post date of this message boards thread
274            */
275            public void setLastPostDate(java.util.Date lastPostDate) {
276                    _mbThread.setLastPostDate(lastPostDate);
277            }
278    
279            /**
280            * Returns the priority of this message boards thread.
281            *
282            * @return the priority of this message boards thread
283            */
284            public double getPriority() {
285                    return _mbThread.getPriority();
286            }
287    
288            /**
289            * Sets the priority of this message boards thread.
290            *
291            * @param priority the priority of this message boards thread
292            */
293            public void setPriority(double priority) {
294                    _mbThread.setPriority(priority);
295            }
296    
297            /**
298            * Returns the question of this message boards thread.
299            *
300            * @return the question of this message boards thread
301            */
302            public boolean getQuestion() {
303                    return _mbThread.getQuestion();
304            }
305    
306            /**
307            * Returns <code>true</code> if this message boards thread is question.
308            *
309            * @return <code>true</code> if this message boards thread is question; <code>false</code> otherwise
310            */
311            public boolean isQuestion() {
312                    return _mbThread.isQuestion();
313            }
314    
315            /**
316            * Sets whether this message boards thread is question.
317            *
318            * @param question the question of this message boards thread
319            */
320            public void setQuestion(boolean question) {
321                    _mbThread.setQuestion(question);
322            }
323    
324            /**
325            * Returns the status of this message boards thread.
326            *
327            * @return the status of this message boards thread
328            */
329            public int getStatus() {
330                    return _mbThread.getStatus();
331            }
332    
333            /**
334            * Sets the status of this message boards thread.
335            *
336            * @param status the status of this message boards thread
337            */
338            public void setStatus(int status) {
339                    _mbThread.setStatus(status);
340            }
341    
342            /**
343            * Returns the status by user ID of this message boards thread.
344            *
345            * @return the status by user ID of this message boards thread
346            */
347            public long getStatusByUserId() {
348                    return _mbThread.getStatusByUserId();
349            }
350    
351            /**
352            * Sets the status by user ID of this message boards thread.
353            *
354            * @param statusByUserId the status by user ID of this message boards thread
355            */
356            public void setStatusByUserId(long statusByUserId) {
357                    _mbThread.setStatusByUserId(statusByUserId);
358            }
359    
360            /**
361            * Returns the status by user uuid of this message boards thread.
362            *
363            * @return the status by user uuid of this message boards thread
364            * @throws SystemException if a system exception occurred
365            */
366            public java.lang.String getStatusByUserUuid()
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _mbThread.getStatusByUserUuid();
369            }
370    
371            /**
372            * Sets the status by user uuid of this message boards thread.
373            *
374            * @param statusByUserUuid the status by user uuid of this message boards thread
375            */
376            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
377                    _mbThread.setStatusByUserUuid(statusByUserUuid);
378            }
379    
380            /**
381            * Returns the status by user name of this message boards thread.
382            *
383            * @return the status by user name of this message boards thread
384            */
385            public java.lang.String getStatusByUserName() {
386                    return _mbThread.getStatusByUserName();
387            }
388    
389            /**
390            * Sets the status by user name of this message boards thread.
391            *
392            * @param statusByUserName the status by user name of this message boards thread
393            */
394            public void setStatusByUserName(java.lang.String statusByUserName) {
395                    _mbThread.setStatusByUserName(statusByUserName);
396            }
397    
398            /**
399            * Returns the status date of this message boards thread.
400            *
401            * @return the status date of this message boards thread
402            */
403            public java.util.Date getStatusDate() {
404                    return _mbThread.getStatusDate();
405            }
406    
407            /**
408            * Sets the status date of this message boards thread.
409            *
410            * @param statusDate the status date of this message boards thread
411            */
412            public void setStatusDate(java.util.Date statusDate) {
413                    _mbThread.setStatusDate(statusDate);
414            }
415    
416            /**
417            * @deprecated Renamed to {@link #isApproved()}
418            */
419            public boolean getApproved() {
420                    return _mbThread.getApproved();
421            }
422    
423            /**
424            * Returns <code>true</code> if this message boards thread is approved.
425            *
426            * @return <code>true</code> if this message boards thread is approved; <code>false</code> otherwise
427            */
428            public boolean isApproved() {
429                    return _mbThread.isApproved();
430            }
431    
432            /**
433            * Returns <code>true</code> if this message boards thread is a draft.
434            *
435            * @return <code>true</code> if this message boards thread is a draft; <code>false</code> otherwise
436            */
437            public boolean isDraft() {
438                    return _mbThread.isDraft();
439            }
440    
441            /**
442            * Returns <code>true</code> if this message boards thread is expired.
443            *
444            * @return <code>true</code> if this message boards thread is expired; <code>false</code> otherwise
445            */
446            public boolean isExpired() {
447                    return _mbThread.isExpired();
448            }
449    
450            /**
451            * Returns <code>true</code> if this message boards thread is pending.
452            *
453            * @return <code>true</code> if this message boards thread is pending; <code>false</code> otherwise
454            */
455            public boolean isPending() {
456                    return _mbThread.isPending();
457            }
458    
459            public boolean isNew() {
460                    return _mbThread.isNew();
461            }
462    
463            public void setNew(boolean n) {
464                    _mbThread.setNew(n);
465            }
466    
467            public boolean isCachedModel() {
468                    return _mbThread.isCachedModel();
469            }
470    
471            public void setCachedModel(boolean cachedModel) {
472                    _mbThread.setCachedModel(cachedModel);
473            }
474    
475            public boolean isEscapedModel() {
476                    return _mbThread.isEscapedModel();
477            }
478    
479            public java.io.Serializable getPrimaryKeyObj() {
480                    return _mbThread.getPrimaryKeyObj();
481            }
482    
483            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
484                    _mbThread.setPrimaryKeyObj(primaryKeyObj);
485            }
486    
487            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
488                    return _mbThread.getExpandoBridge();
489            }
490    
491            public void setExpandoBridgeAttributes(
492                    com.liferay.portal.service.ServiceContext serviceContext) {
493                    _mbThread.setExpandoBridgeAttributes(serviceContext);
494            }
495    
496            @Override
497            public java.lang.Object clone() {
498                    return new MBThreadWrapper((MBThread)_mbThread.clone());
499            }
500    
501            public int compareTo(
502                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
503                    return _mbThread.compareTo(mbThread);
504            }
505    
506            @Override
507            public int hashCode() {
508                    return _mbThread.hashCode();
509            }
510    
511            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel() {
512                    return _mbThread.toCacheModel();
513            }
514    
515            public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
516                    return new MBThreadWrapper(_mbThread.toEscapedModel());
517            }
518    
519            @Override
520            public java.lang.String toString() {
521                    return _mbThread.toString();
522            }
523    
524            public java.lang.String toXmlString() {
525                    return _mbThread.toXmlString();
526            }
527    
528            public void persist()
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    _mbThread.persist();
531            }
532    
533            public java.lang.String getAttachmentsDir() {
534                    return _mbThread.getAttachmentsDir();
535            }
536    
537            public com.liferay.portal.model.Lock getLock() {
538                    return _mbThread.getLock();
539            }
540    
541            public boolean hasLock(long userId) {
542                    return _mbThread.hasLock(userId);
543            }
544    
545            public boolean isLocked() {
546                    return _mbThread.isLocked();
547            }
548    
549            /**
550             * @deprecated Renamed to {@link #getWrappedModel}
551             */
552            public MBThread getWrappedMBThread() {
553                    return _mbThread;
554            }
555    
556            public MBThread getWrappedModel() {
557                    return _mbThread;
558            }
559    
560            public void resetOriginalValues() {
561                    _mbThread.resetOriginalValues();
562            }
563    
564            private MBThread _mbThread;
565    }