001    /**
002     * Copyright (c) 2000-2010 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 MBDiscussion}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBDiscussion
024     * @generated
025     */
026    public class MBDiscussionWrapper implements MBDiscussion {
027            public MBDiscussionWrapper(MBDiscussion mbDiscussion) {
028                    _mbDiscussion = mbDiscussion;
029            }
030    
031            /**
032            * Gets the primary key of this message boards discussion.
033            *
034            * @return the primary key of this message boards discussion
035            */
036            public long getPrimaryKey() {
037                    return _mbDiscussion.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this message boards discussion
042            *
043            * @param pk the primary key of this message boards discussion
044            */
045            public void setPrimaryKey(long pk) {
046                    _mbDiscussion.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the discussion id of this message boards discussion.
051            *
052            * @return the discussion id of this message boards discussion
053            */
054            public long getDiscussionId() {
055                    return _mbDiscussion.getDiscussionId();
056            }
057    
058            /**
059            * Sets the discussion id of this message boards discussion.
060            *
061            * @param discussionId the discussion id of this message boards discussion
062            */
063            public void setDiscussionId(long discussionId) {
064                    _mbDiscussion.setDiscussionId(discussionId);
065            }
066    
067            /**
068            * Gets the class name of the model instance this message boards discussion is polymorphically associated with.
069            *
070            * @return the class name of the model instance this message boards discussion is polymorphically associated with
071            */
072            public java.lang.String getClassName() {
073                    return _mbDiscussion.getClassName();
074            }
075    
076            /**
077            * Gets the class name id of this message boards discussion.
078            *
079            * @return the class name id of this message boards discussion
080            */
081            public long getClassNameId() {
082                    return _mbDiscussion.getClassNameId();
083            }
084    
085            /**
086            * Sets the class name id of this message boards discussion.
087            *
088            * @param classNameId the class name id of this message boards discussion
089            */
090            public void setClassNameId(long classNameId) {
091                    _mbDiscussion.setClassNameId(classNameId);
092            }
093    
094            /**
095            * Gets the class p k of this message boards discussion.
096            *
097            * @return the class p k of this message boards discussion
098            */
099            public long getClassPK() {
100                    return _mbDiscussion.getClassPK();
101            }
102    
103            /**
104            * Sets the class p k of this message boards discussion.
105            *
106            * @param classPK the class p k of this message boards discussion
107            */
108            public void setClassPK(long classPK) {
109                    _mbDiscussion.setClassPK(classPK);
110            }
111    
112            /**
113            * Gets the thread id of this message boards discussion.
114            *
115            * @return the thread id of this message boards discussion
116            */
117            public long getThreadId() {
118                    return _mbDiscussion.getThreadId();
119            }
120    
121            /**
122            * Sets the thread id of this message boards discussion.
123            *
124            * @param threadId the thread id of this message boards discussion
125            */
126            public void setThreadId(long threadId) {
127                    _mbDiscussion.setThreadId(threadId);
128            }
129    
130            public boolean isNew() {
131                    return _mbDiscussion.isNew();
132            }
133    
134            public void setNew(boolean n) {
135                    _mbDiscussion.setNew(n);
136            }
137    
138            public boolean isCachedModel() {
139                    return _mbDiscussion.isCachedModel();
140            }
141    
142            public void setCachedModel(boolean cachedModel) {
143                    _mbDiscussion.setCachedModel(cachedModel);
144            }
145    
146            public boolean isEscapedModel() {
147                    return _mbDiscussion.isEscapedModel();
148            }
149    
150            public void setEscapedModel(boolean escapedModel) {
151                    _mbDiscussion.setEscapedModel(escapedModel);
152            }
153    
154            public java.io.Serializable getPrimaryKeyObj() {
155                    return _mbDiscussion.getPrimaryKeyObj();
156            }
157    
158            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
159                    return _mbDiscussion.getExpandoBridge();
160            }
161    
162            public void setExpandoBridgeAttributes(
163                    com.liferay.portal.service.ServiceContext serviceContext) {
164                    _mbDiscussion.setExpandoBridgeAttributes(serviceContext);
165            }
166    
167            public java.lang.Object clone() {
168                    return _mbDiscussion.clone();
169            }
170    
171            public int compareTo(
172                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
173                    return _mbDiscussion.compareTo(mbDiscussion);
174            }
175    
176            public int hashCode() {
177                    return _mbDiscussion.hashCode();
178            }
179    
180            public com.liferay.portlet.messageboards.model.MBDiscussion toEscapedModel() {
181                    return _mbDiscussion.toEscapedModel();
182            }
183    
184            public java.lang.String toString() {
185                    return _mbDiscussion.toString();
186            }
187    
188            public java.lang.String toXmlString() {
189                    return _mbDiscussion.toXmlString();
190            }
191    
192            public MBDiscussion getWrappedMBDiscussion() {
193                    return _mbDiscussion;
194            }
195    
196            private MBDiscussion _mbDiscussion;
197    }