001    /**
002     * Copyright (c) 2000-2012 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    /**
018     * <p>
019     * This class is a wrapper for {@link Phone}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Phone
024     * @generated
025     */
026    public class PhoneWrapper implements Phone, ModelWrapper<Phone> {
027            public PhoneWrapper(Phone phone) {
028                    _phone = phone;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Phone.class;
033            }
034    
035            public String getModelClassName() {
036                    return Phone.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this phone.
041            *
042            * @return the primary key of this phone
043            */
044            public long getPrimaryKey() {
045                    return _phone.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this phone.
050            *
051            * @param primaryKey the primary key of this phone
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _phone.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the phone ID of this phone.
059            *
060            * @return the phone ID of this phone
061            */
062            public long getPhoneId() {
063                    return _phone.getPhoneId();
064            }
065    
066            /**
067            * Sets the phone ID of this phone.
068            *
069            * @param phoneId the phone ID of this phone
070            */
071            public void setPhoneId(long phoneId) {
072                    _phone.setPhoneId(phoneId);
073            }
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                    return _phone.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this phone.
086            *
087            * @param companyId the company ID of this phone
088            */
089            public void setCompanyId(long companyId) {
090                    _phone.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the user ID of this phone.
095            *
096            * @return the user ID of this phone
097            */
098            public long getUserId() {
099                    return _phone.getUserId();
100            }
101    
102            /**
103            * Sets the user ID of this phone.
104            *
105            * @param userId the user ID of this phone
106            */
107            public void setUserId(long userId) {
108                    _phone.setUserId(userId);
109            }
110    
111            /**
112            * Returns the user uuid of this phone.
113            *
114            * @return the user uuid of this phone
115            * @throws SystemException if a system exception occurred
116            */
117            public java.lang.String getUserUuid()
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return _phone.getUserUuid();
120            }
121    
122            /**
123            * Sets the user uuid of this phone.
124            *
125            * @param userUuid the user uuid of this phone
126            */
127            public void setUserUuid(java.lang.String userUuid) {
128                    _phone.setUserUuid(userUuid);
129            }
130    
131            /**
132            * Returns the user name of this phone.
133            *
134            * @return the user name of this phone
135            */
136            public java.lang.String getUserName() {
137                    return _phone.getUserName();
138            }
139    
140            /**
141            * Sets the user name of this phone.
142            *
143            * @param userName the user name of this phone
144            */
145            public void setUserName(java.lang.String userName) {
146                    _phone.setUserName(userName);
147            }
148    
149            /**
150            * Returns the create date of this phone.
151            *
152            * @return the create date of this phone
153            */
154            public java.util.Date getCreateDate() {
155                    return _phone.getCreateDate();
156            }
157    
158            /**
159            * Sets the create date of this phone.
160            *
161            * @param createDate the create date of this phone
162            */
163            public void setCreateDate(java.util.Date createDate) {
164                    _phone.setCreateDate(createDate);
165            }
166    
167            /**
168            * Returns the modified date of this phone.
169            *
170            * @return the modified date of this phone
171            */
172            public java.util.Date getModifiedDate() {
173                    return _phone.getModifiedDate();
174            }
175    
176            /**
177            * Sets the modified date of this phone.
178            *
179            * @param modifiedDate the modified date of this phone
180            */
181            public void setModifiedDate(java.util.Date modifiedDate) {
182                    _phone.setModifiedDate(modifiedDate);
183            }
184    
185            /**
186            * Returns the fully qualified class name of this phone.
187            *
188            * @return the fully qualified class name of this phone
189            */
190            public java.lang.String getClassName() {
191                    return _phone.getClassName();
192            }
193    
194            /**
195            * Returns the class name ID of this phone.
196            *
197            * @return the class name ID of this phone
198            */
199            public long getClassNameId() {
200                    return _phone.getClassNameId();
201            }
202    
203            /**
204            * Sets the class name ID of this phone.
205            *
206            * @param classNameId the class name ID of this phone
207            */
208            public void setClassNameId(long classNameId) {
209                    _phone.setClassNameId(classNameId);
210            }
211    
212            /**
213            * Returns the class p k of this phone.
214            *
215            * @return the class p k of this phone
216            */
217            public long getClassPK() {
218                    return _phone.getClassPK();
219            }
220    
221            /**
222            * Sets the class p k of this phone.
223            *
224            * @param classPK the class p k of this phone
225            */
226            public void setClassPK(long classPK) {
227                    _phone.setClassPK(classPK);
228            }
229    
230            /**
231            * Returns the number of this phone.
232            *
233            * @return the number of this phone
234            */
235            public java.lang.String getNumber() {
236                    return _phone.getNumber();
237            }
238    
239            /**
240            * Sets the number of this phone.
241            *
242            * @param number the number of this phone
243            */
244            public void setNumber(java.lang.String number) {
245                    _phone.setNumber(number);
246            }
247    
248            /**
249            * Returns the extension of this phone.
250            *
251            * @return the extension of this phone
252            */
253            public java.lang.String getExtension() {
254                    return _phone.getExtension();
255            }
256    
257            /**
258            * Sets the extension of this phone.
259            *
260            * @param extension the extension of this phone
261            */
262            public void setExtension(java.lang.String extension) {
263                    _phone.setExtension(extension);
264            }
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                    return _phone.getTypeId();
273            }
274    
275            /**
276            * Sets the type ID of this phone.
277            *
278            * @param typeId the type ID of this phone
279            */
280            public void setTypeId(int typeId) {
281                    _phone.setTypeId(typeId);
282            }
283    
284            /**
285            * Returns the primary of this phone.
286            *
287            * @return the primary of this phone
288            */
289            public boolean getPrimary() {
290                    return _phone.getPrimary();
291            }
292    
293            /**
294            * Returns <code>true</code> if this phone is primary.
295            *
296            * @return <code>true</code> if this phone is primary; <code>false</code> otherwise
297            */
298            public boolean isPrimary() {
299                    return _phone.isPrimary();
300            }
301    
302            /**
303            * Sets whether this phone is primary.
304            *
305            * @param primary the primary of this phone
306            */
307            public void setPrimary(boolean primary) {
308                    _phone.setPrimary(primary);
309            }
310    
311            public boolean isNew() {
312                    return _phone.isNew();
313            }
314    
315            public void setNew(boolean n) {
316                    _phone.setNew(n);
317            }
318    
319            public boolean isCachedModel() {
320                    return _phone.isCachedModel();
321            }
322    
323            public void setCachedModel(boolean cachedModel) {
324                    _phone.setCachedModel(cachedModel);
325            }
326    
327            public boolean isEscapedModel() {
328                    return _phone.isEscapedModel();
329            }
330    
331            public java.io.Serializable getPrimaryKeyObj() {
332                    return _phone.getPrimaryKeyObj();
333            }
334    
335            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
336                    _phone.setPrimaryKeyObj(primaryKeyObj);
337            }
338    
339            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
340                    return _phone.getExpandoBridge();
341            }
342    
343            public void setExpandoBridgeAttributes(
344                    com.liferay.portal.service.ServiceContext serviceContext) {
345                    _phone.setExpandoBridgeAttributes(serviceContext);
346            }
347    
348            @Override
349            public java.lang.Object clone() {
350                    return new PhoneWrapper((Phone)_phone.clone());
351            }
352    
353            public int compareTo(com.liferay.portal.model.Phone phone) {
354                    return _phone.compareTo(phone);
355            }
356    
357            @Override
358            public int hashCode() {
359                    return _phone.hashCode();
360            }
361    
362            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Phone> toCacheModel() {
363                    return _phone.toCacheModel();
364            }
365    
366            public com.liferay.portal.model.Phone toEscapedModel() {
367                    return new PhoneWrapper(_phone.toEscapedModel());
368            }
369    
370            @Override
371            public java.lang.String toString() {
372                    return _phone.toString();
373            }
374    
375            public java.lang.String toXmlString() {
376                    return _phone.toXmlString();
377            }
378    
379            public void persist()
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    _phone.persist();
382            }
383    
384            public com.liferay.portal.model.ListType getType()
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _phone.getType();
388            }
389    
390            /**
391             * @deprecated Renamed to {@link #getWrappedModel}
392             */
393            public Phone getWrappedPhone() {
394                    return _phone;
395            }
396    
397            public Phone getWrappedModel() {
398                    return _phone;
399            }
400    
401            public void resetOriginalValues() {
402                    _phone.resetOriginalValues();
403            }
404    
405            private Phone _phone;
406    }