001 /** 002 * Copyright (c) 2000-2012 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.bean.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 Phone service. Represents a row in the "Phone" 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.PhoneModelImpl} 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.PhoneImpl}. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see Phone 036 * @see com.liferay.portal.model.impl.PhoneImpl 037 * @see com.liferay.portal.model.impl.PhoneModelImpl 038 * @generated 039 */ 040 public interface PhoneModel extends AttachedModel, AuditedModel, BaseModel<Phone> { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify or reference this interface directly. All methods that expect a phone model instance should use the {@link Phone} interface instead. 045 */ 046 047 /** 048 * Returns the primary key of this phone. 049 * 050 * @return the primary key of this phone 051 */ 052 public long getPrimaryKey(); 053 054 /** 055 * Sets the primary key of this phone. 056 * 057 * @param primaryKey the primary key of this phone 058 */ 059 public void setPrimaryKey(long primaryKey); 060 061 /** 062 * Returns the phone ID of this phone. 063 * 064 * @return the phone ID of this phone 065 */ 066 public long getPhoneId(); 067 068 /** 069 * Sets the phone ID of this phone. 070 * 071 * @param phoneId the phone ID of this phone 072 */ 073 public void setPhoneId(long phoneId); 074 075 /** 076 * Returns the company ID of this phone. 077 * 078 * @return the company ID of this phone 079 */ 080 public long getCompanyId(); 081 082 /** 083 * Sets the company ID of this phone. 084 * 085 * @param companyId the company ID of this phone 086 */ 087 public void setCompanyId(long companyId); 088 089 /** 090 * Returns the user ID of this phone. 091 * 092 * @return the user ID of this phone 093 */ 094 public long getUserId(); 095 096 /** 097 * Sets the user ID of this phone. 098 * 099 * @param userId the user ID of this phone 100 */ 101 public void setUserId(long userId); 102 103 /** 104 * Returns the user uuid of this phone. 105 * 106 * @return the user uuid of this phone 107 * @throws SystemException if a system exception occurred 108 */ 109 public String getUserUuid() throws SystemException; 110 111 /** 112 * Sets the user uuid of this phone. 113 * 114 * @param userUuid the user uuid of this phone 115 */ 116 public void setUserUuid(String userUuid); 117 118 /** 119 * Returns the user name of this phone. 120 * 121 * @return the user name of this phone 122 */ 123 @AutoEscape 124 public String getUserName(); 125 126 /** 127 * Sets the user name of this phone. 128 * 129 * @param userName the user name of this phone 130 */ 131 public void setUserName(String userName); 132 133 /** 134 * Returns the create date of this phone. 135 * 136 * @return the create date of this phone 137 */ 138 public Date getCreateDate(); 139 140 /** 141 * Sets the create date of this phone. 142 * 143 * @param createDate the create date of this phone 144 */ 145 public void setCreateDate(Date createDate); 146 147 /** 148 * Returns the modified date of this phone. 149 * 150 * @return the modified date of this phone 151 */ 152 public Date getModifiedDate(); 153 154 /** 155 * Sets the modified date of this phone. 156 * 157 * @param modifiedDate the modified date of this phone 158 */ 159 public void setModifiedDate(Date modifiedDate); 160 161 /** 162 * Returns the fully qualified class name of this phone. 163 * 164 * @return the fully qualified class name of this phone 165 */ 166 public String getClassName(); 167 168 /** 169 * Returns the class name ID of this phone. 170 * 171 * @return the class name ID of this phone 172 */ 173 public long getClassNameId(); 174 175 /** 176 * Sets the class name ID of this phone. 177 * 178 * @param classNameId the class name ID of this phone 179 */ 180 public void setClassNameId(long classNameId); 181 182 /** 183 * Returns the class p k of this phone. 184 * 185 * @return the class p k of this phone 186 */ 187 public long getClassPK(); 188 189 /** 190 * Sets the class p k of this phone. 191 * 192 * @param classPK the class p k of this phone 193 */ 194 public void setClassPK(long classPK); 195 196 /** 197 * Returns the number of this phone. 198 * 199 * @return the number of this phone 200 */ 201 @AutoEscape 202 public String getNumber(); 203 204 /** 205 * Sets the number of this phone. 206 * 207 * @param number the number of this phone 208 */ 209 public void setNumber(String number); 210 211 /** 212 * Returns the extension of this phone. 213 * 214 * @return the extension of this phone 215 */ 216 @AutoEscape 217 public String getExtension(); 218 219 /** 220 * Sets the extension of this phone. 221 * 222 * @param extension the extension of this phone 223 */ 224 public void setExtension(String extension); 225 226 /** 227 * Returns the type ID of this phone. 228 * 229 * @return the type ID of this phone 230 */ 231 public int getTypeId(); 232 233 /** 234 * Sets the type ID of this phone. 235 * 236 * @param typeId the type ID of this phone 237 */ 238 public void setTypeId(int typeId); 239 240 /** 241 * Returns the primary of this phone. 242 * 243 * @return the primary of this phone 244 */ 245 public boolean getPrimary(); 246 247 /** 248 * Returns <code>true</code> if this phone is primary. 249 * 250 * @return <code>true</code> if this phone is primary; <code>false</code> otherwise 251 */ 252 public boolean isPrimary(); 253 254 /** 255 * Sets whether this phone is primary. 256 * 257 * @param primary the primary of this phone 258 */ 259 public void setPrimary(boolean primary); 260 261 public boolean isNew(); 262 263 public void setNew(boolean n); 264 265 public boolean isCachedModel(); 266 267 public void setCachedModel(boolean cachedModel); 268 269 public boolean isEscapedModel(); 270 271 public Serializable getPrimaryKeyObj(); 272 273 public void setPrimaryKeyObj(Serializable primaryKeyObj); 274 275 public ExpandoBridge getExpandoBridge(); 276 277 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 278 279 public Object clone(); 280 281 public int compareTo(Phone phone); 282 283 public int hashCode(); 284 285 public CacheModel<Phone> toCacheModel(); 286 287 public Phone toEscapedModel(); 288 289 public String toString(); 290 291 public String toXmlString(); 292 }