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