001    /**
002     * Copyright (c) 2000-2010 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.annotation.AutoEscape;
018    import com.liferay.portal.model.BaseModel;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    /**
026     * The base model interface for the SCLicense service. Represents a row in the "SCLicense" database table, with each column mapped to a property of this class.
027     *
028     * <p>
029     * This interface and its corresponding implementation {@link com.liferay.portlet.softwarecatalog.model.impl.SCLicenseModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.softwarecatalog.model.impl.SCLicenseImpl}.
030     * </p>
031     *
032     * <p>
033     * Never modify or reference this interface directly. All methods that expect a s c license model instance should use the {@link SCLicense} interface instead.
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see SCLicense
038     * @see com.liferay.portlet.softwarecatalog.model.impl.SCLicenseImpl
039     * @see com.liferay.portlet.softwarecatalog.model.impl.SCLicenseModelImpl
040     * @generated
041     */
042    public interface SCLicenseModel extends BaseModel<SCLicense> {
043            /**
044             * Gets the primary key of this s c license.
045             *
046             * @return the primary key of this s c license
047             */
048            public long getPrimaryKey();
049    
050            /**
051             * Sets the primary key of this s c license
052             *
053             * @param pk the primary key of this s c license
054             */
055            public void setPrimaryKey(long pk);
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    
064            /**
065             * Sets the license id of this s c license.
066             *
067             * @param licenseId the license id of this s c license
068             */
069            public void setLicenseId(long licenseId);
070    
071            /**
072             * Gets the name of this s c license.
073             *
074             * @return the name of this s c license
075             */
076            @AutoEscape
077            public String getName();
078    
079            /**
080             * Sets the name of this s c license.
081             *
082             * @param name the name of this s c license
083             */
084            public void setName(String name);
085    
086            /**
087             * Gets the url of this s c license.
088             *
089             * @return the url of this s c license
090             */
091            @AutoEscape
092            public String getUrl();
093    
094            /**
095             * Sets the url of this s c license.
096             *
097             * @param url the url of this s c license
098             */
099            public void setUrl(String url);
100    
101            /**
102             * Gets the open source of this s c license.
103             *
104             * @return the open source of this s c license
105             */
106            public boolean getOpenSource();
107    
108            /**
109             * Determines whether this s c license is open source.
110             *
111             * @return whether this s c license is open source
112             */
113            public boolean isOpenSource();
114    
115            /**
116             * Sets whether this {$entity.humanName} is open source.
117             *
118             * @param openSource the open source of this s c license
119             */
120            public void setOpenSource(boolean openSource);
121    
122            /**
123             * Gets the active of this s c license.
124             *
125             * @return the active of this s c license
126             */
127            public boolean getActive();
128    
129            /**
130             * Determines whether this s c license is active.
131             *
132             * @return whether this s c license is active
133             */
134            public boolean isActive();
135    
136            /**
137             * Sets whether this {$entity.humanName} is active.
138             *
139             * @param active the active of this s c license
140             */
141            public void setActive(boolean active);
142    
143            /**
144             * Gets the recommended of this s c license.
145             *
146             * @return the recommended of this s c license
147             */
148            public boolean getRecommended();
149    
150            /**
151             * Determines whether this s c license is recommended.
152             *
153             * @return whether this s c license is recommended
154             */
155            public boolean isRecommended();
156    
157            /**
158             * Sets whether this {$entity.humanName} is recommended.
159             *
160             * @param recommended the recommended of this s c license
161             */
162            public void setRecommended(boolean recommended);
163    
164            /**
165             * Gets a copy of this s c license as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
166             *
167             * @return the escaped model instance
168             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
169             */
170            public SCLicense toEscapedModel();
171    
172            public boolean isNew();
173    
174            public void setNew(boolean n);
175    
176            public boolean isCachedModel();
177    
178            public void setCachedModel(boolean cachedModel);
179    
180            public boolean isEscapedModel();
181    
182            public void setEscapedModel(boolean escapedModel);
183    
184            public Serializable getPrimaryKeyObj();
185    
186            public ExpandoBridge getExpandoBridge();
187    
188            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
189    
190            public Object clone();
191    
192            public int compareTo(SCLicense scLicense);
193    
194            public int hashCode();
195    
196            public String toString();
197    
198            public String toXmlString();
199    }