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