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     * <p>
029     * This interface is a model that represents the Phone table in the
030     * database.
031     * </p>
032     *
033     * @author    Brian Wing Shun Chan
034     * @see       Phone
035     * @see       com.liferay.portal.model.impl.PhoneImpl
036     * @see       com.liferay.portal.model.impl.PhoneModelImpl
037     * @generated
038     */
039    public interface PhoneModel extends BaseModel<Phone> {
040            public long getPrimaryKey();
041    
042            public void setPrimaryKey(long pk);
043    
044            public long getPhoneId();
045    
046            public void setPhoneId(long phoneId);
047    
048            public long getCompanyId();
049    
050            public void setCompanyId(long companyId);
051    
052            public long getUserId();
053    
054            public void setUserId(long userId);
055    
056            public String getUserUuid() throws SystemException;
057    
058            public void setUserUuid(String userUuid);
059    
060            @AutoEscape
061            public String getUserName();
062    
063            public void setUserName(String userName);
064    
065            public Date getCreateDate();
066    
067            public void setCreateDate(Date createDate);
068    
069            public Date getModifiedDate();
070    
071            public void setModifiedDate(Date modifiedDate);
072    
073            public String getClassName();
074    
075            public long getClassNameId();
076    
077            public void setClassNameId(long classNameId);
078    
079            public long getClassPK();
080    
081            public void setClassPK(long classPK);
082    
083            @AutoEscape
084            public String getNumber();
085    
086            public void setNumber(String number);
087    
088            @AutoEscape
089            public String getExtension();
090    
091            public void setExtension(String extension);
092    
093            public int getTypeId();
094    
095            public void setTypeId(int typeId);
096    
097            public boolean getPrimary();
098    
099            public boolean isPrimary();
100    
101            public void setPrimary(boolean primary);
102    
103            public Phone toEscapedModel();
104    
105            public boolean isNew();
106    
107            public void setNew(boolean n);
108    
109            public boolean isCachedModel();
110    
111            public void setCachedModel(boolean cachedModel);
112    
113            public boolean isEscapedModel();
114    
115            public void setEscapedModel(boolean escapedModel);
116    
117            public Serializable getPrimaryKeyObj();
118    
119            public ExpandoBridge getExpandoBridge();
120    
121            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
122    
123            public Object clone();
124    
125            public int compareTo(Phone phone);
126    
127            public int hashCode();
128    
129            public String toString();
130    
131            public String toXmlString();
132    }