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