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