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 MBDiscussion}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBDiscussion
026     * @generated
027     */
028    public class MBDiscussionWrapper implements MBDiscussion,
029            ModelWrapper<MBDiscussion> {
030            public MBDiscussionWrapper(MBDiscussion mbDiscussion) {
031                    _mbDiscussion = mbDiscussion;
032            }
033    
034            public Class<?> getModelClass() {
035                    return MBDiscussion.class;
036            }
037    
038            public String getModelClassName() {
039                    return MBDiscussion.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this message boards discussion.
044            *
045            * @return the primary key of this message boards discussion
046            */
047            public long getPrimaryKey() {
048                    return _mbDiscussion.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this message boards discussion.
053            *
054            * @param primaryKey the primary key of this message boards discussion
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _mbDiscussion.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the discussion ID of this message boards discussion.
062            *
063            * @return the discussion ID of this message boards discussion
064            */
065            public long getDiscussionId() {
066                    return _mbDiscussion.getDiscussionId();
067            }
068    
069            /**
070            * Sets the discussion ID of this message boards discussion.
071            *
072            * @param discussionId the discussion ID of this message boards discussion
073            */
074            public void setDiscussionId(long discussionId) {
075                    _mbDiscussion.setDiscussionId(discussionId);
076            }
077    
078            /**
079            * Returns the fully qualified class name of this message boards discussion.
080            *
081            * @return the fully qualified class name of this message boards discussion
082            */
083            public java.lang.String getClassName() {
084                    return _mbDiscussion.getClassName();
085            }
086    
087            /**
088            * Returns the class name ID of this message boards discussion.
089            *
090            * @return the class name ID of this message boards discussion
091            */
092            public long getClassNameId() {
093                    return _mbDiscussion.getClassNameId();
094            }
095    
096            /**
097            * Sets the class name ID of this message boards discussion.
098            *
099            * @param classNameId the class name ID of this message boards discussion
100            */
101            public void setClassNameId(long classNameId) {
102                    _mbDiscussion.setClassNameId(classNameId);
103            }
104    
105            /**
106            * Returns the class p k of this message boards discussion.
107            *
108            * @return the class p k of this message boards discussion
109            */
110            public long getClassPK() {
111                    return _mbDiscussion.getClassPK();
112            }
113    
114            /**
115            * Sets the class p k of this message boards discussion.
116            *
117            * @param classPK the class p k of this message boards discussion
118            */
119            public void setClassPK(long classPK) {
120                    _mbDiscussion.setClassPK(classPK);
121            }
122    
123            /**
124            * Returns the thread ID of this message boards discussion.
125            *
126            * @return the thread ID of this message boards discussion
127            */
128            public long getThreadId() {
129                    return _mbDiscussion.getThreadId();
130            }
131    
132            /**
133            * Sets the thread ID of this message boards discussion.
134            *
135            * @param threadId the thread ID of this message boards discussion
136            */
137            public void setThreadId(long threadId) {
138                    _mbDiscussion.setThreadId(threadId);
139            }
140    
141            public boolean isNew() {
142                    return _mbDiscussion.isNew();
143            }
144    
145            public void setNew(boolean n) {
146                    _mbDiscussion.setNew(n);
147            }
148    
149            public boolean isCachedModel() {
150                    return _mbDiscussion.isCachedModel();
151            }
152    
153            public void setCachedModel(boolean cachedModel) {
154                    _mbDiscussion.setCachedModel(cachedModel);
155            }
156    
157            public boolean isEscapedModel() {
158                    return _mbDiscussion.isEscapedModel();
159            }
160    
161            public java.io.Serializable getPrimaryKeyObj() {
162                    return _mbDiscussion.getPrimaryKeyObj();
163            }
164    
165            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
166                    _mbDiscussion.setPrimaryKeyObj(primaryKeyObj);
167            }
168    
169            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
170                    return _mbDiscussion.getExpandoBridge();
171            }
172    
173            public void setExpandoBridgeAttributes(
174                    com.liferay.portal.service.ServiceContext serviceContext) {
175                    _mbDiscussion.setExpandoBridgeAttributes(serviceContext);
176            }
177    
178            @Override
179            public java.lang.Object clone() {
180                    return new MBDiscussionWrapper((MBDiscussion)_mbDiscussion.clone());
181            }
182    
183            public int compareTo(
184                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
185                    return _mbDiscussion.compareTo(mbDiscussion);
186            }
187    
188            @Override
189            public int hashCode() {
190                    return _mbDiscussion.hashCode();
191            }
192    
193            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBDiscussion> toCacheModel() {
194                    return _mbDiscussion.toCacheModel();
195            }
196    
197            public com.liferay.portlet.messageboards.model.MBDiscussion toEscapedModel() {
198                    return new MBDiscussionWrapper(_mbDiscussion.toEscapedModel());
199            }
200    
201            @Override
202            public java.lang.String toString() {
203                    return _mbDiscussion.toString();
204            }
205    
206            public java.lang.String toXmlString() {
207                    return _mbDiscussion.toXmlString();
208            }
209    
210            public void persist()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    _mbDiscussion.persist();
213            }
214    
215            /**
216             * @deprecated Renamed to {@link #getWrappedModel}
217             */
218            public MBDiscussion getWrappedMBDiscussion() {
219                    return _mbDiscussion;
220            }
221    
222            public MBDiscussion getWrappedModel() {
223                    return _mbDiscussion;
224            }
225    
226            public void resetOriginalValues() {
227                    _mbDiscussion.resetOriginalValues();
228            }
229    
230            private MBDiscussion _mbDiscussion;
231    }