001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 022 import com.liferay.portal.model.ShardedModel; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.expando.model.ExpandoBridge; 026 027 import java.io.Serializable; 028 029 /** 030 * 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. 031 * 032 * <p> 033 * 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}. 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 @ProviderType 043 public interface SCLicenseModel extends BaseModel<SCLicense>, ShardedModel { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify or reference this interface directly. All methods that expect a s c license model instance should use the {@link SCLicense} interface instead. 048 */ 049 050 /** 051 * Returns the primary key of this s c license. 052 * 053 * @return the primary key of this s c license 054 */ 055 public long getPrimaryKey(); 056 057 /** 058 * Sets the primary key of this s c license. 059 * 060 * @param primaryKey the primary key of this s c license 061 */ 062 public void setPrimaryKey(long primaryKey); 063 064 /** 065 * Returns the license ID of this s c license. 066 * 067 * @return the license ID of this s c license 068 */ 069 public long getLicenseId(); 070 071 /** 072 * Sets the license ID of this s c license. 073 * 074 * @param licenseId the license ID of this s c license 075 */ 076 public void setLicenseId(long licenseId); 077 078 /** 079 * Returns the company ID of this s c license. 080 * 081 * @return the company ID of this s c license 082 */ 083 @Override 084 public long getCompanyId(); 085 086 /** 087 * Sets the company ID of this s c license. 088 * 089 * @param companyId the company ID of this s c license 090 */ 091 @Override 092 public void setCompanyId(long companyId); 093 094 /** 095 * Returns the name of this s c license. 096 * 097 * @return the name of this s c license 098 */ 099 @AutoEscape 100 public String getName(); 101 102 /** 103 * Sets the name of this s c license. 104 * 105 * @param name the name of this s c license 106 */ 107 public void setName(String name); 108 109 /** 110 * Returns the url of this s c license. 111 * 112 * @return the url of this s c license 113 */ 114 @AutoEscape 115 public String getUrl(); 116 117 /** 118 * Sets the url of this s c license. 119 * 120 * @param url the url of this s c license 121 */ 122 public void setUrl(String url); 123 124 /** 125 * Returns the open source of this s c license. 126 * 127 * @return the open source of this s c license 128 */ 129 public boolean getOpenSource(); 130 131 /** 132 * Returns <code>true</code> if this s c license is open source. 133 * 134 * @return <code>true</code> if this s c license is open source; <code>false</code> otherwise 135 */ 136 public boolean isOpenSource(); 137 138 /** 139 * Sets whether this s c license is open source. 140 * 141 * @param openSource the open source of this s c license 142 */ 143 public void setOpenSource(boolean openSource); 144 145 /** 146 * Returns the active of this s c license. 147 * 148 * @return the active of this s c license 149 */ 150 public boolean getActive(); 151 152 /** 153 * Returns <code>true</code> if this s c license is active. 154 * 155 * @return <code>true</code> if this s c license is active; <code>false</code> otherwise 156 */ 157 public boolean isActive(); 158 159 /** 160 * Sets whether this s c license is active. 161 * 162 * @param active the active of this s c license 163 */ 164 public void setActive(boolean active); 165 166 /** 167 * Returns the recommended of this s c license. 168 * 169 * @return the recommended of this s c license 170 */ 171 public boolean getRecommended(); 172 173 /** 174 * Returns <code>true</code> if this s c license is recommended. 175 * 176 * @return <code>true</code> if this s c license is recommended; <code>false</code> otherwise 177 */ 178 public boolean isRecommended(); 179 180 /** 181 * Sets whether this s c license is recommended. 182 * 183 * @param recommended the recommended of this s c license 184 */ 185 public void setRecommended(boolean recommended); 186 187 @Override 188 public boolean isNew(); 189 190 @Override 191 public void setNew(boolean n); 192 193 @Override 194 public boolean isCachedModel(); 195 196 @Override 197 public void setCachedModel(boolean cachedModel); 198 199 @Override 200 public boolean isEscapedModel(); 201 202 @Override 203 public Serializable getPrimaryKeyObj(); 204 205 @Override 206 public void setPrimaryKeyObj(Serializable primaryKeyObj); 207 208 @Override 209 public ExpandoBridge getExpandoBridge(); 210 211 @Override 212 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 213 214 @Override 215 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 216 217 @Override 218 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 219 220 @Override 221 public Object clone(); 222 223 @Override 224 public int compareTo( 225 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense); 226 227 @Override 228 public int hashCode(); 229 230 @Override 231 public CacheModel<com.liferay.portlet.softwarecatalog.model.SCLicense> toCacheModel(); 232 233 @Override 234 public com.liferay.portlet.softwarecatalog.model.SCLicense toEscapedModel(); 235 236 @Override 237 public com.liferay.portlet.softwarecatalog.model.SCLicense toUnescapedModel(); 238 239 @Override 240 public String toString(); 241 242 @Override 243 public String toXmlString(); 244 }