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.service;
016    
017    /**
018     * Provides a wrapper for {@link PhoneLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see PhoneLocalService
022     * @generated
023     */
024    public class PhoneLocalServiceWrapper implements PhoneLocalService,
025            ServiceWrapper<PhoneLocalService> {
026            public PhoneLocalServiceWrapper(PhoneLocalService phoneLocalService) {
027                    _phoneLocalService = phoneLocalService;
028            }
029    
030            /**
031            * Adds the phone to the database. Also notifies the appropriate model listeners.
032            *
033            * @param phone the phone
034            * @return the phone that was added
035            * @throws SystemException if a system exception occurred
036            */
037            @Override
038            public com.liferay.portal.model.Phone addPhone(
039                    com.liferay.portal.model.Phone phone)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _phoneLocalService.addPhone(phone);
042            }
043    
044            /**
045            * Creates a new phone with the primary key. Does not add the phone to the database.
046            *
047            * @param phoneId the primary key for the new phone
048            * @return the new phone
049            */
050            @Override
051            public com.liferay.portal.model.Phone createPhone(long phoneId) {
052                    return _phoneLocalService.createPhone(phoneId);
053            }
054    
055            /**
056            * Deletes the phone with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param phoneId the primary key of the phone
059            * @return the phone that was removed
060            * @throws PortalException if a phone with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            @Override
064            public com.liferay.portal.model.Phone deletePhone(long phoneId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _phoneLocalService.deletePhone(phoneId);
068            }
069    
070            /**
071            * Deletes the phone from the database. Also notifies the appropriate model listeners.
072            *
073            * @param phone the phone
074            * @return the phone that was removed
075            * @throws SystemException if a system exception occurred
076            */
077            @Override
078            public com.liferay.portal.model.Phone deletePhone(
079                    com.liferay.portal.model.Phone phone)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return _phoneLocalService.deletePhone(phone);
082            }
083    
084            @Override
085            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
086                    return _phoneLocalService.dynamicQuery();
087            }
088    
089            /**
090            * Performs a dynamic query on the database and returns the matching rows.
091            *
092            * @param dynamicQuery the dynamic query
093            * @return the matching rows
094            * @throws SystemException if a system exception occurred
095            */
096            @Override
097            @SuppressWarnings("rawtypes")
098            public java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _phoneLocalService.dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PhoneModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @Override
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _phoneLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PhoneModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @Override
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _phoneLocalService.dynamicQuery(dynamicQuery, start, end,
147                            orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            @Override
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _phoneLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            /**
165            * Returns the number of rows that match the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @param projection the projection to apply to the query
169            * @return the number of rows that match the dynamic query
170            * @throws SystemException if a system exception occurred
171            */
172            @Override
173            public long dynamicQueryCount(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
175                    com.liferay.portal.kernel.dao.orm.Projection projection)
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    return _phoneLocalService.dynamicQueryCount(dynamicQuery, projection);
178            }
179    
180            @Override
181            public com.liferay.portal.model.Phone fetchPhone(long phoneId)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _phoneLocalService.fetchPhone(phoneId);
184            }
185    
186            /**
187            * Returns the phone with the matching UUID and company.
188            *
189            * @param uuid the phone's UUID
190            * @param companyId the primary key of the company
191            * @return the matching phone, or <code>null</code> if a matching phone could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            @Override
195            public com.liferay.portal.model.Phone fetchPhoneByUuidAndCompanyId(
196                    java.lang.String uuid, long companyId)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _phoneLocalService.fetchPhoneByUuidAndCompanyId(uuid, companyId);
199            }
200    
201            /**
202            * Returns the phone with the primary key.
203            *
204            * @param phoneId the primary key of the phone
205            * @return the phone
206            * @throws PortalException if a phone with the primary key could not be found
207            * @throws SystemException if a system exception occurred
208            */
209            @Override
210            public com.liferay.portal.model.Phone getPhone(long phoneId)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return _phoneLocalService.getPhone(phoneId);
214            }
215    
216            @Override
217            public com.liferay.portal.model.PersistedModel getPersistedModel(
218                    java.io.Serializable primaryKeyObj)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    return _phoneLocalService.getPersistedModel(primaryKeyObj);
222            }
223    
224            /**
225            * Returns the phone with the matching UUID and company.
226            *
227            * @param uuid the phone's UUID
228            * @param companyId the primary key of the company
229            * @return the matching phone
230            * @throws PortalException if a matching phone could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public com.liferay.portal.model.Phone getPhoneByUuidAndCompanyId(
235                    java.lang.String uuid, long companyId)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _phoneLocalService.getPhoneByUuidAndCompanyId(uuid, companyId);
239            }
240    
241            /**
242            * Returns a range of all the phones.
243            *
244            * <p>
245            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PhoneModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
246            * </p>
247            *
248            * @param start the lower bound of the range of phones
249            * @param end the upper bound of the range of phones (not inclusive)
250            * @return the range of phones
251            * @throws SystemException if a system exception occurred
252            */
253            @Override
254            public java.util.List<com.liferay.portal.model.Phone> getPhones(int start,
255                    int end) throws com.liferay.portal.kernel.exception.SystemException {
256                    return _phoneLocalService.getPhones(start, end);
257            }
258    
259            /**
260            * Returns the number of phones.
261            *
262            * @return the number of phones
263            * @throws SystemException if a system exception occurred
264            */
265            @Override
266            public int getPhonesCount()
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return _phoneLocalService.getPhonesCount();
269            }
270    
271            /**
272            * Updates the phone in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
273            *
274            * @param phone the phone
275            * @return the phone that was updated
276            * @throws SystemException if a system exception occurred
277            */
278            @Override
279            public com.liferay.portal.model.Phone updatePhone(
280                    com.liferay.portal.model.Phone phone)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return _phoneLocalService.updatePhone(phone);
283            }
284    
285            /**
286            * Returns the Spring bean ID for this bean.
287            *
288            * @return the Spring bean ID for this bean
289            */
290            @Override
291            public java.lang.String getBeanIdentifier() {
292                    return _phoneLocalService.getBeanIdentifier();
293            }
294    
295            /**
296            * Sets the Spring bean ID for this bean.
297            *
298            * @param beanIdentifier the Spring bean ID for this bean
299            */
300            @Override
301            public void setBeanIdentifier(java.lang.String beanIdentifier) {
302                    _phoneLocalService.setBeanIdentifier(beanIdentifier);
303            }
304    
305            /**
306            * @deprecated As of 6.2.0, replaced by {@link #addPhone(long, String, long,
307            String, String, int, boolean, ServiceContext)}
308            */
309            @Override
310            public com.liferay.portal.model.Phone addPhone(long userId,
311                    java.lang.String className, long classPK, java.lang.String number,
312                    java.lang.String extension, int typeId, boolean primary)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _phoneLocalService.addPhone(userId, className, classPK, number,
316                            extension, typeId, primary);
317            }
318    
319            @Override
320            public com.liferay.portal.model.Phone addPhone(long userId,
321                    java.lang.String className, long classPK, java.lang.String number,
322                    java.lang.String extension, int typeId, boolean primary,
323                    com.liferay.portal.service.ServiceContext serviceContext)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _phoneLocalService.addPhone(userId, className, classPK, number,
327                            extension, typeId, primary, serviceContext);
328            }
329    
330            @Override
331            public void deletePhones(long companyId, java.lang.String className,
332                    long classPK)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    _phoneLocalService.deletePhones(companyId, className, classPK);
335            }
336    
337            @Override
338            public java.util.List<com.liferay.portal.model.Phone> getPhones()
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _phoneLocalService.getPhones();
341            }
342    
343            @Override
344            public java.util.List<com.liferay.portal.model.Phone> getPhones(
345                    long companyId, java.lang.String className, long classPK)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _phoneLocalService.getPhones(companyId, className, classPK);
348            }
349    
350            @Override
351            public com.liferay.portal.model.Phone updatePhone(long phoneId,
352                    java.lang.String number, java.lang.String extension, int typeId,
353                    boolean primary)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _phoneLocalService.updatePhone(phoneId, number, extension,
357                            typeId, primary);
358            }
359    
360            /**
361             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
362             */
363            public PhoneLocalService getWrappedPhoneLocalService() {
364                    return _phoneLocalService;
365            }
366    
367            /**
368             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
369             */
370            public void setWrappedPhoneLocalService(PhoneLocalService phoneLocalService) {
371                    _phoneLocalService = phoneLocalService;
372            }
373    
374            @Override
375            public PhoneLocalService getWrappedService() {
376                    return _phoneLocalService;
377            }
378    
379            @Override
380            public void setWrappedService(PhoneLocalService phoneLocalService) {
381                    _phoneLocalService = phoneLocalService;
382            }
383    
384            private PhoneLocalService _phoneLocalService;
385    }