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     * <p>
019     * This class is a wrapper for {@link AddressLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AddressLocalService
024     * @generated
025     */
026    public class AddressLocalServiceWrapper implements AddressLocalService,
027            ServiceWrapper<AddressLocalService> {
028            public AddressLocalServiceWrapper(AddressLocalService addressLocalService) {
029                    _addressLocalService = addressLocalService;
030            }
031    
032            /**
033            * Adds the address to the database. Also notifies the appropriate model listeners.
034            *
035            * @param address the address
036            * @return the address that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Address addAddress(
040                    com.liferay.portal.model.Address address)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _addressLocalService.addAddress(address);
043            }
044    
045            /**
046            * Creates a new address with the primary key. Does not add the address to the database.
047            *
048            * @param addressId the primary key for the new address
049            * @return the new address
050            */
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            public com.liferay.portal.model.Address deleteAddress(long addressId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _addressLocalService.deleteAddress(addressId);
067            }
068    
069            /**
070            * Deletes the address from the database. Also notifies the appropriate model listeners.
071            *
072            * @param address the address
073            * @return the address that was removed
074            * @throws SystemException if a system exception occurred
075            */
076            public com.liferay.portal.model.Address deleteAddress(
077                    com.liferay.portal.model.Address address)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return _addressLocalService.deleteAddress(address);
080            }
081    
082            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
083                    return _addressLocalService.dynamicQuery();
084            }
085    
086            /**
087            * Performs a dynamic query on the database and returns the matching rows.
088            *
089            * @param dynamicQuery the dynamic query
090            * @return the matching rows
091            * @throws SystemException if a system exception occurred
092            */
093            @SuppressWarnings("rawtypes")
094            public java.util.List dynamicQuery(
095                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return _addressLocalService.dynamicQuery(dynamicQuery);
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns a range of the matching rows.
102            *
103            * <p>
104            * 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.
105            * </p>
106            *
107            * @param dynamicQuery the dynamic query
108            * @param start the lower bound of the range of model instances
109            * @param end the upper bound of the range of model instances (not inclusive)
110            * @return the range of matching rows
111            * @throws SystemException if a system exception occurred
112            */
113            @SuppressWarnings("rawtypes")
114            public java.util.List dynamicQuery(
115                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116                    int end) throws com.liferay.portal.kernel.exception.SystemException {
117                    return _addressLocalService.dynamicQuery(dynamicQuery, start, end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _addressLocalService.dynamicQuery(dynamicQuery, start, end,
141                            orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _addressLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portal.model.Address fetchAddress(long addressId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _addressLocalService.fetchAddress(addressId);
160            }
161    
162            /**
163            * Returns the address with the primary key.
164            *
165            * @param addressId the primary key of the address
166            * @return the address
167            * @throws PortalException if a address with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portal.model.Address getAddress(long addressId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _addressLocalService.getAddress(addressId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _addressLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the addresses.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of addresses
191            * @param end the upper bound of the range of addresses (not inclusive)
192            * @return the range of addresses
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.Address> getAddresses(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _addressLocalService.getAddresses(start, end);
199            }
200    
201            /**
202            * Returns the number of addresses.
203            *
204            * @return the number of addresses
205            * @throws SystemException if a system exception occurred
206            */
207            public int getAddressesCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _addressLocalService.getAddressesCount();
210            }
211    
212            /**
213            * Updates the address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param address the address
216            * @return the address that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portal.model.Address updateAddress(
220                    com.liferay.portal.model.Address address)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _addressLocalService.updateAddress(address);
223            }
224    
225            /**
226            * Updates the address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param address the address
229            * @param merge whether to merge the address with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
230            * @return the address that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portal.model.Address updateAddress(
234                    com.liferay.portal.model.Address address, boolean merge)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _addressLocalService.updateAddress(address, merge);
237            }
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier() {
245                    return _addressLocalService.getBeanIdentifier();
246            }
247    
248            /**
249            * Sets the Spring bean ID for this bean.
250            *
251            * @param beanIdentifier the Spring bean ID for this bean
252            */
253            public void setBeanIdentifier(java.lang.String beanIdentifier) {
254                    _addressLocalService.setBeanIdentifier(beanIdentifier);
255            }
256    
257            public com.liferay.portal.model.Address addAddress(long userId,
258                    java.lang.String className, long classPK, java.lang.String street1,
259                    java.lang.String street2, java.lang.String street3,
260                    java.lang.String city, java.lang.String zip, long regionId,
261                    long countryId, int typeId, boolean mailing, boolean primary)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    return _addressLocalService.addAddress(userId, className, classPK,
265                            street1, street2, street3, city, zip, regionId, countryId, typeId,
266                            mailing, primary);
267            }
268    
269            public void deleteAddresses(long companyId, java.lang.String className,
270                    long classPK)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _addressLocalService.deleteAddresses(companyId, className, classPK);
273            }
274    
275            public java.util.List<com.liferay.portal.model.Address> getAddresses()
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return _addressLocalService.getAddresses();
278            }
279    
280            public java.util.List<com.liferay.portal.model.Address> getAddresses(
281                    long companyId, java.lang.String className, long classPK)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _addressLocalService.getAddresses(companyId, className, classPK);
284            }
285    
286            public com.liferay.portal.model.Address updateAddress(long addressId,
287                    java.lang.String street1, java.lang.String street2,
288                    java.lang.String street3, java.lang.String city, java.lang.String zip,
289                    long regionId, long countryId, int typeId, boolean mailing,
290                    boolean primary)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return _addressLocalService.updateAddress(addressId, street1, street2,
294                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
295            }
296    
297            /**
298             * @deprecated Renamed to {@link #getWrappedService}
299             */
300            public AddressLocalService getWrappedAddressLocalService() {
301                    return _addressLocalService;
302            }
303    
304            /**
305             * @deprecated Renamed to {@link #setWrappedService}
306             */
307            public void setWrappedAddressLocalService(
308                    AddressLocalService addressLocalService) {
309                    _addressLocalService = addressLocalService;
310            }
311    
312            public AddressLocalService getWrappedService() {
313                    return _addressLocalService;
314            }
315    
316            public void setWrappedService(AddressLocalService addressLocalService) {
317                    _addressLocalService = addressLocalService;
318            }
319    
320            private AddressLocalService _addressLocalService;
321    }