001 /** 002 * Copyright (c) 2000-2010 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 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 public boolean isNew(); 165 166 public void setNew(boolean n); 167 168 public boolean isCachedModel(); 169 170 public void setCachedModel(boolean cachedModel); 171 172 public boolean isEscapedModel(); 173 174 public void setEscapedModel(boolean escapedModel); 175 176 public Serializable getPrimaryKeyObj(); 177 178 public ExpandoBridge getExpandoBridge(); 179 180 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 181 182 public Object clone(); 183 184 public int compareTo(SCLicense scLicense); 185 186 public int hashCode(); 187 188 public SCLicense toEscapedModel(); 189 190 public String toString(); 191 192 public String toXmlString(); 193 }