1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="AddressLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link AddressLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       AddressLocalService
32   * @generated
33   */
34  public class AddressLocalServiceWrapper implements AddressLocalService {
35      public AddressLocalServiceWrapper(AddressLocalService addressLocalService) {
36          _addressLocalService = addressLocalService;
37      }
38  
39      public com.liferay.portal.model.Address addAddress(
40          com.liferay.portal.model.Address address)
41          throws com.liferay.portal.SystemException {
42          return _addressLocalService.addAddress(address);
43      }
44  
45      public com.liferay.portal.model.Address createAddress(long addressId) {
46          return _addressLocalService.createAddress(addressId);
47      }
48  
49      public void deleteAddress(long addressId)
50          throws com.liferay.portal.PortalException,
51              com.liferay.portal.SystemException {
52          _addressLocalService.deleteAddress(addressId);
53      }
54  
55      public void deleteAddress(com.liferay.portal.model.Address address)
56          throws com.liferay.portal.SystemException {
57          _addressLocalService.deleteAddress(address);
58      }
59  
60      public java.util.List<Object> dynamicQuery(
61          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62          throws com.liferay.portal.SystemException {
63          return _addressLocalService.dynamicQuery(dynamicQuery);
64      }
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
68          int end) throws com.liferay.portal.SystemException {
69          return _addressLocalService.dynamicQuery(dynamicQuery, start, end);
70      }
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException {
77          return _addressLocalService.dynamicQuery(dynamicQuery, start, end,
78              orderByComparator);
79      }
80  
81      public int dynamicQueryCount(
82          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
83          throws com.liferay.portal.SystemException {
84          return _addressLocalService.dynamicQueryCount(dynamicQuery);
85      }
86  
87      public com.liferay.portal.model.Address getAddress(long addressId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException {
90          return _addressLocalService.getAddress(addressId);
91      }
92  
93      public java.util.List<com.liferay.portal.model.Address> getAddresses(
94          int start, int end) throws com.liferay.portal.SystemException {
95          return _addressLocalService.getAddresses(start, end);
96      }
97  
98      public int getAddressesCount() throws com.liferay.portal.SystemException {
99          return _addressLocalService.getAddressesCount();
100     }
101 
102     public com.liferay.portal.model.Address updateAddress(
103         com.liferay.portal.model.Address address)
104         throws com.liferay.portal.SystemException {
105         return _addressLocalService.updateAddress(address);
106     }
107 
108     public com.liferay.portal.model.Address updateAddress(
109         com.liferay.portal.model.Address address, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return _addressLocalService.updateAddress(address, merge);
112     }
113 
114     public com.liferay.portal.model.Address addAddress(long userId,
115         java.lang.String className, long classPK, java.lang.String street1,
116         java.lang.String street2, java.lang.String street3,
117         java.lang.String city, java.lang.String zip, long regionId,
118         long countryId, int typeId, boolean mailing, boolean primary)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return _addressLocalService.addAddress(userId, className, classPK,
122             street1, street2, street3, city, zip, regionId, countryId, typeId,
123             mailing, primary);
124     }
125 
126     public void deleteAddresses(long companyId, java.lang.String className,
127         long classPK) throws com.liferay.portal.SystemException {
128         _addressLocalService.deleteAddresses(companyId, className, classPK);
129     }
130 
131     public java.util.List<com.liferay.portal.model.Address> getAddresses()
132         throws com.liferay.portal.SystemException {
133         return _addressLocalService.getAddresses();
134     }
135 
136     public java.util.List<com.liferay.portal.model.Address> getAddresses(
137         long companyId, java.lang.String className, long classPK)
138         throws com.liferay.portal.SystemException {
139         return _addressLocalService.getAddresses(companyId, className, classPK);
140     }
141 
142     public com.liferay.portal.model.Address updateAddress(long addressId,
143         java.lang.String street1, java.lang.String street2,
144         java.lang.String street3, java.lang.String city, java.lang.String zip,
145         long regionId, long countryId, int typeId, boolean mailing,
146         boolean primary)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return _addressLocalService.updateAddress(addressId, street1, street2,
150             street3, city, zip, regionId, countryId, typeId, mailing, primary);
151     }
152 
153     public AddressLocalService getWrappedAddressLocalService() {
154         return _addressLocalService;
155     }
156 
157     private AddressLocalService _addressLocalService;
158 }