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