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.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link SCProductVersion}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       SCProductVersion
030     * @generated
031     */
032    public class SCProductVersionWrapper implements SCProductVersion,
033            ModelWrapper<SCProductVersion> {
034            public SCProductVersionWrapper(SCProductVersion scProductVersion) {
035                    _scProductVersion = scProductVersion;
036            }
037    
038            public Class<?> getModelClass() {
039                    return SCProductVersion.class;
040            }
041    
042            public String getModelClassName() {
043                    return SCProductVersion.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("productVersionId", getProductVersionId());
050                    attributes.put("companyId", getCompanyId());
051                    attributes.put("userId", getUserId());
052                    attributes.put("userName", getUserName());
053                    attributes.put("createDate", getCreateDate());
054                    attributes.put("modifiedDate", getModifiedDate());
055                    attributes.put("productEntryId", getProductEntryId());
056                    attributes.put("version", getVersion());
057                    attributes.put("changeLog", getChangeLog());
058                    attributes.put("downloadPageURL", getDownloadPageURL());
059                    attributes.put("directDownloadURL", getDirectDownloadURL());
060                    attributes.put("repoStoreArtifact", getRepoStoreArtifact());
061    
062                    return attributes;
063            }
064    
065            public void setModelAttributes(Map<String, Object> attributes) {
066                    Long productVersionId = (Long)attributes.get("productVersionId");
067    
068                    if (productVersionId != null) {
069                            setProductVersionId(productVersionId);
070                    }
071    
072                    Long companyId = (Long)attributes.get("companyId");
073    
074                    if (companyId != null) {
075                            setCompanyId(companyId);
076                    }
077    
078                    Long userId = (Long)attributes.get("userId");
079    
080                    if (userId != null) {
081                            setUserId(userId);
082                    }
083    
084                    String userName = (String)attributes.get("userName");
085    
086                    if (userName != null) {
087                            setUserName(userName);
088                    }
089    
090                    Date createDate = (Date)attributes.get("createDate");
091    
092                    if (createDate != null) {
093                            setCreateDate(createDate);
094                    }
095    
096                    Date modifiedDate = (Date)attributes.get("modifiedDate");
097    
098                    if (modifiedDate != null) {
099                            setModifiedDate(modifiedDate);
100                    }
101    
102                    Long productEntryId = (Long)attributes.get("productEntryId");
103    
104                    if (productEntryId != null) {
105                            setProductEntryId(productEntryId);
106                    }
107    
108                    String version = (String)attributes.get("version");
109    
110                    if (version != null) {
111                            setVersion(version);
112                    }
113    
114                    String changeLog = (String)attributes.get("changeLog");
115    
116                    if (changeLog != null) {
117                            setChangeLog(changeLog);
118                    }
119    
120                    String downloadPageURL = (String)attributes.get("downloadPageURL");
121    
122                    if (downloadPageURL != null) {
123                            setDownloadPageURL(downloadPageURL);
124                    }
125    
126                    String directDownloadURL = (String)attributes.get("directDownloadURL");
127    
128                    if (directDownloadURL != null) {
129                            setDirectDownloadURL(directDownloadURL);
130                    }
131    
132                    Boolean repoStoreArtifact = (Boolean)attributes.get("repoStoreArtifact");
133    
134                    if (repoStoreArtifact != null) {
135                            setRepoStoreArtifact(repoStoreArtifact);
136                    }
137            }
138    
139            /**
140            * Returns the primary key of this s c product version.
141            *
142            * @return the primary key of this s c product version
143            */
144            public long getPrimaryKey() {
145                    return _scProductVersion.getPrimaryKey();
146            }
147    
148            /**
149            * Sets the primary key of this s c product version.
150            *
151            * @param primaryKey the primary key of this s c product version
152            */
153            public void setPrimaryKey(long primaryKey) {
154                    _scProductVersion.setPrimaryKey(primaryKey);
155            }
156    
157            /**
158            * Returns the product version ID of this s c product version.
159            *
160            * @return the product version ID of this s c product version
161            */
162            public long getProductVersionId() {
163                    return _scProductVersion.getProductVersionId();
164            }
165    
166            /**
167            * Sets the product version ID of this s c product version.
168            *
169            * @param productVersionId the product version ID of this s c product version
170            */
171            public void setProductVersionId(long productVersionId) {
172                    _scProductVersion.setProductVersionId(productVersionId);
173            }
174    
175            /**
176            * Returns the company ID of this s c product version.
177            *
178            * @return the company ID of this s c product version
179            */
180            public long getCompanyId() {
181                    return _scProductVersion.getCompanyId();
182            }
183    
184            /**
185            * Sets the company ID of this s c product version.
186            *
187            * @param companyId the company ID of this s c product version
188            */
189            public void setCompanyId(long companyId) {
190                    _scProductVersion.setCompanyId(companyId);
191            }
192    
193            /**
194            * Returns the user ID of this s c product version.
195            *
196            * @return the user ID of this s c product version
197            */
198            public long getUserId() {
199                    return _scProductVersion.getUserId();
200            }
201    
202            /**
203            * Sets the user ID of this s c product version.
204            *
205            * @param userId the user ID of this s c product version
206            */
207            public void setUserId(long userId) {
208                    _scProductVersion.setUserId(userId);
209            }
210    
211            /**
212            * Returns the user uuid of this s c product version.
213            *
214            * @return the user uuid of this s c product version
215            * @throws SystemException if a system exception occurred
216            */
217            public java.lang.String getUserUuid()
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _scProductVersion.getUserUuid();
220            }
221    
222            /**
223            * Sets the user uuid of this s c product version.
224            *
225            * @param userUuid the user uuid of this s c product version
226            */
227            public void setUserUuid(java.lang.String userUuid) {
228                    _scProductVersion.setUserUuid(userUuid);
229            }
230    
231            /**
232            * Returns the user name of this s c product version.
233            *
234            * @return the user name of this s c product version
235            */
236            public java.lang.String getUserName() {
237                    return _scProductVersion.getUserName();
238            }
239    
240            /**
241            * Sets the user name of this s c product version.
242            *
243            * @param userName the user name of this s c product version
244            */
245            public void setUserName(java.lang.String userName) {
246                    _scProductVersion.setUserName(userName);
247            }
248    
249            /**
250            * Returns the create date of this s c product version.
251            *
252            * @return the create date of this s c product version
253            */
254            public java.util.Date getCreateDate() {
255                    return _scProductVersion.getCreateDate();
256            }
257    
258            /**
259            * Sets the create date of this s c product version.
260            *
261            * @param createDate the create date of this s c product version
262            */
263            public void setCreateDate(java.util.Date createDate) {
264                    _scProductVersion.setCreateDate(createDate);
265            }
266    
267            /**
268            * Returns the modified date of this s c product version.
269            *
270            * @return the modified date of this s c product version
271            */
272            public java.util.Date getModifiedDate() {
273                    return _scProductVersion.getModifiedDate();
274            }
275    
276            /**
277            * Sets the modified date of this s c product version.
278            *
279            * @param modifiedDate the modified date of this s c product version
280            */
281            public void setModifiedDate(java.util.Date modifiedDate) {
282                    _scProductVersion.setModifiedDate(modifiedDate);
283            }
284    
285            /**
286            * Returns the product entry ID of this s c product version.
287            *
288            * @return the product entry ID of this s c product version
289            */
290            public long getProductEntryId() {
291                    return _scProductVersion.getProductEntryId();
292            }
293    
294            /**
295            * Sets the product entry ID of this s c product version.
296            *
297            * @param productEntryId the product entry ID of this s c product version
298            */
299            public void setProductEntryId(long productEntryId) {
300                    _scProductVersion.setProductEntryId(productEntryId);
301            }
302    
303            /**
304            * Returns the version of this s c product version.
305            *
306            * @return the version of this s c product version
307            */
308            public java.lang.String getVersion() {
309                    return _scProductVersion.getVersion();
310            }
311    
312            /**
313            * Sets the version of this s c product version.
314            *
315            * @param version the version of this s c product version
316            */
317            public void setVersion(java.lang.String version) {
318                    _scProductVersion.setVersion(version);
319            }
320    
321            /**
322            * Returns the change log of this s c product version.
323            *
324            * @return the change log of this s c product version
325            */
326            public java.lang.String getChangeLog() {
327                    return _scProductVersion.getChangeLog();
328            }
329    
330            /**
331            * Sets the change log of this s c product version.
332            *
333            * @param changeLog the change log of this s c product version
334            */
335            public void setChangeLog(java.lang.String changeLog) {
336                    _scProductVersion.setChangeLog(changeLog);
337            }
338    
339            /**
340            * Returns the download page u r l of this s c product version.
341            *
342            * @return the download page u r l of this s c product version
343            */
344            public java.lang.String getDownloadPageURL() {
345                    return _scProductVersion.getDownloadPageURL();
346            }
347    
348            /**
349            * Sets the download page u r l of this s c product version.
350            *
351            * @param downloadPageURL the download page u r l of this s c product version
352            */
353            public void setDownloadPageURL(java.lang.String downloadPageURL) {
354                    _scProductVersion.setDownloadPageURL(downloadPageURL);
355            }
356    
357            /**
358            * Returns the direct download u r l of this s c product version.
359            *
360            * @return the direct download u r l of this s c product version
361            */
362            public java.lang.String getDirectDownloadURL() {
363                    return _scProductVersion.getDirectDownloadURL();
364            }
365    
366            /**
367            * Sets the direct download u r l of this s c product version.
368            *
369            * @param directDownloadURL the direct download u r l of this s c product version
370            */
371            public void setDirectDownloadURL(java.lang.String directDownloadURL) {
372                    _scProductVersion.setDirectDownloadURL(directDownloadURL);
373            }
374    
375            /**
376            * Returns the repo store artifact of this s c product version.
377            *
378            * @return the repo store artifact of this s c product version
379            */
380            public boolean getRepoStoreArtifact() {
381                    return _scProductVersion.getRepoStoreArtifact();
382            }
383    
384            /**
385            * Returns <code>true</code> if this s c product version is repo store artifact.
386            *
387            * @return <code>true</code> if this s c product version is repo store artifact; <code>false</code> otherwise
388            */
389            public boolean isRepoStoreArtifact() {
390                    return _scProductVersion.isRepoStoreArtifact();
391            }
392    
393            /**
394            * Sets whether this s c product version is repo store artifact.
395            *
396            * @param repoStoreArtifact the repo store artifact of this s c product version
397            */
398            public void setRepoStoreArtifact(boolean repoStoreArtifact) {
399                    _scProductVersion.setRepoStoreArtifact(repoStoreArtifact);
400            }
401    
402            public boolean isNew() {
403                    return _scProductVersion.isNew();
404            }
405    
406            public void setNew(boolean n) {
407                    _scProductVersion.setNew(n);
408            }
409    
410            public boolean isCachedModel() {
411                    return _scProductVersion.isCachedModel();
412            }
413    
414            public void setCachedModel(boolean cachedModel) {
415                    _scProductVersion.setCachedModel(cachedModel);
416            }
417    
418            public boolean isEscapedModel() {
419                    return _scProductVersion.isEscapedModel();
420            }
421    
422            public java.io.Serializable getPrimaryKeyObj() {
423                    return _scProductVersion.getPrimaryKeyObj();
424            }
425    
426            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
427                    _scProductVersion.setPrimaryKeyObj(primaryKeyObj);
428            }
429    
430            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
431                    return _scProductVersion.getExpandoBridge();
432            }
433    
434            public void setExpandoBridgeAttributes(
435                    com.liferay.portal.service.ServiceContext serviceContext) {
436                    _scProductVersion.setExpandoBridgeAttributes(serviceContext);
437            }
438    
439            @Override
440            public java.lang.Object clone() {
441                    return new SCProductVersionWrapper((SCProductVersion)_scProductVersion.clone());
442            }
443    
444            public int compareTo(
445                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion) {
446                    return _scProductVersion.compareTo(scProductVersion);
447            }
448    
449            @Override
450            public int hashCode() {
451                    return _scProductVersion.hashCode();
452            }
453    
454            public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCProductVersion> toCacheModel() {
455                    return _scProductVersion.toCacheModel();
456            }
457    
458            public com.liferay.portlet.softwarecatalog.model.SCProductVersion toEscapedModel() {
459                    return new SCProductVersionWrapper(_scProductVersion.toEscapedModel());
460            }
461    
462            public com.liferay.portlet.softwarecatalog.model.SCProductVersion toUnescapedModel() {
463                    return new SCProductVersionWrapper(_scProductVersion.toUnescapedModel());
464            }
465    
466            @Override
467            public java.lang.String toString() {
468                    return _scProductVersion.toString();
469            }
470    
471            public java.lang.String toXmlString() {
472                    return _scProductVersion.toXmlString();
473            }
474    
475            public void persist()
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    _scProductVersion.persist();
478            }
479    
480            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions()
481                    throws com.liferay.portal.kernel.exception.SystemException {
482                    return _scProductVersion.getFrameworkVersions();
483            }
484    
485            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry() {
486                    return _scProductVersion.getProductEntry();
487            }
488    
489            /**
490             * @deprecated Renamed to {@link #getWrappedModel}
491             */
492            public SCProductVersion getWrappedSCProductVersion() {
493                    return _scProductVersion;
494            }
495    
496            public SCProductVersion getWrappedModel() {
497                    return _scProductVersion;
498            }
499    
500            public void resetOriginalValues() {
501                    _scProductVersion.resetOriginalValues();
502            }
503    
504            private SCProductVersion _scProductVersion;
505    }