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