1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service;
24  
25  
26  /**
27   * <a href="ShoppingItemFieldLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.shopping.service.ShoppingItemFieldLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService
50   * @see com.liferay.portlet.shopping.service.ShoppingItemFieldLocalServiceFactory
51   *
52   */
53  public class ShoppingItemFieldLocalServiceUtil {
54      public static com.liferay.portlet.shopping.model.ShoppingItemField addShoppingItemField(
55          com.liferay.portlet.shopping.model.ShoppingItemField model)
56          throws com.liferay.portal.SystemException {
57          ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
58  
59          return shoppingItemFieldLocalService.addShoppingItemField(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
66  
67          return shoppingItemFieldLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
74  
75          return shoppingItemFieldLocalService.dynamicQuery(queryInitializer,
76              begin, end);
77      }
78  
79      public static com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField(
80          com.liferay.portlet.shopping.model.ShoppingItemField model)
81          throws com.liferay.portal.SystemException {
82          ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
83  
84          return shoppingItemFieldLocalService.updateShoppingItemField(model);
85      }
86  
87      public static com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence getShoppingCartPersistence() {
88          ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
89  
90          return shoppingItemFieldLocalService.getShoppingCartPersistence();
91      }
92  
93      public static void setShoppingCartPersistence(
94          com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence) {
95          ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
96  
97          shoppingItemFieldLocalService.setShoppingCartPersistence(shoppingCartPersistence);
98      }
99  
100     public static com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence getShoppingCategoryPersistence() {
101         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
102 
103         return shoppingItemFieldLocalService.getShoppingCategoryPersistence();
104     }
105 
106     public static void setShoppingCategoryPersistence(
107         com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence) {
108         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
109 
110         shoppingItemFieldLocalService.setShoppingCategoryPersistence(shoppingCategoryPersistence);
111     }
112 
113     public static com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence getShoppingCouponPersistence() {
114         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
115 
116         return shoppingItemFieldLocalService.getShoppingCouponPersistence();
117     }
118 
119     public static void setShoppingCouponPersistence(
120         com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence) {
121         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
122 
123         shoppingItemFieldLocalService.setShoppingCouponPersistence(shoppingCouponPersistence);
124     }
125 
126     public static com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder getShoppingCouponFinder() {
127         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
128 
129         return shoppingItemFieldLocalService.getShoppingCouponFinder();
130     }
131 
132     public static void setShoppingCouponFinder(
133         com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder shoppingCouponFinder) {
134         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
135 
136         shoppingItemFieldLocalService.setShoppingCouponFinder(shoppingCouponFinder);
137     }
138 
139     public static com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence getShoppingItemPersistence() {
140         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
141 
142         return shoppingItemFieldLocalService.getShoppingItemPersistence();
143     }
144 
145     public static void setShoppingItemPersistence(
146         com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence) {
147         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
148 
149         shoppingItemFieldLocalService.setShoppingItemPersistence(shoppingItemPersistence);
150     }
151 
152     public static com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder getShoppingItemFinder() {
153         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
154 
155         return shoppingItemFieldLocalService.getShoppingItemFinder();
156     }
157 
158     public static void setShoppingItemFinder(
159         com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder shoppingItemFinder) {
160         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
161 
162         shoppingItemFieldLocalService.setShoppingItemFinder(shoppingItemFinder);
163     }
164 
165     public static com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
166         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
167 
168         return shoppingItemFieldLocalService.getShoppingItemFieldPersistence();
169     }
170 
171     public static void setShoppingItemFieldPersistence(
172         com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
173         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
174 
175         shoppingItemFieldLocalService.setShoppingItemFieldPersistence(shoppingItemFieldPersistence);
176     }
177 
178     public static com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence getShoppingItemPricePersistence() {
179         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
180 
181         return shoppingItemFieldLocalService.getShoppingItemPricePersistence();
182     }
183 
184     public static void setShoppingItemPricePersistence(
185         com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence) {
186         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
187 
188         shoppingItemFieldLocalService.setShoppingItemPricePersistence(shoppingItemPricePersistence);
189     }
190 
191     public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence getShoppingOrderPersistence() {
192         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
193 
194         return shoppingItemFieldLocalService.getShoppingOrderPersistence();
195     }
196 
197     public static void setShoppingOrderPersistence(
198         com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence) {
199         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
200 
201         shoppingItemFieldLocalService.setShoppingOrderPersistence(shoppingOrderPersistence);
202     }
203 
204     public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder getShoppingOrderFinder() {
205         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
206 
207         return shoppingItemFieldLocalService.getShoppingOrderFinder();
208     }
209 
210     public static void setShoppingOrderFinder(
211         com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder shoppingOrderFinder) {
212         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
213 
214         shoppingItemFieldLocalService.setShoppingOrderFinder(shoppingOrderFinder);
215     }
216 
217     public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
218         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
219 
220         return shoppingItemFieldLocalService.getShoppingOrderItemPersistence();
221     }
222 
223     public static void setShoppingOrderItemPersistence(
224         com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
225         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
226 
227         shoppingItemFieldLocalService.setShoppingOrderItemPersistence(shoppingOrderItemPersistence);
228     }
229 
230     public static void afterPropertiesSet() {
231         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
232 
233         shoppingItemFieldLocalService.afterPropertiesSet();
234     }
235 
236     public static java.util.List getItemFields(long itemId)
237         throws com.liferay.portal.SystemException {
238         ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory.getService();
239 
240         return shoppingItemFieldLocalService.getItemFields(itemId);
241     }
242 }