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.softwarecatalog.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 SCProductScreenshot}.
025     * </p>
026     *
027     * @author    Brian Wing Shun Chan
028     * @see       SCProductScreenshot
029     * @generated
030     */
031    public class SCProductScreenshotWrapper implements SCProductScreenshot,
032            ModelWrapper<SCProductScreenshot> {
033            public SCProductScreenshotWrapper(SCProductScreenshot scProductScreenshot) {
034                    _scProductScreenshot = scProductScreenshot;
035            }
036    
037            public Class<?> getModelClass() {
038                    return SCProductScreenshot.class;
039            }
040    
041            public String getModelClassName() {
042                    return SCProductScreenshot.class.getName();
043            }
044    
045            public Map<String, Object> getModelAttributes() {
046                    Map<String, Object> attributes = new HashMap<String, Object>();
047    
048                    attributes.put("productScreenshotId", getProductScreenshotId());
049                    attributes.put("companyId", getCompanyId());
050                    attributes.put("groupId", getGroupId());
051                    attributes.put("productEntryId", getProductEntryId());
052                    attributes.put("thumbnailId", getThumbnailId());
053                    attributes.put("fullImageId", getFullImageId());
054                    attributes.put("priority", getPriority());
055    
056                    return attributes;
057            }
058    
059            public void setModelAttributes(Map<String, Object> attributes) {
060                    Long productScreenshotId = (Long)attributes.get("productScreenshotId");
061    
062                    if (productScreenshotId != null) {
063                            setProductScreenshotId(productScreenshotId);
064                    }
065    
066                    Long companyId = (Long)attributes.get("companyId");
067    
068                    if (companyId != null) {
069                            setCompanyId(companyId);
070                    }
071    
072                    Long groupId = (Long)attributes.get("groupId");
073    
074                    if (groupId != null) {
075                            setGroupId(groupId);
076                    }
077    
078                    Long productEntryId = (Long)attributes.get("productEntryId");
079    
080                    if (productEntryId != null) {
081                            setProductEntryId(productEntryId);
082                    }
083    
084                    Long thumbnailId = (Long)attributes.get("thumbnailId");
085    
086                    if (thumbnailId != null) {
087                            setThumbnailId(thumbnailId);
088                    }
089    
090                    Long fullImageId = (Long)attributes.get("fullImageId");
091    
092                    if (fullImageId != null) {
093                            setFullImageId(fullImageId);
094                    }
095    
096                    Integer priority = (Integer)attributes.get("priority");
097    
098                    if (priority != null) {
099                            setPriority(priority);
100                    }
101            }
102    
103            /**
104            * Returns the primary key of this s c product screenshot.
105            *
106            * @return the primary key of this s c product screenshot
107            */
108            public long getPrimaryKey() {
109                    return _scProductScreenshot.getPrimaryKey();
110            }
111    
112            /**
113            * Sets the primary key of this s c product screenshot.
114            *
115            * @param primaryKey the primary key of this s c product screenshot
116            */
117            public void setPrimaryKey(long primaryKey) {
118                    _scProductScreenshot.setPrimaryKey(primaryKey);
119            }
120    
121            /**
122            * Returns the product screenshot ID of this s c product screenshot.
123            *
124            * @return the product screenshot ID of this s c product screenshot
125            */
126            public long getProductScreenshotId() {
127                    return _scProductScreenshot.getProductScreenshotId();
128            }
129    
130            /**
131            * Sets the product screenshot ID of this s c product screenshot.
132            *
133            * @param productScreenshotId the product screenshot ID of this s c product screenshot
134            */
135            public void setProductScreenshotId(long productScreenshotId) {
136                    _scProductScreenshot.setProductScreenshotId(productScreenshotId);
137            }
138    
139            /**
140            * Returns the company ID of this s c product screenshot.
141            *
142            * @return the company ID of this s c product screenshot
143            */
144            public long getCompanyId() {
145                    return _scProductScreenshot.getCompanyId();
146            }
147    
148            /**
149            * Sets the company ID of this s c product screenshot.
150            *
151            * @param companyId the company ID of this s c product screenshot
152            */
153            public void setCompanyId(long companyId) {
154                    _scProductScreenshot.setCompanyId(companyId);
155            }
156    
157            /**
158            * Returns the group ID of this s c product screenshot.
159            *
160            * @return the group ID of this s c product screenshot
161            */
162            public long getGroupId() {
163                    return _scProductScreenshot.getGroupId();
164            }
165    
166            /**
167            * Sets the group ID of this s c product screenshot.
168            *
169            * @param groupId the group ID of this s c product screenshot
170            */
171            public void setGroupId(long groupId) {
172                    _scProductScreenshot.setGroupId(groupId);
173            }
174    
175            /**
176            * Returns the product entry ID of this s c product screenshot.
177            *
178            * @return the product entry ID of this s c product screenshot
179            */
180            public long getProductEntryId() {
181                    return _scProductScreenshot.getProductEntryId();
182            }
183    
184            /**
185            * Sets the product entry ID of this s c product screenshot.
186            *
187            * @param productEntryId the product entry ID of this s c product screenshot
188            */
189            public void setProductEntryId(long productEntryId) {
190                    _scProductScreenshot.setProductEntryId(productEntryId);
191            }
192    
193            /**
194            * Returns the thumbnail ID of this s c product screenshot.
195            *
196            * @return the thumbnail ID of this s c product screenshot
197            */
198            public long getThumbnailId() {
199                    return _scProductScreenshot.getThumbnailId();
200            }
201    
202            /**
203            * Sets the thumbnail ID of this s c product screenshot.
204            *
205            * @param thumbnailId the thumbnail ID of this s c product screenshot
206            */
207            public void setThumbnailId(long thumbnailId) {
208                    _scProductScreenshot.setThumbnailId(thumbnailId);
209            }
210    
211            /**
212            * Returns the full image ID of this s c product screenshot.
213            *
214            * @return the full image ID of this s c product screenshot
215            */
216            public long getFullImageId() {
217                    return _scProductScreenshot.getFullImageId();
218            }
219    
220            /**
221            * Sets the full image ID of this s c product screenshot.
222            *
223            * @param fullImageId the full image ID of this s c product screenshot
224            */
225            public void setFullImageId(long fullImageId) {
226                    _scProductScreenshot.setFullImageId(fullImageId);
227            }
228    
229            /**
230            * Returns the priority of this s c product screenshot.
231            *
232            * @return the priority of this s c product screenshot
233            */
234            public int getPriority() {
235                    return _scProductScreenshot.getPriority();
236            }
237    
238            /**
239            * Sets the priority of this s c product screenshot.
240            *
241            * @param priority the priority of this s c product screenshot
242            */
243            public void setPriority(int priority) {
244                    _scProductScreenshot.setPriority(priority);
245            }
246    
247            public boolean isNew() {
248                    return _scProductScreenshot.isNew();
249            }
250    
251            public void setNew(boolean n) {
252                    _scProductScreenshot.setNew(n);
253            }
254    
255            public boolean isCachedModel() {
256                    return _scProductScreenshot.isCachedModel();
257            }
258    
259            public void setCachedModel(boolean cachedModel) {
260                    _scProductScreenshot.setCachedModel(cachedModel);
261            }
262    
263            public boolean isEscapedModel() {
264                    return _scProductScreenshot.isEscapedModel();
265            }
266    
267            public java.io.Serializable getPrimaryKeyObj() {
268                    return _scProductScreenshot.getPrimaryKeyObj();
269            }
270    
271            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
272                    _scProductScreenshot.setPrimaryKeyObj(primaryKeyObj);
273            }
274    
275            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
276                    return _scProductScreenshot.getExpandoBridge();
277            }
278    
279            public void setExpandoBridgeAttributes(
280                    com.liferay.portal.service.ServiceContext serviceContext) {
281                    _scProductScreenshot.setExpandoBridgeAttributes(serviceContext);
282            }
283    
284            @Override
285            public java.lang.Object clone() {
286                    return new SCProductScreenshotWrapper((SCProductScreenshot)_scProductScreenshot.clone());
287            }
288    
289            public int compareTo(
290                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) {
291                    return _scProductScreenshot.compareTo(scProductScreenshot);
292            }
293    
294            @Override
295            public int hashCode() {
296                    return _scProductScreenshot.hashCode();
297            }
298    
299            public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> toCacheModel() {
300                    return _scProductScreenshot.toCacheModel();
301            }
302    
303            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot toEscapedModel() {
304                    return new SCProductScreenshotWrapper(_scProductScreenshot.toEscapedModel());
305            }
306    
307            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot toUnescapedModel() {
308                    return new SCProductScreenshotWrapper(_scProductScreenshot.toUnescapedModel());
309            }
310    
311            @Override
312            public java.lang.String toString() {
313                    return _scProductScreenshot.toString();
314            }
315    
316            public java.lang.String toXmlString() {
317                    return _scProductScreenshot.toXmlString();
318            }
319    
320            public void persist()
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    _scProductScreenshot.persist();
323            }
324    
325            /**
326             * @deprecated Renamed to {@link #getWrappedModel}
327             */
328            public SCProductScreenshot getWrappedSCProductScreenshot() {
329                    return _scProductScreenshot;
330            }
331    
332            public SCProductScreenshot getWrappedModel() {
333                    return _scProductScreenshot;
334            }
335    
336            public void resetOriginalValues() {
337                    _scProductScreenshot.resetOriginalValues();
338            }
339    
340            private SCProductScreenshot _scProductScreenshot;
341    }