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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.expando.model.ExpandoBridge;
024    
025    import java.io.Serializable;
026    
027    import java.util.Date;
028    
029    /**
030     * 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.
031     *
032     * <p>
033     * 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}.
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see Phone
038     * @see com.liferay.portal.model.impl.PhoneImpl
039     * @see com.liferay.portal.model.impl.PhoneModelImpl
040     * @generated
041     */
042    @ProviderType
043    public interface PhoneModel extends AttachedModel, BaseModel<Phone>,
044            StagedAuditedModel {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. All methods that expect a phone model instance should use the {@link Phone} interface instead.
049             */
050    
051            /**
052             * Returns the primary key of this phone.
053             *
054             * @return the primary key of this phone
055             */
056            public long getPrimaryKey();
057    
058            /**
059             * Sets the primary key of this phone.
060             *
061             * @param primaryKey the primary key of this phone
062             */
063            public void setPrimaryKey(long primaryKey);
064    
065            /**
066             * Returns the uuid of this phone.
067             *
068             * @return the uuid of this phone
069             */
070            @AutoEscape
071            @Override
072            public String getUuid();
073    
074            /**
075             * Sets the uuid of this phone.
076             *
077             * @param uuid the uuid of this phone
078             */
079            @Override
080            public void setUuid(String uuid);
081    
082            /**
083             * Returns the phone ID of this phone.
084             *
085             * @return the phone ID of this phone
086             */
087            public long getPhoneId();
088    
089            /**
090             * Sets the phone ID of this phone.
091             *
092             * @param phoneId the phone ID of this phone
093             */
094            public void setPhoneId(long phoneId);
095    
096            /**
097             * Returns the company ID of this phone.
098             *
099             * @return the company ID of this phone
100             */
101            @Override
102            public long getCompanyId();
103    
104            /**
105             * Sets the company ID of this phone.
106             *
107             * @param companyId the company ID of this phone
108             */
109            @Override
110            public void setCompanyId(long companyId);
111    
112            /**
113             * Returns the user ID of this phone.
114             *
115             * @return the user ID of this phone
116             */
117            @Override
118            public long getUserId();
119    
120            /**
121             * Sets the user ID of this phone.
122             *
123             * @param userId the user ID of this phone
124             */
125            @Override
126            public void setUserId(long userId);
127    
128            /**
129             * Returns the user uuid of this phone.
130             *
131             * @return the user uuid of this phone
132             * @throws SystemException if a system exception occurred
133             */
134            @Override
135            public String getUserUuid() throws SystemException;
136    
137            /**
138             * Sets the user uuid of this phone.
139             *
140             * @param userUuid the user uuid of this phone
141             */
142            @Override
143            public void setUserUuid(String userUuid);
144    
145            /**
146             * Returns the user name of this phone.
147             *
148             * @return the user name of this phone
149             */
150            @AutoEscape
151            @Override
152            public String getUserName();
153    
154            /**
155             * Sets the user name of this phone.
156             *
157             * @param userName the user name of this phone
158             */
159            @Override
160            public void setUserName(String userName);
161    
162            /**
163             * Returns the create date of this phone.
164             *
165             * @return the create date of this phone
166             */
167            @Override
168            public Date getCreateDate();
169    
170            /**
171             * Sets the create date of this phone.
172             *
173             * @param createDate the create date of this phone
174             */
175            @Override
176            public void setCreateDate(Date createDate);
177    
178            /**
179             * Returns the modified date of this phone.
180             *
181             * @return the modified date of this phone
182             */
183            @Override
184            public Date getModifiedDate();
185    
186            /**
187             * Sets the modified date of this phone.
188             *
189             * @param modifiedDate the modified date of this phone
190             */
191            @Override
192            public void setModifiedDate(Date modifiedDate);
193    
194            /**
195             * Returns the fully qualified class name of this phone.
196             *
197             * @return the fully qualified class name of this phone
198             */
199            @Override
200            public String getClassName();
201    
202            public void setClassName(String className);
203    
204            /**
205             * Returns the class name ID of this phone.
206             *
207             * @return the class name ID of this phone
208             */
209            @Override
210            public long getClassNameId();
211    
212            /**
213             * Sets the class name ID of this phone.
214             *
215             * @param classNameId the class name ID of this phone
216             */
217            @Override
218            public void setClassNameId(long classNameId);
219    
220            /**
221             * Returns the class p k of this phone.
222             *
223             * @return the class p k of this phone
224             */
225            @Override
226            public long getClassPK();
227    
228            /**
229             * Sets the class p k of this phone.
230             *
231             * @param classPK the class p k of this phone
232             */
233            @Override
234            public void setClassPK(long classPK);
235    
236            /**
237             * Returns the number of this phone.
238             *
239             * @return the number of this phone
240             */
241            @AutoEscape
242            public String getNumber();
243    
244            /**
245             * Sets the number of this phone.
246             *
247             * @param number the number of this phone
248             */
249            public void setNumber(String number);
250    
251            /**
252             * Returns the extension of this phone.
253             *
254             * @return the extension of this phone
255             */
256            @AutoEscape
257            public String getExtension();
258    
259            /**
260             * Sets the extension of this phone.
261             *
262             * @param extension the extension of this phone
263             */
264            public void setExtension(String extension);
265    
266            /**
267             * Returns the type ID of this phone.
268             *
269             * @return the type ID of this phone
270             */
271            public int getTypeId();
272    
273            /**
274             * Sets the type ID of this phone.
275             *
276             * @param typeId the type ID of this phone
277             */
278            public void setTypeId(int typeId);
279    
280            /**
281             * Returns the primary of this phone.
282             *
283             * @return the primary of this phone
284             */
285            public boolean getPrimary();
286    
287            /**
288             * Returns <code>true</code> if this phone is primary.
289             *
290             * @return <code>true</code> if this phone is primary; <code>false</code> otherwise
291             */
292            public boolean isPrimary();
293    
294            /**
295             * Sets whether this phone is primary.
296             *
297             * @param primary the primary of this phone
298             */
299            public void setPrimary(boolean primary);
300    
301            @Override
302            public boolean isNew();
303    
304            @Override
305            public void setNew(boolean n);
306    
307            @Override
308            public boolean isCachedModel();
309    
310            @Override
311            public void setCachedModel(boolean cachedModel);
312    
313            @Override
314            public boolean isEscapedModel();
315    
316            @Override
317            public Serializable getPrimaryKeyObj();
318    
319            @Override
320            public void setPrimaryKeyObj(Serializable primaryKeyObj);
321    
322            @Override
323            public ExpandoBridge getExpandoBridge();
324    
325            @Override
326            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
327    
328            @Override
329            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
330    
331            @Override
332            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
333    
334            @Override
335            public Object clone();
336    
337            @Override
338            public int compareTo(Phone phone);
339    
340            @Override
341            public int hashCode();
342    
343            @Override
344            public CacheModel<Phone> toCacheModel();
345    
346            @Override
347            public Phone toEscapedModel();
348    
349            @Override
350            public Phone toUnescapedModel();
351    
352            @Override
353            public String toString();
354    
355            @Override
356            public String toXmlString();
357    }