001 /** 002 * Copyright (c) 2000-2013 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 public void setClassName(String className); 169 170 /** 171 * Returns the class name ID of this phone. 172 * 173 * @return the class name ID of this phone 174 */ 175 public long getClassNameId(); 176 177 /** 178 * Sets the class name ID of this phone. 179 * 180 * @param classNameId the class name ID of this phone 181 */ 182 public void setClassNameId(long classNameId); 183 184 /** 185 * Returns the class p k of this phone. 186 * 187 * @return the class p k of this phone 188 */ 189 public long getClassPK(); 190 191 /** 192 * Sets the class p k of this phone. 193 * 194 * @param classPK the class p k of this phone 195 */ 196 public void setClassPK(long classPK); 197 198 /** 199 * Returns the number of this phone. 200 * 201 * @return the number of this phone 202 */ 203 @AutoEscape 204 public String getNumber(); 205 206 /** 207 * Sets the number of this phone. 208 * 209 * @param number the number of this phone 210 */ 211 public void setNumber(String number); 212 213 /** 214 * Returns the extension of this phone. 215 * 216 * @return the extension of this phone 217 */ 218 @AutoEscape 219 public String getExtension(); 220 221 /** 222 * Sets the extension of this phone. 223 * 224 * @param extension the extension of this phone 225 */ 226 public void setExtension(String extension); 227 228 /** 229 * Returns the type ID of this phone. 230 * 231 * @return the type ID of this phone 232 */ 233 public int getTypeId(); 234 235 /** 236 * Sets the type ID of this phone. 237 * 238 * @param typeId the type ID of this phone 239 */ 240 public void setTypeId(int typeId); 241 242 /** 243 * Returns the primary of this phone. 244 * 245 * @return the primary of this phone 246 */ 247 public boolean getPrimary(); 248 249 /** 250 * Returns <code>true</code> if this phone is primary. 251 * 252 * @return <code>true</code> if this phone is primary; <code>false</code> otherwise 253 */ 254 public boolean isPrimary(); 255 256 /** 257 * Sets whether this phone is primary. 258 * 259 * @param primary the primary of this phone 260 */ 261 public void setPrimary(boolean primary); 262 263 public boolean isNew(); 264 265 public void setNew(boolean n); 266 267 public boolean isCachedModel(); 268 269 public void setCachedModel(boolean cachedModel); 270 271 public boolean isEscapedModel(); 272 273 public Serializable getPrimaryKeyObj(); 274 275 public void setPrimaryKeyObj(Serializable primaryKeyObj); 276 277 public ExpandoBridge getExpandoBridge(); 278 279 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 280 281 public Object clone(); 282 283 public int compareTo(Phone phone); 284 285 public int hashCode(); 286 287 public CacheModel<Phone> toCacheModel(); 288 289 public Phone toEscapedModel(); 290 291 public Phone toUnescapedModel(); 292 293 public String toString(); 294 295 public String toXmlString(); 296 }