1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  /**
18   * <a href="AddressLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link AddressLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       AddressLocalService
31   * @generated
32   */
33  public class AddressLocalServiceWrapper implements AddressLocalService {
34      public AddressLocalServiceWrapper(AddressLocalService addressLocalService) {
35          _addressLocalService = addressLocalService;
36      }
37  
38      public com.liferay.portal.model.Address addAddress(
39          com.liferay.portal.model.Address address)
40          throws com.liferay.portal.SystemException {
41          return _addressLocalService.addAddress(address);
42      }
43  
44      public com.liferay.portal.model.Address createAddress(long addressId) {
45          return _addressLocalService.createAddress(addressId);
46      }
47  
48      public void deleteAddress(long addressId)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException {
51          _addressLocalService.deleteAddress(addressId);
52      }
53  
54      public void deleteAddress(com.liferay.portal.model.Address address)
55          throws com.liferay.portal.SystemException {
56          _addressLocalService.deleteAddress(address);
57      }
58  
59      @SuppressWarnings("rawtypes")
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62          throws com.liferay.portal.SystemException {
63          return _addressLocalService.dynamicQuery(dynamicQuery);
64      }
65  
66      @SuppressWarnings("rawtypes")
67      public java.util.List dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException {
70          return _addressLocalService.dynamicQuery(dynamicQuery, start, end);
71      }
72  
73      @SuppressWarnings("rawtypes")
74      public java.util.List dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException {
79          return _addressLocalService.dynamicQuery(dynamicQuery, start, end,
80              orderByComparator);
81      }
82  
83      public int dynamicQueryCount(
84          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
85          throws com.liferay.portal.SystemException {
86          return _addressLocalService.dynamicQueryCount(dynamicQuery);
87      }
88  
89      public com.liferay.portal.model.Address getAddress(long addressId)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException {
92          return _addressLocalService.getAddress(addressId);
93      }
94  
95      public java.util.List<com.liferay.portal.model.Address> getAddresses(
96          int start, int end) throws com.liferay.portal.SystemException {
97          return _addressLocalService.getAddresses(start, end);
98      }
99  
100     public int getAddressesCount() throws com.liferay.portal.SystemException {
101         return _addressLocalService.getAddressesCount();
102     }
103 
104     public com.liferay.portal.model.Address updateAddress(
105         com.liferay.portal.model.Address address)
106         throws com.liferay.portal.SystemException {
107         return _addressLocalService.updateAddress(address);
108     }
109 
110     public com.liferay.portal.model.Address updateAddress(
111         com.liferay.portal.model.Address address, boolean merge)
112         throws com.liferay.portal.SystemException {
113         return _addressLocalService.updateAddress(address, merge);
114     }
115 
116     public com.liferay.portal.model.Address addAddress(long userId,
117         java.lang.String className, long classPK, java.lang.String street1,
118         java.lang.String street2, java.lang.String street3,
119         java.lang.String city, java.lang.String zip, long regionId,
120         long countryId, int typeId, boolean mailing, boolean primary)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return _addressLocalService.addAddress(userId, className, classPK,
124             street1, street2, street3, city, zip, regionId, countryId, typeId,
125             mailing, primary);
126     }
127 
128     public void deleteAddresses(long companyId, java.lang.String className,
129         long classPK) throws com.liferay.portal.SystemException {
130         _addressLocalService.deleteAddresses(companyId, className, classPK);
131     }
132 
133     public java.util.List<com.liferay.portal.model.Address> getAddresses()
134         throws com.liferay.portal.SystemException {
135         return _addressLocalService.getAddresses();
136     }
137 
138     public java.util.List<com.liferay.portal.model.Address> getAddresses(
139         long companyId, java.lang.String className, long classPK)
140         throws com.liferay.portal.SystemException {
141         return _addressLocalService.getAddresses(companyId, className, classPK);
142     }
143 
144     public com.liferay.portal.model.Address updateAddress(long addressId,
145         java.lang.String street1, java.lang.String street2,
146         java.lang.String street3, java.lang.String city, java.lang.String zip,
147         long regionId, long countryId, int typeId, boolean mailing,
148         boolean primary)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         return _addressLocalService.updateAddress(addressId, street1, street2,
152             street3, city, zip, regionId, countryId, typeId, mailing, primary);
153     }
154 
155     public AddressLocalService getWrappedAddressLocalService() {
156         return _addressLocalService;
157     }
158 
159     private AddressLocalService _addressLocalService;
160 }