001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.shopping.service;
022:
023: /**
024: * <a href="ShoppingItemFieldLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.shopping.service.ShoppingItemFieldLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService
047: * @see com.liferay.portlet.shopping.service.ShoppingItemFieldLocalServiceFactory
048: *
049: */
050: public class ShoppingItemFieldLocalServiceUtil {
051: public static com.liferay.portlet.shopping.model.ShoppingItemField addShoppingItemField(
052: com.liferay.portlet.shopping.model.ShoppingItemField model)
053: throws com.liferay.portal.SystemException {
054: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
055: .getService();
056:
057: return shoppingItemFieldLocalService
058: .addShoppingItemField(model);
059: }
060:
061: public static java.util.List dynamicQuery(
062: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
063: throws com.liferay.portal.SystemException {
064: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
065: .getService();
066:
067: return shoppingItemFieldLocalService
068: .dynamicQuery(queryInitializer);
069: }
070:
071: public static java.util.List dynamicQuery(
072: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
073: int begin, int end)
074: throws com.liferay.portal.SystemException {
075: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
076: .getService();
077:
078: return shoppingItemFieldLocalService.dynamicQuery(
079: queryInitializer, begin, end);
080: }
081:
082: public static com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField(
083: com.liferay.portlet.shopping.model.ShoppingItemField model)
084: throws com.liferay.portal.SystemException {
085: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
086: .getService();
087:
088: return shoppingItemFieldLocalService
089: .updateShoppingItemField(model);
090: }
091:
092: public static com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence getShoppingCartPersistence() {
093: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
094: .getService();
095:
096: return shoppingItemFieldLocalService
097: .getShoppingCartPersistence();
098: }
099:
100: public static void setShoppingCartPersistence(
101: com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence) {
102: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
103: .getService();
104:
105: shoppingItemFieldLocalService
106: .setShoppingCartPersistence(shoppingCartPersistence);
107: }
108:
109: public static com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence getShoppingCategoryPersistence() {
110: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
111: .getService();
112:
113: return shoppingItemFieldLocalService
114: .getShoppingCategoryPersistence();
115: }
116:
117: public static void setShoppingCategoryPersistence(
118: com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence) {
119: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
120: .getService();
121:
122: shoppingItemFieldLocalService
123: .setShoppingCategoryPersistence(shoppingCategoryPersistence);
124: }
125:
126: public static com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence getShoppingCouponPersistence() {
127: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
128: .getService();
129:
130: return shoppingItemFieldLocalService
131: .getShoppingCouponPersistence();
132: }
133:
134: public static void setShoppingCouponPersistence(
135: com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence) {
136: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
137: .getService();
138:
139: shoppingItemFieldLocalService
140: .setShoppingCouponPersistence(shoppingCouponPersistence);
141: }
142:
143: public static com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder getShoppingCouponFinder() {
144: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
145: .getService();
146:
147: return shoppingItemFieldLocalService.getShoppingCouponFinder();
148: }
149:
150: public static void setShoppingCouponFinder(
151: com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder shoppingCouponFinder) {
152: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
153: .getService();
154:
155: shoppingItemFieldLocalService
156: .setShoppingCouponFinder(shoppingCouponFinder);
157: }
158:
159: public static com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence getShoppingItemPersistence() {
160: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
161: .getService();
162:
163: return shoppingItemFieldLocalService
164: .getShoppingItemPersistence();
165: }
166:
167: public static void setShoppingItemPersistence(
168: com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence) {
169: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
170: .getService();
171:
172: shoppingItemFieldLocalService
173: .setShoppingItemPersistence(shoppingItemPersistence);
174: }
175:
176: public static com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder getShoppingItemFinder() {
177: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
178: .getService();
179:
180: return shoppingItemFieldLocalService.getShoppingItemFinder();
181: }
182:
183: public static void setShoppingItemFinder(
184: com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder shoppingItemFinder) {
185: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
186: .getService();
187:
188: shoppingItemFieldLocalService
189: .setShoppingItemFinder(shoppingItemFinder);
190: }
191:
192: public static com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
193: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
194: .getService();
195:
196: return shoppingItemFieldLocalService
197: .getShoppingItemFieldPersistence();
198: }
199:
200: public static void setShoppingItemFieldPersistence(
201: com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
202: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
203: .getService();
204:
205: shoppingItemFieldLocalService
206: .setShoppingItemFieldPersistence(shoppingItemFieldPersistence);
207: }
208:
209: public static com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence getShoppingItemPricePersistence() {
210: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
211: .getService();
212:
213: return shoppingItemFieldLocalService
214: .getShoppingItemPricePersistence();
215: }
216:
217: public static void setShoppingItemPricePersistence(
218: com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence) {
219: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
220: .getService();
221:
222: shoppingItemFieldLocalService
223: .setShoppingItemPricePersistence(shoppingItemPricePersistence);
224: }
225:
226: public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence getShoppingOrderPersistence() {
227: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
228: .getService();
229:
230: return shoppingItemFieldLocalService
231: .getShoppingOrderPersistence();
232: }
233:
234: public static void setShoppingOrderPersistence(
235: com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence) {
236: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
237: .getService();
238:
239: shoppingItemFieldLocalService
240: .setShoppingOrderPersistence(shoppingOrderPersistence);
241: }
242:
243: public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder getShoppingOrderFinder() {
244: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
245: .getService();
246:
247: return shoppingItemFieldLocalService.getShoppingOrderFinder();
248: }
249:
250: public static void setShoppingOrderFinder(
251: com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder shoppingOrderFinder) {
252: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
253: .getService();
254:
255: shoppingItemFieldLocalService
256: .setShoppingOrderFinder(shoppingOrderFinder);
257: }
258:
259: public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
260: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
261: .getService();
262:
263: return shoppingItemFieldLocalService
264: .getShoppingOrderItemPersistence();
265: }
266:
267: public static void setShoppingOrderItemPersistence(
268: com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
269: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
270: .getService();
271:
272: shoppingItemFieldLocalService
273: .setShoppingOrderItemPersistence(shoppingOrderItemPersistence);
274: }
275:
276: public static void afterPropertiesSet() {
277: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
278: .getService();
279:
280: shoppingItemFieldLocalService.afterPropertiesSet();
281: }
282:
283: public static java.util.List getItemFields(long itemId)
284: throws com.liferay.portal.SystemException {
285: ShoppingItemFieldLocalService shoppingItemFieldLocalService = ShoppingItemFieldLocalServiceFactory
286: .getService();
287:
288: return shoppingItemFieldLocalService.getItemFields(itemId);
289: }
290: }
|