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