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