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    /**
020     * <p>
021     * This class is a wrapper for {@link SCLicense}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SCLicense
026     * @generated
027     */
028    public class SCLicenseWrapper implements SCLicense, ModelWrapper<SCLicense> {
029            public SCLicenseWrapper(SCLicense scLicense) {
030                    _scLicense = scLicense;
031            }
032    
033            public Class<?> getModelClass() {
034                    return SCLicense.class;
035            }
036    
037            public String getModelClassName() {
038                    return SCLicense.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this s c license.
043            *
044            * @return the primary key of this s c license
045            */
046            public long getPrimaryKey() {
047                    return _scLicense.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this s c license.
052            *
053            * @param primaryKey the primary key of this s c license
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _scLicense.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the license ID of this s c license.
061            *
062            * @return the license ID of this s c license
063            */
064            public long getLicenseId() {
065                    return _scLicense.getLicenseId();
066            }
067    
068            /**
069            * Sets the license ID of this s c license.
070            *
071            * @param licenseId the license ID of this s c license
072            */
073            public void setLicenseId(long licenseId) {
074                    _scLicense.setLicenseId(licenseId);
075            }
076    
077            /**
078            * Returns the name of this s c license.
079            *
080            * @return the name of this s c license
081            */
082            public java.lang.String getName() {
083                    return _scLicense.getName();
084            }
085    
086            /**
087            * Sets the name of this s c license.
088            *
089            * @param name the name of this s c license
090            */
091            public void setName(java.lang.String name) {
092                    _scLicense.setName(name);
093            }
094    
095            /**
096            * Returns the url of this s c license.
097            *
098            * @return the url of this s c license
099            */
100            public java.lang.String getUrl() {
101                    return _scLicense.getUrl();
102            }
103    
104            /**
105            * Sets the url of this s c license.
106            *
107            * @param url the url of this s c license
108            */
109            public void setUrl(java.lang.String url) {
110                    _scLicense.setUrl(url);
111            }
112    
113            /**
114            * Returns the open source of this s c license.
115            *
116            * @return the open source of this s c license
117            */
118            public boolean getOpenSource() {
119                    return _scLicense.getOpenSource();
120            }
121    
122            /**
123            * Returns <code>true</code> if this s c license is open source.
124            *
125            * @return <code>true</code> if this s c license is open source; <code>false</code> otherwise
126            */
127            public boolean isOpenSource() {
128                    return _scLicense.isOpenSource();
129            }
130    
131            /**
132            * Sets whether this s c license is open source.
133            *
134            * @param openSource the open source of this s c license
135            */
136            public void setOpenSource(boolean openSource) {
137                    _scLicense.setOpenSource(openSource);
138            }
139    
140            /**
141            * Returns the active of this s c license.
142            *
143            * @return the active of this s c license
144            */
145            public boolean getActive() {
146                    return _scLicense.getActive();
147            }
148    
149            /**
150            * Returns <code>true</code> if this s c license is active.
151            *
152            * @return <code>true</code> if this s c license is active; <code>false</code> otherwise
153            */
154            public boolean isActive() {
155                    return _scLicense.isActive();
156            }
157    
158            /**
159            * Sets whether this s c license is active.
160            *
161            * @param active the active of this s c license
162            */
163            public void setActive(boolean active) {
164                    _scLicense.setActive(active);
165            }
166    
167            /**
168            * Returns the recommended of this s c license.
169            *
170            * @return the recommended of this s c license
171            */
172            public boolean getRecommended() {
173                    return _scLicense.getRecommended();
174            }
175    
176            /**
177            * Returns <code>true</code> if this s c license is recommended.
178            *
179            * @return <code>true</code> if this s c license is recommended; <code>false</code> otherwise
180            */
181            public boolean isRecommended() {
182                    return _scLicense.isRecommended();
183            }
184    
185            /**
186            * Sets whether this s c license is recommended.
187            *
188            * @param recommended the recommended of this s c license
189            */
190            public void setRecommended(boolean recommended) {
191                    _scLicense.setRecommended(recommended);
192            }
193    
194            public boolean isNew() {
195                    return _scLicense.isNew();
196            }
197    
198            public void setNew(boolean n) {
199                    _scLicense.setNew(n);
200            }
201    
202            public boolean isCachedModel() {
203                    return _scLicense.isCachedModel();
204            }
205    
206            public void setCachedModel(boolean cachedModel) {
207                    _scLicense.setCachedModel(cachedModel);
208            }
209    
210            public boolean isEscapedModel() {
211                    return _scLicense.isEscapedModel();
212            }
213    
214            public java.io.Serializable getPrimaryKeyObj() {
215                    return _scLicense.getPrimaryKeyObj();
216            }
217    
218            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
219                    _scLicense.setPrimaryKeyObj(primaryKeyObj);
220            }
221    
222            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
223                    return _scLicense.getExpandoBridge();
224            }
225    
226            public void setExpandoBridgeAttributes(
227                    com.liferay.portal.service.ServiceContext serviceContext) {
228                    _scLicense.setExpandoBridgeAttributes(serviceContext);
229            }
230    
231            @Override
232            public java.lang.Object clone() {
233                    return new SCLicenseWrapper((SCLicense)_scLicense.clone());
234            }
235    
236            public int compareTo(
237                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
238                    return _scLicense.compareTo(scLicense);
239            }
240    
241            @Override
242            public int hashCode() {
243                    return _scLicense.hashCode();
244            }
245    
246            public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCLicense> toCacheModel() {
247                    return _scLicense.toCacheModel();
248            }
249    
250            public com.liferay.portlet.softwarecatalog.model.SCLicense toEscapedModel() {
251                    return new SCLicenseWrapper(_scLicense.toEscapedModel());
252            }
253    
254            @Override
255            public java.lang.String toString() {
256                    return _scLicense.toString();
257            }
258    
259            public java.lang.String toXmlString() {
260                    return _scLicense.toXmlString();
261            }
262    
263            public void persist()
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    _scLicense.persist();
266            }
267    
268            /**
269             * @deprecated Renamed to {@link #getWrappedModel}
270             */
271            public SCLicense getWrappedSCLicense() {
272                    return _scLicense;
273            }
274    
275            public SCLicense getWrappedModel() {
276                    return _scLicense;
277            }
278    
279            public void resetOriginalValues() {
280                    _scLicense.resetOriginalValues();
281            }
282    
283            private SCLicense _scLicense;
284    }