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.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link PhoneLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PhoneLocalService
024     * @generated
025     */
026    @ProviderType
027    public class PhoneLocalServiceWrapper implements PhoneLocalService,
028            ServiceWrapper<PhoneLocalService> {
029            public PhoneLocalServiceWrapper(PhoneLocalService phoneLocalService) {
030                    _phoneLocalService = phoneLocalService;
031            }
032    
033            /**
034            * Adds the phone to the database. Also notifies the appropriate model listeners.
035            *
036            * @param phone the phone
037            * @return the phone that was added
038            */
039            @Override
040            public com.liferay.portal.kernel.model.Phone addPhone(
041                    com.liferay.portal.kernel.model.Phone phone) {
042                    return _phoneLocalService.addPhone(phone);
043            }
044    
045            @Override
046            public com.liferay.portal.kernel.model.Phone addPhone(long userId,
047                    java.lang.String className, long classPK, java.lang.String number,
048                    java.lang.String extension, long typeId, boolean primary,
049                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
050                    throws com.liferay.portal.kernel.exception.PortalException {
051                    return _phoneLocalService.addPhone(userId, className, classPK, number,
052                            extension, typeId, primary, serviceContext);
053            }
054    
055            /**
056            * Creates a new phone with the primary key. Does not add the phone to the database.
057            *
058            * @param phoneId the primary key for the new phone
059            * @return the new phone
060            */
061            @Override
062            public com.liferay.portal.kernel.model.Phone createPhone(long phoneId) {
063                    return _phoneLocalService.createPhone(phoneId);
064            }
065    
066            /**
067            * @throws PortalException
068            */
069            @Override
070            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
071                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return _phoneLocalService.deletePersistedModel(persistedModel);
074            }
075    
076            /**
077            * Deletes the phone from the database. Also notifies the appropriate model listeners.
078            *
079            * @param phone the phone
080            * @return the phone that was removed
081            */
082            @Override
083            public com.liferay.portal.kernel.model.Phone deletePhone(
084                    com.liferay.portal.kernel.model.Phone phone) {
085                    return _phoneLocalService.deletePhone(phone);
086            }
087    
088            /**
089            * Deletes the phone with the primary key from the database. Also notifies the appropriate model listeners.
090            *
091            * @param phoneId the primary key of the phone
092            * @return the phone that was removed
093            * @throws PortalException if a phone with the primary key could not be found
094            */
095            @Override
096            public com.liferay.portal.kernel.model.Phone deletePhone(long phoneId)
097                    throws com.liferay.portal.kernel.exception.PortalException {
098                    return _phoneLocalService.deletePhone(phoneId);
099            }
100    
101            @Override
102            public void deletePhones(long companyId, java.lang.String className,
103                    long classPK) {
104                    _phoneLocalService.deletePhones(companyId, className, classPK);
105            }
106    
107            @Override
108            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
109                    return _phoneLocalService.dynamicQuery();
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns the matching rows.
114            *
115            * @param dynamicQuery the dynamic query
116            * @return the matching rows
117            */
118            @Override
119            public <T> java.util.List<T> dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
121                    return _phoneLocalService.dynamicQuery(dynamicQuery);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns a range of the matching rows.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @return the range of matching rows
135            */
136            @Override
137            public <T> java.util.List<T> dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end) {
140                    return _phoneLocalService.dynamicQuery(dynamicQuery, start, end);
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
145            *
146            * <p>
147            * 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.
148            * </p>
149            *
150            * @param dynamicQuery the dynamic query
151            * @param start the lower bound of the range of model instances
152            * @param end the upper bound of the range of model instances (not inclusive)
153            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
154            * @return the ordered range of matching rows
155            */
156            @Override
157            public <T> java.util.List<T> dynamicQuery(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159                    int end,
160                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
161                    return _phoneLocalService.dynamicQuery(dynamicQuery, start, end,
162                            orderByComparator);
163            }
164    
165            /**
166            * Returns the number of rows matching the dynamic query.
167            *
168            * @param dynamicQuery the dynamic query
169            * @return the number of rows matching the dynamic query
170            */
171            @Override
172            public long dynamicQueryCount(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
174                    return _phoneLocalService.dynamicQueryCount(dynamicQuery);
175            }
176    
177            /**
178            * Returns the number of rows matching the dynamic query.
179            *
180            * @param dynamicQuery the dynamic query
181            * @param projection the projection to apply to the query
182            * @return the number of rows matching the dynamic query
183            */
184            @Override
185            public long dynamicQueryCount(
186                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
187                    com.liferay.portal.kernel.dao.orm.Projection projection) {
188                    return _phoneLocalService.dynamicQueryCount(dynamicQuery, projection);
189            }
190    
191            @Override
192            public com.liferay.portal.kernel.model.Phone fetchPhone(long phoneId) {
193                    return _phoneLocalService.fetchPhone(phoneId);
194            }
195    
196            /**
197            * Returns the phone with the matching UUID and company.
198            *
199            * @param uuid the phone's UUID
200            * @param companyId the primary key of the company
201            * @return the matching phone, or <code>null</code> if a matching phone could not be found
202            */
203            @Override
204            public com.liferay.portal.kernel.model.Phone fetchPhoneByUuidAndCompanyId(
205                    java.lang.String uuid, long companyId) {
206                    return _phoneLocalService.fetchPhoneByUuidAndCompanyId(uuid, companyId);
207            }
208    
209            @Override
210            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
211                    return _phoneLocalService.getActionableDynamicQuery();
212            }
213    
214            @Override
215            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
216                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
217                    return _phoneLocalService.getExportActionableDynamicQuery(portletDataContext);
218            }
219    
220            @Override
221            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
222                    return _phoneLocalService.getIndexableActionableDynamicQuery();
223            }
224    
225            /**
226            * Returns the OSGi service identifier.
227            *
228            * @return the OSGi service identifier
229            */
230            @Override
231            public java.lang.String getOSGiServiceIdentifier() {
232                    return _phoneLocalService.getOSGiServiceIdentifier();
233            }
234    
235            @Override
236            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
237                    java.io.Serializable primaryKeyObj)
238                    throws com.liferay.portal.kernel.exception.PortalException {
239                    return _phoneLocalService.getPersistedModel(primaryKeyObj);
240            }
241    
242            /**
243            * Returns the phone with the primary key.
244            *
245            * @param phoneId the primary key of the phone
246            * @return the phone
247            * @throws PortalException if a phone with the primary key could not be found
248            */
249            @Override
250            public com.liferay.portal.kernel.model.Phone getPhone(long phoneId)
251                    throws com.liferay.portal.kernel.exception.PortalException {
252                    return _phoneLocalService.getPhone(phoneId);
253            }
254    
255            /**
256            * Returns the phone with the matching UUID and company.
257            *
258            * @param uuid the phone's UUID
259            * @param companyId the primary key of the company
260            * @return the matching phone
261            * @throws PortalException if a matching phone could not be found
262            */
263            @Override
264            public com.liferay.portal.kernel.model.Phone getPhoneByUuidAndCompanyId(
265                    java.lang.String uuid, long companyId)
266                    throws com.liferay.portal.kernel.exception.PortalException {
267                    return _phoneLocalService.getPhoneByUuidAndCompanyId(uuid, companyId);
268            }
269    
270            @Override
271            public java.util.List<com.liferay.portal.kernel.model.Phone> getPhones() {
272                    return _phoneLocalService.getPhones();
273            }
274    
275            @Override
276            public java.util.List<com.liferay.portal.kernel.model.Phone> getPhones(
277                    long companyId, java.lang.String className, long classPK) {
278                    return _phoneLocalService.getPhones(companyId, className, classPK);
279            }
280    
281            /**
282            * Returns a range of all the phones.
283            *
284            * <p>
285            * 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.
286            * </p>
287            *
288            * @param start the lower bound of the range of phones
289            * @param end the upper bound of the range of phones (not inclusive)
290            * @return the range of phones
291            */
292            @Override
293            public java.util.List<com.liferay.portal.kernel.model.Phone> getPhones(
294                    int start, int end) {
295                    return _phoneLocalService.getPhones(start, end);
296            }
297    
298            /**
299            * Returns the number of phones.
300            *
301            * @return the number of phones
302            */
303            @Override
304            public int getPhonesCount() {
305                    return _phoneLocalService.getPhonesCount();
306            }
307    
308            /**
309            * Updates the phone in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
310            *
311            * @param phone the phone
312            * @return the phone that was updated
313            */
314            @Override
315            public com.liferay.portal.kernel.model.Phone updatePhone(
316                    com.liferay.portal.kernel.model.Phone phone) {
317                    return _phoneLocalService.updatePhone(phone);
318            }
319    
320            @Override
321            public com.liferay.portal.kernel.model.Phone updatePhone(long phoneId,
322                    java.lang.String number, java.lang.String extension, long typeId,
323                    boolean primary)
324                    throws com.liferay.portal.kernel.exception.PortalException {
325                    return _phoneLocalService.updatePhone(phoneId, number, extension,
326                            typeId, primary);
327            }
328    
329            @Override
330            public PhoneLocalService getWrappedService() {
331                    return _phoneLocalService;
332            }
333    
334            @Override
335            public void setWrappedService(PhoneLocalService phoneLocalService) {
336                    _phoneLocalService = phoneLocalService;
337            }
338    
339            private PhoneLocalService _phoneLocalService;
340    }