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