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.journal.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link JournalArticleImage}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       JournalArticleImage
026     * @generated
027     */
028    public class JournalArticleImageWrapper implements JournalArticleImage,
029            ModelWrapper<JournalArticleImage> {
030            public JournalArticleImageWrapper(JournalArticleImage journalArticleImage) {
031                    _journalArticleImage = journalArticleImage;
032            }
033    
034            public Class<?> getModelClass() {
035                    return JournalArticleImage.class;
036            }
037    
038            public String getModelClassName() {
039                    return JournalArticleImage.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this journal article image.
044            *
045            * @return the primary key of this journal article image
046            */
047            public long getPrimaryKey() {
048                    return _journalArticleImage.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this journal article image.
053            *
054            * @param primaryKey the primary key of this journal article image
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _journalArticleImage.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the article image ID of this journal article image.
062            *
063            * @return the article image ID of this journal article image
064            */
065            public long getArticleImageId() {
066                    return _journalArticleImage.getArticleImageId();
067            }
068    
069            /**
070            * Sets the article image ID of this journal article image.
071            *
072            * @param articleImageId the article image ID of this journal article image
073            */
074            public void setArticleImageId(long articleImageId) {
075                    _journalArticleImage.setArticleImageId(articleImageId);
076            }
077    
078            /**
079            * Returns the group ID of this journal article image.
080            *
081            * @return the group ID of this journal article image
082            */
083            public long getGroupId() {
084                    return _journalArticleImage.getGroupId();
085            }
086    
087            /**
088            * Sets the group ID of this journal article image.
089            *
090            * @param groupId the group ID of this journal article image
091            */
092            public void setGroupId(long groupId) {
093                    _journalArticleImage.setGroupId(groupId);
094            }
095    
096            /**
097            * Returns the article ID of this journal article image.
098            *
099            * @return the article ID of this journal article image
100            */
101            public java.lang.String getArticleId() {
102                    return _journalArticleImage.getArticleId();
103            }
104    
105            /**
106            * Sets the article ID of this journal article image.
107            *
108            * @param articleId the article ID of this journal article image
109            */
110            public void setArticleId(java.lang.String articleId) {
111                    _journalArticleImage.setArticleId(articleId);
112            }
113    
114            /**
115            * Returns the version of this journal article image.
116            *
117            * @return the version of this journal article image
118            */
119            public double getVersion() {
120                    return _journalArticleImage.getVersion();
121            }
122    
123            /**
124            * Sets the version of this journal article image.
125            *
126            * @param version the version of this journal article image
127            */
128            public void setVersion(double version) {
129                    _journalArticleImage.setVersion(version);
130            }
131    
132            /**
133            * Returns the el instance ID of this journal article image.
134            *
135            * @return the el instance ID of this journal article image
136            */
137            public java.lang.String getElInstanceId() {
138                    return _journalArticleImage.getElInstanceId();
139            }
140    
141            /**
142            * Sets the el instance ID of this journal article image.
143            *
144            * @param elInstanceId the el instance ID of this journal article image
145            */
146            public void setElInstanceId(java.lang.String elInstanceId) {
147                    _journalArticleImage.setElInstanceId(elInstanceId);
148            }
149    
150            /**
151            * Returns the el name of this journal article image.
152            *
153            * @return the el name of this journal article image
154            */
155            public java.lang.String getElName() {
156                    return _journalArticleImage.getElName();
157            }
158    
159            /**
160            * Sets the el name of this journal article image.
161            *
162            * @param elName the el name of this journal article image
163            */
164            public void setElName(java.lang.String elName) {
165                    _journalArticleImage.setElName(elName);
166            }
167    
168            /**
169            * Returns the language ID of this journal article image.
170            *
171            * @return the language ID of this journal article image
172            */
173            public java.lang.String getLanguageId() {
174                    return _journalArticleImage.getLanguageId();
175            }
176    
177            /**
178            * Sets the language ID of this journal article image.
179            *
180            * @param languageId the language ID of this journal article image
181            */
182            public void setLanguageId(java.lang.String languageId) {
183                    _journalArticleImage.setLanguageId(languageId);
184            }
185    
186            /**
187            * Returns the temp image of this journal article image.
188            *
189            * @return the temp image of this journal article image
190            */
191            public boolean getTempImage() {
192                    return _journalArticleImage.getTempImage();
193            }
194    
195            /**
196            * Returns <code>true</code> if this journal article image is temp image.
197            *
198            * @return <code>true</code> if this journal article image is temp image; <code>false</code> otherwise
199            */
200            public boolean isTempImage() {
201                    return _journalArticleImage.isTempImage();
202            }
203    
204            /**
205            * Sets whether this journal article image is temp image.
206            *
207            * @param tempImage the temp image of this journal article image
208            */
209            public void setTempImage(boolean tempImage) {
210                    _journalArticleImage.setTempImage(tempImage);
211            }
212    
213            public boolean isNew() {
214                    return _journalArticleImage.isNew();
215            }
216    
217            public void setNew(boolean n) {
218                    _journalArticleImage.setNew(n);
219            }
220    
221            public boolean isCachedModel() {
222                    return _journalArticleImage.isCachedModel();
223            }
224    
225            public void setCachedModel(boolean cachedModel) {
226                    _journalArticleImage.setCachedModel(cachedModel);
227            }
228    
229            public boolean isEscapedModel() {
230                    return _journalArticleImage.isEscapedModel();
231            }
232    
233            public java.io.Serializable getPrimaryKeyObj() {
234                    return _journalArticleImage.getPrimaryKeyObj();
235            }
236    
237            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
238                    _journalArticleImage.setPrimaryKeyObj(primaryKeyObj);
239            }
240    
241            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
242                    return _journalArticleImage.getExpandoBridge();
243            }
244    
245            public void setExpandoBridgeAttributes(
246                    com.liferay.portal.service.ServiceContext serviceContext) {
247                    _journalArticleImage.setExpandoBridgeAttributes(serviceContext);
248            }
249    
250            @Override
251            public java.lang.Object clone() {
252                    return new JournalArticleImageWrapper((JournalArticleImage)_journalArticleImage.clone());
253            }
254    
255            public int compareTo(
256                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
257                    return _journalArticleImage.compareTo(journalArticleImage);
258            }
259    
260            @Override
261            public int hashCode() {
262                    return _journalArticleImage.hashCode();
263            }
264    
265            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalArticleImage> toCacheModel() {
266                    return _journalArticleImage.toCacheModel();
267            }
268    
269            public com.liferay.portlet.journal.model.JournalArticleImage toEscapedModel() {
270                    return new JournalArticleImageWrapper(_journalArticleImage.toEscapedModel());
271            }
272    
273            @Override
274            public java.lang.String toString() {
275                    return _journalArticleImage.toString();
276            }
277    
278            public java.lang.String toXmlString() {
279                    return _journalArticleImage.toXmlString();
280            }
281    
282            public void persist()
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    _journalArticleImage.persist();
285            }
286    
287            /**
288             * @deprecated Renamed to {@link #getWrappedModel}
289             */
290            public JournalArticleImage getWrappedJournalArticleImage() {
291                    return _journalArticleImage;
292            }
293    
294            public JournalArticleImage getWrappedModel() {
295                    return _journalArticleImage;
296            }
297    
298            public void resetOriginalValues() {
299                    _journalArticleImage.resetOriginalValues();
300            }
301    
302            private JournalArticleImage _journalArticleImage;
303    }