1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ShoppingOrderItemLocalServiceUtil {
40 public static com.liferay.portlet.shopping.model.ShoppingOrderItem addShoppingOrderItem(
41 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addShoppingOrderItem(shoppingOrderItem);
44 }
45
46 public static com.liferay.portlet.shopping.model.ShoppingOrderItem createShoppingOrderItem(
47 long orderItemId) {
48 return getService().createShoppingOrderItem(orderItemId);
49 }
50
51 public static void deleteShoppingOrderItem(long orderItemId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteShoppingOrderItem(orderItemId);
55 }
56
57 public static void deleteShoppingOrderItem(
58 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteShoppingOrderItem(shoppingOrderItem);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.shopping.model.ShoppingOrderItem getShoppingOrderItem(
76 long orderItemId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getShoppingOrderItem(orderItemId);
80 }
81
82 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> getShoppingOrderItems(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getShoppingOrderItems(start, end);
86 }
87
88 public static int getShoppingOrderItemsCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getShoppingOrderItemsCount();
91 }
92
93 public static com.liferay.portlet.shopping.model.ShoppingOrderItem updateShoppingOrderItem(
94 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updateShoppingOrderItem(shoppingOrderItem);
97 }
98
99 public static com.liferay.portlet.shopping.model.ShoppingOrderItem updateShoppingOrderItem(
100 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem,
101 boolean merge)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().updateShoppingOrderItem(shoppingOrderItem, merge);
104 }
105
106 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> getOrderItems(
107 long orderId)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().getOrderItems(orderId);
110 }
111
112 public static ShoppingOrderItemLocalService getService() {
113 if (_service == null) {
114 _service = (ShoppingOrderItemLocalService)PortalBeanLocatorUtil.locate(ShoppingOrderItemLocalService.class.getName());
115 }
116
117 return _service;
118 }
119
120 public void setService(ShoppingOrderItemLocalService service) {
121 _service = service;
122 }
123
124 private static ShoppingOrderItemLocalService _service;
125 }