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