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