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.portal.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.service.ServiceContext; 020 021 import com.liferay.portlet.expando.model.ExpandoBridge; 022 023 import java.io.Serializable; 024 025 import java.util.Date; 026 027 /** 028 * The base model interface for the Account service. Represents a row in the "Account_" database table, with each column mapped to a property of this class. 029 * 030 * <p> 031 * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.AccountModelImpl} 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.AccountImpl}. 032 * </p> 033 * 034 * <p> 035 * Never modify or reference this interface directly. All methods that expect a account model instance should use the {@link Account} interface instead. 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see Account 040 * @see com.liferay.portal.model.impl.AccountImpl 041 * @see com.liferay.portal.model.impl.AccountModelImpl 042 * @generated 043 */ 044 public interface AccountModel extends BaseModel<Account> { 045 /** 046 * Gets the primary key of this account. 047 * 048 * @return the primary key of this account 049 */ 050 public long getPrimaryKey(); 051 052 /** 053 * Sets the primary key of this account 054 * 055 * @param pk the primary key of this account 056 */ 057 public void setPrimaryKey(long pk); 058 059 /** 060 * Gets the account id of this account. 061 * 062 * @return the account id of this account 063 */ 064 public long getAccountId(); 065 066 /** 067 * Sets the account id of this account. 068 * 069 * @param accountId the account id of this account 070 */ 071 public void setAccountId(long accountId); 072 073 /** 074 * Gets the company id of this account. 075 * 076 * @return the company id of this account 077 */ 078 public long getCompanyId(); 079 080 /** 081 * Sets the company id of this account. 082 * 083 * @param companyId the company id of this account 084 */ 085 public void setCompanyId(long companyId); 086 087 /** 088 * Gets the user id of this account. 089 * 090 * @return the user id of this account 091 */ 092 public long getUserId(); 093 094 /** 095 * Sets the user id of this account. 096 * 097 * @param userId the user id of this account 098 */ 099 public void setUserId(long userId); 100 101 /** 102 * Gets the user uuid of this account. 103 * 104 * @return the user uuid of this account 105 * @throws SystemException if a system exception occurred 106 */ 107 public String getUserUuid() throws SystemException; 108 109 /** 110 * Sets the user uuid of this account. 111 * 112 * @param userUuid the user uuid of this account 113 */ 114 public void setUserUuid(String userUuid); 115 116 /** 117 * Gets the user name of this account. 118 * 119 * @return the user name of this account 120 */ 121 @AutoEscape 122 public String getUserName(); 123 124 /** 125 * Sets the user name of this account. 126 * 127 * @param userName the user name of this account 128 */ 129 public void setUserName(String userName); 130 131 /** 132 * Gets the create date of this account. 133 * 134 * @return the create date of this account 135 */ 136 public Date getCreateDate(); 137 138 /** 139 * Sets the create date of this account. 140 * 141 * @param createDate the create date of this account 142 */ 143 public void setCreateDate(Date createDate); 144 145 /** 146 * Gets the modified date of this account. 147 * 148 * @return the modified date of this account 149 */ 150 public Date getModifiedDate(); 151 152 /** 153 * Sets the modified date of this account. 154 * 155 * @param modifiedDate the modified date of this account 156 */ 157 public void setModifiedDate(Date modifiedDate); 158 159 /** 160 * Gets the parent account id of this account. 161 * 162 * @return the parent account id of this account 163 */ 164 public long getParentAccountId(); 165 166 /** 167 * Sets the parent account id of this account. 168 * 169 * @param parentAccountId the parent account id of this account 170 */ 171 public void setParentAccountId(long parentAccountId); 172 173 /** 174 * Gets the name of this account. 175 * 176 * @return the name of this account 177 */ 178 @AutoEscape 179 public String getName(); 180 181 /** 182 * Sets the name of this account. 183 * 184 * @param name the name of this account 185 */ 186 public void setName(String name); 187 188 /** 189 * Gets the legal name of this account. 190 * 191 * @return the legal name of this account 192 */ 193 @AutoEscape 194 public String getLegalName(); 195 196 /** 197 * Sets the legal name of this account. 198 * 199 * @param legalName the legal name of this account 200 */ 201 public void setLegalName(String legalName); 202 203 /** 204 * Gets the legal id of this account. 205 * 206 * @return the legal id of this account 207 */ 208 @AutoEscape 209 public String getLegalId(); 210 211 /** 212 * Sets the legal id of this account. 213 * 214 * @param legalId the legal id of this account 215 */ 216 public void setLegalId(String legalId); 217 218 /** 219 * Gets the legal type of this account. 220 * 221 * @return the legal type of this account 222 */ 223 @AutoEscape 224 public String getLegalType(); 225 226 /** 227 * Sets the legal type of this account. 228 * 229 * @param legalType the legal type of this account 230 */ 231 public void setLegalType(String legalType); 232 233 /** 234 * Gets the sic code of this account. 235 * 236 * @return the sic code of this account 237 */ 238 @AutoEscape 239 public String getSicCode(); 240 241 /** 242 * Sets the sic code of this account. 243 * 244 * @param sicCode the sic code of this account 245 */ 246 public void setSicCode(String sicCode); 247 248 /** 249 * Gets the ticker symbol of this account. 250 * 251 * @return the ticker symbol of this account 252 */ 253 @AutoEscape 254 public String getTickerSymbol(); 255 256 /** 257 * Sets the ticker symbol of this account. 258 * 259 * @param tickerSymbol the ticker symbol of this account 260 */ 261 public void setTickerSymbol(String tickerSymbol); 262 263 /** 264 * Gets the industry of this account. 265 * 266 * @return the industry of this account 267 */ 268 @AutoEscape 269 public String getIndustry(); 270 271 /** 272 * Sets the industry of this account. 273 * 274 * @param industry the industry of this account 275 */ 276 public void setIndustry(String industry); 277 278 /** 279 * Gets the type of this account. 280 * 281 * @return the type of this account 282 */ 283 @AutoEscape 284 public String getType(); 285 286 /** 287 * Sets the type of this account. 288 * 289 * @param type the type of this account 290 */ 291 public void setType(String type); 292 293 /** 294 * Gets the size of this account. 295 * 296 * @return the size of this account 297 */ 298 @AutoEscape 299 public String getSize(); 300 301 /** 302 * Sets the size of this account. 303 * 304 * @param size the size of this account 305 */ 306 public void setSize(String size); 307 308 /** 309 * Gets a copy of this account as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 310 * 311 * @return the escaped model instance 312 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 313 */ 314 public Account toEscapedModel(); 315 316 public boolean isNew(); 317 318 public void setNew(boolean n); 319 320 public boolean isCachedModel(); 321 322 public void setCachedModel(boolean cachedModel); 323 324 public boolean isEscapedModel(); 325 326 public void setEscapedModel(boolean escapedModel); 327 328 public Serializable getPrimaryKeyObj(); 329 330 public ExpandoBridge getExpandoBridge(); 331 332 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 333 334 public Object clone(); 335 336 public int compareTo(Account account); 337 338 public int hashCode(); 339 340 public String toString(); 341 342 public String toXmlString(); 343 }