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.portal.model; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 /** 027 * The base model interface for the Company service. Represents a row in the "Company" database table, with each column mapped to a property of this class. 028 * 029 * <p> 030 * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.CompanyModelImpl} 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.portal.model.impl.CompanyImpl}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see Company 035 * @see com.liferay.portal.model.impl.CompanyImpl 036 * @see com.liferay.portal.model.impl.CompanyModelImpl 037 * @generated 038 */ 039 @ProviderType 040 public interface CompanyModel extends BaseModel<Company>, MVCCModel { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify or reference this interface directly. All methods that expect a company model instance should use the {@link Company} interface instead. 045 */ 046 047 /** 048 * Returns the primary key of this company. 049 * 050 * @return the primary key of this company 051 */ 052 public long getPrimaryKey(); 053 054 /** 055 * Sets the primary key of this company. 056 * 057 * @param primaryKey the primary key of this company 058 */ 059 public void setPrimaryKey(long primaryKey); 060 061 /** 062 * Returns the mvcc version of this company. 063 * 064 * @return the mvcc version of this company 065 */ 066 @Override 067 public long getMvccVersion(); 068 069 /** 070 * Sets the mvcc version of this company. 071 * 072 * @param mvccVersion the mvcc version of this company 073 */ 074 @Override 075 public void setMvccVersion(long mvccVersion); 076 077 /** 078 * Returns the company ID of this company. 079 * 080 * @return the company ID of this company 081 */ 082 public long getCompanyId(); 083 084 /** 085 * Sets the company ID of this company. 086 * 087 * @param companyId the company ID of this company 088 */ 089 public void setCompanyId(long companyId); 090 091 /** 092 * Returns the account ID of this company. 093 * 094 * @return the account ID of this company 095 */ 096 public long getAccountId(); 097 098 /** 099 * Sets the account ID of this company. 100 * 101 * @param accountId the account ID of this company 102 */ 103 public void setAccountId(long accountId); 104 105 /** 106 * Returns the web ID of this company. 107 * 108 * @return the web ID of this company 109 */ 110 @AutoEscape 111 public String getWebId(); 112 113 /** 114 * Sets the web ID of this company. 115 * 116 * @param webId the web ID of this company 117 */ 118 public void setWebId(String webId); 119 120 /** 121 * Returns the key of this company. 122 * 123 * @return the key of this company 124 */ 125 @AutoEscape 126 public String getKey(); 127 128 /** 129 * Sets the key of this company. 130 * 131 * @param key the key of this company 132 */ 133 public void setKey(String key); 134 135 /** 136 * Returns the mx of this company. 137 * 138 * @return the mx of this company 139 */ 140 @AutoEscape 141 public String getMx(); 142 143 /** 144 * Sets the mx of this company. 145 * 146 * @param mx the mx of this company 147 */ 148 public void setMx(String mx); 149 150 /** 151 * Returns the home u r l of this company. 152 * 153 * @return the home u r l of this company 154 */ 155 @AutoEscape 156 public String getHomeURL(); 157 158 /** 159 * Sets the home u r l of this company. 160 * 161 * @param homeURL the home u r l of this company 162 */ 163 public void setHomeURL(String homeURL); 164 165 /** 166 * Returns the logo ID of this company. 167 * 168 * @return the logo ID of this company 169 */ 170 public long getLogoId(); 171 172 /** 173 * Sets the logo ID of this company. 174 * 175 * @param logoId the logo ID of this company 176 */ 177 public void setLogoId(long logoId); 178 179 /** 180 * Returns the system of this company. 181 * 182 * @return the system of this company 183 */ 184 public boolean getSystem(); 185 186 /** 187 * Returns <code>true</code> if this company is system. 188 * 189 * @return <code>true</code> if this company is system; <code>false</code> otherwise 190 */ 191 public boolean isSystem(); 192 193 /** 194 * Sets whether this company is system. 195 * 196 * @param system the system of this company 197 */ 198 public void setSystem(boolean system); 199 200 /** 201 * Returns the max users of this company. 202 * 203 * @return the max users of this company 204 */ 205 public int getMaxUsers(); 206 207 /** 208 * Sets the max users of this company. 209 * 210 * @param maxUsers the max users of this company 211 */ 212 public void setMaxUsers(int maxUsers); 213 214 /** 215 * Returns the active of this company. 216 * 217 * @return the active of this company 218 */ 219 public boolean getActive(); 220 221 /** 222 * Returns <code>true</code> if this company is active. 223 * 224 * @return <code>true</code> if this company is active; <code>false</code> otherwise 225 */ 226 public boolean isActive(); 227 228 /** 229 * Sets whether this company is active. 230 * 231 * @param active the active of this company 232 */ 233 public void setActive(boolean active); 234 235 @Override 236 public boolean isNew(); 237 238 @Override 239 public void setNew(boolean n); 240 241 @Override 242 public boolean isCachedModel(); 243 244 @Override 245 public void setCachedModel(boolean cachedModel); 246 247 @Override 248 public boolean isEscapedModel(); 249 250 @Override 251 public Serializable getPrimaryKeyObj(); 252 253 @Override 254 public void setPrimaryKeyObj(Serializable primaryKeyObj); 255 256 @Override 257 public ExpandoBridge getExpandoBridge(); 258 259 @Override 260 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 261 262 @Override 263 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 264 265 @Override 266 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 267 268 @Override 269 public Object clone(); 270 271 @Override 272 public int compareTo(com.liferay.portal.model.Company company); 273 274 @Override 275 public int hashCode(); 276 277 @Override 278 public CacheModel<com.liferay.portal.model.Company> toCacheModel(); 279 280 @Override 281 public com.liferay.portal.model.Company toEscapedModel(); 282 283 @Override 284 public com.liferay.portal.model.Company toUnescapedModel(); 285 286 @Override 287 public String toString(); 288 289 @Override 290 public String toXmlString(); 291 }