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