001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Determines 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            * Gets 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            * Determines 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            * Gets 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            * Determines 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 void setEscapedModel(boolean escapedModel) {
213                    _scLicense.setEscapedModel(escapedModel);
214            }
215    
216            public java.io.Serializable getPrimaryKeyObj() {
217                    return _scLicense.getPrimaryKeyObj();
218            }
219    
220            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
221                    _scLicense.setPrimaryKeyObj(primaryKeyObj);
222            }
223    
224            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
225                    return _scLicense.getExpandoBridge();
226            }
227    
228            public void setExpandoBridgeAttributes(
229                    com.liferay.portal.service.ServiceContext serviceContext) {
230                    _scLicense.setExpandoBridgeAttributes(serviceContext);
231            }
232    
233            @Override
234            public java.lang.Object clone() {
235                    return new SCLicenseWrapper((SCLicense)_scLicense.clone());
236            }
237    
238            public int compareTo(
239                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
240                    return _scLicense.compareTo(scLicense);
241            }
242    
243            @Override
244            public int hashCode() {
245                    return _scLicense.hashCode();
246            }
247    
248            public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCLicense> toCacheModel() {
249                    return _scLicense.toCacheModel();
250            }
251    
252            public com.liferay.portlet.softwarecatalog.model.SCLicense toEscapedModel() {
253                    return new SCLicenseWrapper(_scLicense.toEscapedModel());
254            }
255    
256            @Override
257            public java.lang.String toString() {
258                    return _scLicense.toString();
259            }
260    
261            public java.lang.String toXmlString() {
262                    return _scLicense.toXmlString();
263            }
264    
265            public void persist()
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    _scLicense.persist();
268            }
269    
270            public SCLicense getWrappedSCLicense() {
271                    return _scLicense;
272            }
273    
274            public void resetOriginalValues() {
275                    _scLicense.resetOriginalValues();
276            }
277    
278            private SCLicense _scLicense;
279    }