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 SCProductEntry}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       SCProductEntry
030     * @generated
031     */
032    public class SCProductEntryWrapper implements SCProductEntry,
033            ModelWrapper<SCProductEntry> {
034            public SCProductEntryWrapper(SCProductEntry scProductEntry) {
035                    _scProductEntry = scProductEntry;
036            }
037    
038            public Class<?> getModelClass() {
039                    return SCProductEntry.class;
040            }
041    
042            public String getModelClassName() {
043                    return SCProductEntry.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("productEntryId", getProductEntryId());
050                    attributes.put("groupId", getGroupId());
051                    attributes.put("companyId", getCompanyId());
052                    attributes.put("userId", getUserId());
053                    attributes.put("userName", getUserName());
054                    attributes.put("createDate", getCreateDate());
055                    attributes.put("modifiedDate", getModifiedDate());
056                    attributes.put("name", getName());
057                    attributes.put("type", getType());
058                    attributes.put("tags", getTags());
059                    attributes.put("shortDescription", getShortDescription());
060                    attributes.put("longDescription", getLongDescription());
061                    attributes.put("pageURL", getPageURL());
062                    attributes.put("author", getAuthor());
063                    attributes.put("repoGroupId", getRepoGroupId());
064                    attributes.put("repoArtifactId", getRepoArtifactId());
065    
066                    return attributes;
067            }
068    
069            public void setModelAttributes(Map<String, Object> attributes) {
070                    Long productEntryId = (Long)attributes.get("productEntryId");
071    
072                    if (productEntryId != null) {
073                            setProductEntryId(productEntryId);
074                    }
075    
076                    Long groupId = (Long)attributes.get("groupId");
077    
078                    if (groupId != null) {
079                            setGroupId(groupId);
080                    }
081    
082                    Long companyId = (Long)attributes.get("companyId");
083    
084                    if (companyId != null) {
085                            setCompanyId(companyId);
086                    }
087    
088                    Long userId = (Long)attributes.get("userId");
089    
090                    if (userId != null) {
091                            setUserId(userId);
092                    }
093    
094                    String userName = (String)attributes.get("userName");
095    
096                    if (userName != null) {
097                            setUserName(userName);
098                    }
099    
100                    Date createDate = (Date)attributes.get("createDate");
101    
102                    if (createDate != null) {
103                            setCreateDate(createDate);
104                    }
105    
106                    Date modifiedDate = (Date)attributes.get("modifiedDate");
107    
108                    if (modifiedDate != null) {
109                            setModifiedDate(modifiedDate);
110                    }
111    
112                    String name = (String)attributes.get("name");
113    
114                    if (name != null) {
115                            setName(name);
116                    }
117    
118                    String type = (String)attributes.get("type");
119    
120                    if (type != null) {
121                            setType(type);
122                    }
123    
124                    String tags = (String)attributes.get("tags");
125    
126                    if (tags != null) {
127                            setTags(tags);
128                    }
129    
130                    String shortDescription = (String)attributes.get("shortDescription");
131    
132                    if (shortDescription != null) {
133                            setShortDescription(shortDescription);
134                    }
135    
136                    String longDescription = (String)attributes.get("longDescription");
137    
138                    if (longDescription != null) {
139                            setLongDescription(longDescription);
140                    }
141    
142                    String pageURL = (String)attributes.get("pageURL");
143    
144                    if (pageURL != null) {
145                            setPageURL(pageURL);
146                    }
147    
148                    String author = (String)attributes.get("author");
149    
150                    if (author != null) {
151                            setAuthor(author);
152                    }
153    
154                    String repoGroupId = (String)attributes.get("repoGroupId");
155    
156                    if (repoGroupId != null) {
157                            setRepoGroupId(repoGroupId);
158                    }
159    
160                    String repoArtifactId = (String)attributes.get("repoArtifactId");
161    
162                    if (repoArtifactId != null) {
163                            setRepoArtifactId(repoArtifactId);
164                    }
165            }
166    
167            /**
168            * Returns the primary key of this s c product entry.
169            *
170            * @return the primary key of this s c product entry
171            */
172            public long getPrimaryKey() {
173                    return _scProductEntry.getPrimaryKey();
174            }
175    
176            /**
177            * Sets the primary key of this s c product entry.
178            *
179            * @param primaryKey the primary key of this s c product entry
180            */
181            public void setPrimaryKey(long primaryKey) {
182                    _scProductEntry.setPrimaryKey(primaryKey);
183            }
184    
185            /**
186            * Returns the product entry ID of this s c product entry.
187            *
188            * @return the product entry ID of this s c product entry
189            */
190            public long getProductEntryId() {
191                    return _scProductEntry.getProductEntryId();
192            }
193    
194            /**
195            * Sets the product entry ID of this s c product entry.
196            *
197            * @param productEntryId the product entry ID of this s c product entry
198            */
199            public void setProductEntryId(long productEntryId) {
200                    _scProductEntry.setProductEntryId(productEntryId);
201            }
202    
203            /**
204            * Returns the group ID of this s c product entry.
205            *
206            * @return the group ID of this s c product entry
207            */
208            public long getGroupId() {
209                    return _scProductEntry.getGroupId();
210            }
211    
212            /**
213            * Sets the group ID of this s c product entry.
214            *
215            * @param groupId the group ID of this s c product entry
216            */
217            public void setGroupId(long groupId) {
218                    _scProductEntry.setGroupId(groupId);
219            }
220    
221            /**
222            * Returns the company ID of this s c product entry.
223            *
224            * @return the company ID of this s c product entry
225            */
226            public long getCompanyId() {
227                    return _scProductEntry.getCompanyId();
228            }
229    
230            /**
231            * Sets the company ID of this s c product entry.
232            *
233            * @param companyId the company ID of this s c product entry
234            */
235            public void setCompanyId(long companyId) {
236                    _scProductEntry.setCompanyId(companyId);
237            }
238    
239            /**
240            * Returns the user ID of this s c product entry.
241            *
242            * @return the user ID of this s c product entry
243            */
244            public long getUserId() {
245                    return _scProductEntry.getUserId();
246            }
247    
248            /**
249            * Sets the user ID of this s c product entry.
250            *
251            * @param userId the user ID of this s c product entry
252            */
253            public void setUserId(long userId) {
254                    _scProductEntry.setUserId(userId);
255            }
256    
257            /**
258            * Returns the user uuid of this s c product entry.
259            *
260            * @return the user uuid of this s c product entry
261            * @throws SystemException if a system exception occurred
262            */
263            public java.lang.String getUserUuid()
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return _scProductEntry.getUserUuid();
266            }
267    
268            /**
269            * Sets the user uuid of this s c product entry.
270            *
271            * @param userUuid the user uuid of this s c product entry
272            */
273            public void setUserUuid(java.lang.String userUuid) {
274                    _scProductEntry.setUserUuid(userUuid);
275            }
276    
277            /**
278            * Returns the user name of this s c product entry.
279            *
280            * @return the user name of this s c product entry
281            */
282            public java.lang.String getUserName() {
283                    return _scProductEntry.getUserName();
284            }
285    
286            /**
287            * Sets the user name of this s c product entry.
288            *
289            * @param userName the user name of this s c product entry
290            */
291            public void setUserName(java.lang.String userName) {
292                    _scProductEntry.setUserName(userName);
293            }
294    
295            /**
296            * Returns the create date of this s c product entry.
297            *
298            * @return the create date of this s c product entry
299            */
300            public java.util.Date getCreateDate() {
301                    return _scProductEntry.getCreateDate();
302            }
303    
304            /**
305            * Sets the create date of this s c product entry.
306            *
307            * @param createDate the create date of this s c product entry
308            */
309            public void setCreateDate(java.util.Date createDate) {
310                    _scProductEntry.setCreateDate(createDate);
311            }
312    
313            /**
314            * Returns the modified date of this s c product entry.
315            *
316            * @return the modified date of this s c product entry
317            */
318            public java.util.Date getModifiedDate() {
319                    return _scProductEntry.getModifiedDate();
320            }
321    
322            /**
323            * Sets the modified date of this s c product entry.
324            *
325            * @param modifiedDate the modified date of this s c product entry
326            */
327            public void setModifiedDate(java.util.Date modifiedDate) {
328                    _scProductEntry.setModifiedDate(modifiedDate);
329            }
330    
331            /**
332            * Returns the name of this s c product entry.
333            *
334            * @return the name of this s c product entry
335            */
336            public java.lang.String getName() {
337                    return _scProductEntry.getName();
338            }
339    
340            /**
341            * Sets the name of this s c product entry.
342            *
343            * @param name the name of this s c product entry
344            */
345            public void setName(java.lang.String name) {
346                    _scProductEntry.setName(name);
347            }
348    
349            /**
350            * Returns the type of this s c product entry.
351            *
352            * @return the type of this s c product entry
353            */
354            public java.lang.String getType() {
355                    return _scProductEntry.getType();
356            }
357    
358            /**
359            * Sets the type of this s c product entry.
360            *
361            * @param type the type of this s c product entry
362            */
363            public void setType(java.lang.String type) {
364                    _scProductEntry.setType(type);
365            }
366    
367            /**
368            * Returns the tags of this s c product entry.
369            *
370            * @return the tags of this s c product entry
371            */
372            public java.lang.String getTags() {
373                    return _scProductEntry.getTags();
374            }
375    
376            /**
377            * Sets the tags of this s c product entry.
378            *
379            * @param tags the tags of this s c product entry
380            */
381            public void setTags(java.lang.String tags) {
382                    _scProductEntry.setTags(tags);
383            }
384    
385            /**
386            * Returns the short description of this s c product entry.
387            *
388            * @return the short description of this s c product entry
389            */
390            public java.lang.String getShortDescription() {
391                    return _scProductEntry.getShortDescription();
392            }
393    
394            /**
395            * Sets the short description of this s c product entry.
396            *
397            * @param shortDescription the short description of this s c product entry
398            */
399            public void setShortDescription(java.lang.String shortDescription) {
400                    _scProductEntry.setShortDescription(shortDescription);
401            }
402    
403            /**
404            * Returns the long description of this s c product entry.
405            *
406            * @return the long description of this s c product entry
407            */
408            public java.lang.String getLongDescription() {
409                    return _scProductEntry.getLongDescription();
410            }
411    
412            /**
413            * Sets the long description of this s c product entry.
414            *
415            * @param longDescription the long description of this s c product entry
416            */
417            public void setLongDescription(java.lang.String longDescription) {
418                    _scProductEntry.setLongDescription(longDescription);
419            }
420    
421            /**
422            * Returns the page u r l of this s c product entry.
423            *
424            * @return the page u r l of this s c product entry
425            */
426            public java.lang.String getPageURL() {
427                    return _scProductEntry.getPageURL();
428            }
429    
430            /**
431            * Sets the page u r l of this s c product entry.
432            *
433            * @param pageURL the page u r l of this s c product entry
434            */
435            public void setPageURL(java.lang.String pageURL) {
436                    _scProductEntry.setPageURL(pageURL);
437            }
438    
439            /**
440            * Returns the author of this s c product entry.
441            *
442            * @return the author of this s c product entry
443            */
444            public java.lang.String getAuthor() {
445                    return _scProductEntry.getAuthor();
446            }
447    
448            /**
449            * Sets the author of this s c product entry.
450            *
451            * @param author the author of this s c product entry
452            */
453            public void setAuthor(java.lang.String author) {
454                    _scProductEntry.setAuthor(author);
455            }
456    
457            /**
458            * Returns the repo group ID of this s c product entry.
459            *
460            * @return the repo group ID of this s c product entry
461            */
462            public java.lang.String getRepoGroupId() {
463                    return _scProductEntry.getRepoGroupId();
464            }
465    
466            /**
467            * Sets the repo group ID of this s c product entry.
468            *
469            * @param repoGroupId the repo group ID of this s c product entry
470            */
471            public void setRepoGroupId(java.lang.String repoGroupId) {
472                    _scProductEntry.setRepoGroupId(repoGroupId);
473            }
474    
475            /**
476            * Returns the repo artifact ID of this s c product entry.
477            *
478            * @return the repo artifact ID of this s c product entry
479            */
480            public java.lang.String getRepoArtifactId() {
481                    return _scProductEntry.getRepoArtifactId();
482            }
483    
484            /**
485            * Sets the repo artifact ID of this s c product entry.
486            *
487            * @param repoArtifactId the repo artifact ID of this s c product entry
488            */
489            public void setRepoArtifactId(java.lang.String repoArtifactId) {
490                    _scProductEntry.setRepoArtifactId(repoArtifactId);
491            }
492    
493            public boolean isNew() {
494                    return _scProductEntry.isNew();
495            }
496    
497            public void setNew(boolean n) {
498                    _scProductEntry.setNew(n);
499            }
500    
501            public boolean isCachedModel() {
502                    return _scProductEntry.isCachedModel();
503            }
504    
505            public void setCachedModel(boolean cachedModel) {
506                    _scProductEntry.setCachedModel(cachedModel);
507            }
508    
509            public boolean isEscapedModel() {
510                    return _scProductEntry.isEscapedModel();
511            }
512    
513            public java.io.Serializable getPrimaryKeyObj() {
514                    return _scProductEntry.getPrimaryKeyObj();
515            }
516    
517            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
518                    _scProductEntry.setPrimaryKeyObj(primaryKeyObj);
519            }
520    
521            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
522                    return _scProductEntry.getExpandoBridge();
523            }
524    
525            public void setExpandoBridgeAttributes(
526                    com.liferay.portal.service.ServiceContext serviceContext) {
527                    _scProductEntry.setExpandoBridgeAttributes(serviceContext);
528            }
529    
530            @Override
531            public java.lang.Object clone() {
532                    return new SCProductEntryWrapper((SCProductEntry)_scProductEntry.clone());
533            }
534    
535            public int compareTo(
536                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
537                    return _scProductEntry.compareTo(scProductEntry);
538            }
539    
540            @Override
541            public int hashCode() {
542                    return _scProductEntry.hashCode();
543            }
544    
545            public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCProductEntry> toCacheModel() {
546                    return _scProductEntry.toCacheModel();
547            }
548    
549            public com.liferay.portlet.softwarecatalog.model.SCProductEntry toEscapedModel() {
550                    return new SCProductEntryWrapper(_scProductEntry.toEscapedModel());
551            }
552    
553            public com.liferay.portlet.softwarecatalog.model.SCProductEntry toUnescapedModel() {
554                    return new SCProductEntryWrapper(_scProductEntry.toUnescapedModel());
555            }
556    
557            @Override
558            public java.lang.String toString() {
559                    return _scProductEntry.toString();
560            }
561    
562            public java.lang.String toXmlString() {
563                    return _scProductEntry.toXmlString();
564            }
565    
566            public void persist()
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    _scProductEntry.persist();
569            }
570    
571            public com.liferay.portlet.softwarecatalog.model.SCProductVersion getLatestVersion()
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return _scProductEntry.getLatestVersion();
574            }
575    
576            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    return _scProductEntry.getLicenses();
579            }
580    
581            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> getScreenshots()
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    return _scProductEntry.getScreenshots();
584            }
585    
586            /**
587             * @deprecated Renamed to {@link #getWrappedModel}
588             */
589            public SCProductEntry getWrappedSCProductEntry() {
590                    return _scProductEntry;
591            }
592    
593            public SCProductEntry getWrappedModel() {
594                    return _scProductEntry;
595            }
596    
597            public void resetOriginalValues() {
598                    _scProductEntry.resetOriginalValues();
599            }
600    
601            private SCProductEntry _scProductEntry;
602    }