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 AddressLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see AddressLocalService
022     * @generated
023     */
024    public class AddressLocalServiceWrapper implements AddressLocalService,
025            ServiceWrapper<AddressLocalService> {
026            public AddressLocalServiceWrapper(AddressLocalService addressLocalService) {
027                    _addressLocalService = addressLocalService;
028            }
029    
030            /**
031            * Adds the address to the database. Also notifies the appropriate model listeners.
032            *
033            * @param address the address
034            * @return the address that was added
035            * @throws SystemException if a system exception occurred
036            */
037            @Override
038            public com.liferay.portal.model.Address addAddress(
039                    com.liferay.portal.model.Address address)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _addressLocalService.addAddress(address);
042            }
043    
044            /**
045            * Creates a new address with the primary key. Does not add the address to the database.
046            *
047            * @param addressId the primary key for the new address
048            * @return the new address
049            */
050            @Override
051            public com.liferay.portal.model.Address createAddress(long addressId) {
052                    return _addressLocalService.createAddress(addressId);
053            }
054    
055            /**
056            * Deletes the address with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param addressId the primary key of the address
059            * @return the address that was removed
060            * @throws PortalException if a address 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.Address deleteAddress(long addressId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _addressLocalService.deleteAddress(addressId);
068            }
069    
070            /**
071            * Deletes the address from the database. Also notifies the appropriate model listeners.
072            *
073            * @param address the address
074            * @return the address that was removed
075            * @throws SystemException if a system exception occurred
076            */
077            @Override
078            public com.liferay.portal.model.Address deleteAddress(
079                    com.liferay.portal.model.Address address)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return _addressLocalService.deleteAddress(address);
082            }
083    
084            @Override
085            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
086                    return _addressLocalService.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 _addressLocalService.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.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.
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 _addressLocalService.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.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.
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 _addressLocalService.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 _addressLocalService.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 _addressLocalService.dynamicQueryCount(dynamicQuery, projection);
178            }
179    
180            @Override
181            public com.liferay.portal.model.Address fetchAddress(long addressId)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _addressLocalService.fetchAddress(addressId);
184            }
185    
186            /**
187            * Returns the address with the matching UUID and company.
188            *
189            * @param uuid the address's UUID
190            * @param companyId the primary key of the company
191            * @return the matching address, or <code>null</code> if a matching address could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            @Override
195            public com.liferay.portal.model.Address fetchAddressByUuidAndCompanyId(
196                    java.lang.String uuid, long companyId)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _addressLocalService.fetchAddressByUuidAndCompanyId(uuid,
199                            companyId);
200            }
201    
202            /**
203            * Returns the address with the primary key.
204            *
205            * @param addressId the primary key of the address
206            * @return the address
207            * @throws PortalException if a address with the primary key could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            @Override
211            public com.liferay.portal.model.Address getAddress(long addressId)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return _addressLocalService.getAddress(addressId);
215            }
216    
217            @Override
218            public com.liferay.portal.model.PersistedModel getPersistedModel(
219                    java.io.Serializable primaryKeyObj)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException {
222                    return _addressLocalService.getPersistedModel(primaryKeyObj);
223            }
224    
225            /**
226            * Returns the address with the matching UUID and company.
227            *
228            * @param uuid the address's UUID
229            * @param companyId the primary key of the company
230            * @return the matching address
231            * @throws PortalException if a matching address could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            @Override
235            public com.liferay.portal.model.Address getAddressByUuidAndCompanyId(
236                    java.lang.String uuid, long companyId)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    return _addressLocalService.getAddressByUuidAndCompanyId(uuid, companyId);
240            }
241    
242            /**
243            * Returns a range of all the addresses.
244            *
245            * <p>
246            * 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.
247            * </p>
248            *
249            * @param start the lower bound of the range of addresses
250            * @param end the upper bound of the range of addresses (not inclusive)
251            * @return the range of addresses
252            * @throws SystemException if a system exception occurred
253            */
254            @Override
255            public java.util.List<com.liferay.portal.model.Address> getAddresses(
256                    int start, int end)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _addressLocalService.getAddresses(start, end);
259            }
260    
261            /**
262            * Returns the number of addresses.
263            *
264            * @return the number of addresses
265            * @throws SystemException if a system exception occurred
266            */
267            @Override
268            public int getAddressesCount()
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return _addressLocalService.getAddressesCount();
271            }
272    
273            /**
274            * Updates the address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
275            *
276            * @param address the address
277            * @return the address that was updated
278            * @throws SystemException if a system exception occurred
279            */
280            @Override
281            public com.liferay.portal.model.Address updateAddress(
282                    com.liferay.portal.model.Address address)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _addressLocalService.updateAddress(address);
285            }
286    
287            /**
288            * Returns the Spring bean ID for this bean.
289            *
290            * @return the Spring bean ID for this bean
291            */
292            @Override
293            public java.lang.String getBeanIdentifier() {
294                    return _addressLocalService.getBeanIdentifier();
295            }
296    
297            /**
298            * Sets the Spring bean ID for this bean.
299            *
300            * @param beanIdentifier the Spring bean ID for this bean
301            */
302            @Override
303            public void setBeanIdentifier(java.lang.String beanIdentifier) {
304                    _addressLocalService.setBeanIdentifier(beanIdentifier);
305            }
306    
307            /**
308            * @deprecated As of 6.2.0, replaced by {@link #addAddress(long, String,
309            long, String, String, String, String, String, long, long,
310            int, boolean, boolean, ServiceContext)}
311            */
312            @Override
313            public com.liferay.portal.model.Address addAddress(long userId,
314                    java.lang.String className, long classPK, java.lang.String street1,
315                    java.lang.String street2, java.lang.String street3,
316                    java.lang.String city, java.lang.String zip, long regionId,
317                    long countryId, int typeId, boolean mailing, boolean primary)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    return _addressLocalService.addAddress(userId, className, classPK,
321                            street1, street2, street3, city, zip, regionId, countryId, typeId,
322                            mailing, primary);
323            }
324    
325            @Override
326            public com.liferay.portal.model.Address addAddress(long userId,
327                    java.lang.String className, long classPK, java.lang.String street1,
328                    java.lang.String street2, java.lang.String street3,
329                    java.lang.String city, java.lang.String zip, long regionId,
330                    long countryId, int typeId, boolean mailing, boolean primary,
331                    com.liferay.portal.service.ServiceContext serviceContext)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return _addressLocalService.addAddress(userId, className, classPK,
335                            street1, street2, street3, city, zip, regionId, countryId, typeId,
336                            mailing, primary, serviceContext);
337            }
338    
339            @Override
340            public void deleteAddresses(long companyId, java.lang.String className,
341                    long classPK)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    _addressLocalService.deleteAddresses(companyId, className, classPK);
344            }
345    
346            @Override
347            public java.util.List<com.liferay.portal.model.Address> getAddresses()
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _addressLocalService.getAddresses();
350            }
351    
352            @Override
353            public java.util.List<com.liferay.portal.model.Address> getAddresses(
354                    long companyId, java.lang.String className, long classPK)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _addressLocalService.getAddresses(companyId, className, classPK);
357            }
358    
359            @Override
360            public com.liferay.portal.model.Address updateAddress(long addressId,
361                    java.lang.String street1, java.lang.String street2,
362                    java.lang.String street3, java.lang.String city, java.lang.String zip,
363                    long regionId, long countryId, int typeId, boolean mailing,
364                    boolean primary)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _addressLocalService.updateAddress(addressId, street1, street2,
368                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
369            }
370    
371            /**
372             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
373             */
374            public AddressLocalService getWrappedAddressLocalService() {
375                    return _addressLocalService;
376            }
377    
378            /**
379             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
380             */
381            public void setWrappedAddressLocalService(
382                    AddressLocalService addressLocalService) {
383                    _addressLocalService = addressLocalService;
384            }
385    
386            @Override
387            public AddressLocalService getWrappedService() {
388                    return _addressLocalService;
389            }
390    
391            @Override
392            public void setWrappedService(AddressLocalService addressLocalService) {
393                    _addressLocalService = addressLocalService;
394            }
395    
396            private AddressLocalService _addressLocalService;
397    }