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