001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 {
027            public PhoneWrapper(Phone phone) {
028                    _phone = phone;
029            }
030    
031            /**
032            * Gets the primary key of this phone.
033            *
034            * @return the primary key of this phone
035            */
036            public long getPrimaryKey() {
037                    return _phone.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this phone
042            *
043            * @param pk the primary key of this phone
044            */
045            public void setPrimaryKey(long pk) {
046                    _phone.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the phone id of this phone.
051            *
052            * @return the phone id of this phone
053            */
054            public long getPhoneId() {
055                    return _phone.getPhoneId();
056            }
057    
058            /**
059            * Sets the phone id of this phone.
060            *
061            * @param phoneId the phone id of this phone
062            */
063            public void setPhoneId(long phoneId) {
064                    _phone.setPhoneId(phoneId);
065            }
066    
067            /**
068            * Gets the company id of this phone.
069            *
070            * @return the company id of this phone
071            */
072            public long getCompanyId() {
073                    return _phone.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this phone.
078            *
079            * @param companyId the company id of this phone
080            */
081            public void setCompanyId(long companyId) {
082                    _phone.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the user id of this phone.
087            *
088            * @return the user id of this phone
089            */
090            public long getUserId() {
091                    return _phone.getUserId();
092            }
093    
094            /**
095            * Sets the user id of this phone.
096            *
097            * @param userId the user id of this phone
098            */
099            public void setUserId(long userId) {
100                    _phone.setUserId(userId);
101            }
102    
103            /**
104            * Gets the user uuid of this phone.
105            *
106            * @return the user uuid of this phone
107            * @throws SystemException if a system exception occurred
108            */
109            public java.lang.String getUserUuid()
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return _phone.getUserUuid();
112            }
113    
114            /**
115            * Sets the user uuid of this phone.
116            *
117            * @param userUuid the user uuid of this phone
118            */
119            public void setUserUuid(java.lang.String userUuid) {
120                    _phone.setUserUuid(userUuid);
121            }
122    
123            /**
124            * Gets the user name of this phone.
125            *
126            * @return the user name of this phone
127            */
128            public java.lang.String getUserName() {
129                    return _phone.getUserName();
130            }
131    
132            /**
133            * Sets the user name of this phone.
134            *
135            * @param userName the user name of this phone
136            */
137            public void setUserName(java.lang.String userName) {
138                    _phone.setUserName(userName);
139            }
140    
141            /**
142            * Gets the create date of this phone.
143            *
144            * @return the create date of this phone
145            */
146            public java.util.Date getCreateDate() {
147                    return _phone.getCreateDate();
148            }
149    
150            /**
151            * Sets the create date of this phone.
152            *
153            * @param createDate the create date of this phone
154            */
155            public void setCreateDate(java.util.Date createDate) {
156                    _phone.setCreateDate(createDate);
157            }
158    
159            /**
160            * Gets the modified date of this phone.
161            *
162            * @return the modified date of this phone
163            */
164            public java.util.Date getModifiedDate() {
165                    return _phone.getModifiedDate();
166            }
167    
168            /**
169            * Sets the modified date of this phone.
170            *
171            * @param modifiedDate the modified date of this phone
172            */
173            public void setModifiedDate(java.util.Date modifiedDate) {
174                    _phone.setModifiedDate(modifiedDate);
175            }
176    
177            /**
178            * Gets the class name of the model instance this phone is polymorphically associated with.
179            *
180            * @return the class name of the model instance this phone is polymorphically associated with
181            */
182            public java.lang.String getClassName() {
183                    return _phone.getClassName();
184            }
185    
186            /**
187            * Gets the class name id of this phone.
188            *
189            * @return the class name id of this phone
190            */
191            public long getClassNameId() {
192                    return _phone.getClassNameId();
193            }
194    
195            /**
196            * Sets the class name id of this phone.
197            *
198            * @param classNameId the class name id of this phone
199            */
200            public void setClassNameId(long classNameId) {
201                    _phone.setClassNameId(classNameId);
202            }
203    
204            /**
205            * Gets the class p k of this phone.
206            *
207            * @return the class p k of this phone
208            */
209            public long getClassPK() {
210                    return _phone.getClassPK();
211            }
212    
213            /**
214            * Sets the class p k of this phone.
215            *
216            * @param classPK the class p k of this phone
217            */
218            public void setClassPK(long classPK) {
219                    _phone.setClassPK(classPK);
220            }
221    
222            /**
223            * Gets the number of this phone.
224            *
225            * @return the number of this phone
226            */
227            public java.lang.String getNumber() {
228                    return _phone.getNumber();
229            }
230    
231            /**
232            * Sets the number of this phone.
233            *
234            * @param number the number of this phone
235            */
236            public void setNumber(java.lang.String number) {
237                    _phone.setNumber(number);
238            }
239    
240            /**
241            * Gets the extension of this phone.
242            *
243            * @return the extension of this phone
244            */
245            public java.lang.String getExtension() {
246                    return _phone.getExtension();
247            }
248    
249            /**
250            * Sets the extension of this phone.
251            *
252            * @param extension the extension of this phone
253            */
254            public void setExtension(java.lang.String extension) {
255                    _phone.setExtension(extension);
256            }
257    
258            /**
259            * Gets the type id of this phone.
260            *
261            * @return the type id of this phone
262            */
263            public int getTypeId() {
264                    return _phone.getTypeId();
265            }
266    
267            /**
268            * Sets the type id of this phone.
269            *
270            * @param typeId the type id of this phone
271            */
272            public void setTypeId(int typeId) {
273                    _phone.setTypeId(typeId);
274            }
275    
276            /**
277            * Gets the primary of this phone.
278            *
279            * @return the primary of this phone
280            */
281            public boolean getPrimary() {
282                    return _phone.getPrimary();
283            }
284    
285            /**
286            * Determines whether this phone is primary.
287            *
288            * @return whether this phone is primary
289            */
290            public boolean isPrimary() {
291                    return _phone.isPrimary();
292            }
293    
294            /**
295            * Sets whether this {$entity.humanName} is primary.
296            *
297            * @param primary the primary of this phone
298            */
299            public void setPrimary(boolean primary) {
300                    _phone.setPrimary(primary);
301            }
302    
303            public boolean isNew() {
304                    return _phone.isNew();
305            }
306    
307            public void setNew(boolean n) {
308                    _phone.setNew(n);
309            }
310    
311            public boolean isCachedModel() {
312                    return _phone.isCachedModel();
313            }
314    
315            public void setCachedModel(boolean cachedModel) {
316                    _phone.setCachedModel(cachedModel);
317            }
318    
319            public boolean isEscapedModel() {
320                    return _phone.isEscapedModel();
321            }
322    
323            public void setEscapedModel(boolean escapedModel) {
324                    _phone.setEscapedModel(escapedModel);
325            }
326    
327            public java.io.Serializable getPrimaryKeyObj() {
328                    return _phone.getPrimaryKeyObj();
329            }
330    
331            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
332                    return _phone.getExpandoBridge();
333            }
334    
335            public void setExpandoBridgeAttributes(
336                    com.liferay.portal.service.ServiceContext serviceContext) {
337                    _phone.setExpandoBridgeAttributes(serviceContext);
338            }
339    
340            public java.lang.Object clone() {
341                    return _phone.clone();
342            }
343    
344            public int compareTo(com.liferay.portal.model.Phone phone) {
345                    return _phone.compareTo(phone);
346            }
347    
348            public int hashCode() {
349                    return _phone.hashCode();
350            }
351    
352            public com.liferay.portal.model.Phone toEscapedModel() {
353                    return _phone.toEscapedModel();
354            }
355    
356            public java.lang.String toString() {
357                    return _phone.toString();
358            }
359    
360            public java.lang.String toXmlString() {
361                    return _phone.toXmlString();
362            }
363    
364            public com.liferay.portal.model.ListType getType()
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _phone.getType();
368            }
369    
370            public Phone getWrappedPhone() {
371                    return _phone;
372            }
373    
374            private Phone _phone;
375    }