001    /**
002     * Copyright (c) 2000-2011 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            public AddressLocalServiceWrapper(AddressLocalService addressLocalService) {
028                    _addressLocalService = addressLocalService;
029            }
030    
031            /**
032            * Adds the address to the database. Also notifies the appropriate model listeners.
033            *
034            * @param address the address
035            * @return the address that was added
036            * @throws SystemException if a system exception occurred
037            */
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            public com.liferay.portal.model.Address createAddress(long addressId) {
051                    return _addressLocalService.createAddress(addressId);
052            }
053    
054            /**
055            * Deletes the address with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param addressId the primary key of the address
058            * @throws PortalException if a address with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteAddress(long addressId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _addressLocalService.deleteAddress(addressId);
065            }
066    
067            /**
068            * Deletes the address from the database. Also notifies the appropriate model listeners.
069            *
070            * @param address the address
071            * @throws SystemException if a system exception occurred
072            */
073            public void deleteAddress(com.liferay.portal.model.Address address)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    _addressLocalService.deleteAddress(address);
076            }
077    
078            /**
079            * Performs a dynamic query on the database and returns the matching rows.
080            *
081            * @param dynamicQuery the dynamic query
082            * @return the matching rows
083            * @throws SystemException if a system exception occurred
084            */
085            @SuppressWarnings("rawtypes")
086            public java.util.List dynamicQuery(
087                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _addressLocalService.dynamicQuery(dynamicQuery);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns a range of the matching rows.
094            *
095            * <p>
096            * 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.
097            * </p>
098            *
099            * @param dynamicQuery the dynamic query
100            * @param start the lower bound of the range of model instances
101            * @param end the upper bound of the range of model instances (not inclusive)
102            * @return the range of matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108                    int end) throws com.liferay.portal.kernel.exception.SystemException {
109                    return _addressLocalService.dynamicQuery(dynamicQuery, start, end);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return _addressLocalService.dynamicQuery(dynamicQuery, start, end,
133                            orderByComparator);
134            }
135    
136            /**
137            * Returns the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query
140            * @return the number of rows that match the dynamic query
141            * @throws SystemException if a system exception occurred
142            */
143            public long dynamicQueryCount(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _addressLocalService.dynamicQueryCount(dynamicQuery);
147            }
148    
149            /**
150            * Returns the address with the primary key.
151            *
152            * @param addressId the primary key of the address
153            * @return the address
154            * @throws PortalException if a address with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portal.model.Address getAddress(long addressId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _addressLocalService.getAddress(addressId);
161            }
162    
163            public com.liferay.portal.model.PersistedModel getPersistedModel(
164                    java.io.Serializable primaryKeyObj)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _addressLocalService.getPersistedModel(primaryKeyObj);
168            }
169    
170            /**
171            * Returns a range of all the addresses.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param start the lower bound of the range of addresses
178            * @param end the upper bound of the range of addresses (not inclusive)
179            * @return the range of addresses
180            * @throws SystemException if a system exception occurred
181            */
182            public java.util.List<com.liferay.portal.model.Address> getAddresses(
183                    int start, int end)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _addressLocalService.getAddresses(start, end);
186            }
187    
188            /**
189            * Returns the number of addresses.
190            *
191            * @return the number of addresses
192            * @throws SystemException if a system exception occurred
193            */
194            public int getAddressesCount()
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return _addressLocalService.getAddressesCount();
197            }
198    
199            /**
200            * Updates the address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
201            *
202            * @param address the address
203            * @return the address that was updated
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portal.model.Address updateAddress(
207                    com.liferay.portal.model.Address address)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _addressLocalService.updateAddress(address);
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            * @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.
217            * @return the address that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.Address updateAddress(
221                    com.liferay.portal.model.Address address, boolean merge)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _addressLocalService.updateAddress(address, merge);
224            }
225    
226            /**
227            * Returns the Spring bean ID for this bean.
228            *
229            * @return the Spring bean ID for this bean
230            */
231            public java.lang.String getBeanIdentifier() {
232                    return _addressLocalService.getBeanIdentifier();
233            }
234    
235            /**
236            * Sets the Spring bean ID for this bean.
237            *
238            * @param beanIdentifier the Spring bean ID for this bean
239            */
240            public void setBeanIdentifier(java.lang.String beanIdentifier) {
241                    _addressLocalService.setBeanIdentifier(beanIdentifier);
242            }
243    
244            public com.liferay.portal.model.Address addAddress(long userId,
245                    java.lang.String className, long classPK, java.lang.String street1,
246                    java.lang.String street2, java.lang.String street3,
247                    java.lang.String city, java.lang.String zip, long regionId,
248                    long countryId, int typeId, boolean mailing, boolean primary)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return _addressLocalService.addAddress(userId, className, classPK,
252                            street1, street2, street3, city, zip, regionId, countryId, typeId,
253                            mailing, primary);
254            }
255    
256            public void deleteAddresses(long companyId, java.lang.String className,
257                    long classPK)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    _addressLocalService.deleteAddresses(companyId, className, classPK);
260            }
261    
262            public java.util.List<com.liferay.portal.model.Address> getAddresses()
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return _addressLocalService.getAddresses();
265            }
266    
267            public java.util.List<com.liferay.portal.model.Address> getAddresses(
268                    long companyId, java.lang.String className, long classPK)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return _addressLocalService.getAddresses(companyId, className, classPK);
271            }
272    
273            public com.liferay.portal.model.Address updateAddress(long addressId,
274                    java.lang.String street1, java.lang.String street2,
275                    java.lang.String street3, java.lang.String city, java.lang.String zip,
276                    long regionId, long countryId, int typeId, boolean mailing,
277                    boolean primary)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return _addressLocalService.updateAddress(addressId, street1, street2,
281                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
282            }
283    
284            public AddressLocalService getWrappedAddressLocalService() {
285                    return _addressLocalService;
286            }
287    
288            public void setWrappedAddressLocalService(
289                    AddressLocalService addressLocalService) {
290                    _addressLocalService = addressLocalService;
291            }
292    
293            private AddressLocalService _addressLocalService;
294    }