1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class ShoppingItemFieldLocalServiceUtil {
42 public static com.liferay.portlet.shopping.model.ShoppingItemField addShoppingItemField(
43 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
44 throws com.liferay.portal.SystemException {
45 return getService().addShoppingItemField(shoppingItemField);
46 }
47
48 public static com.liferay.portlet.shopping.model.ShoppingItemField createShoppingItemField(
49 long itemFieldId) {
50 return getService().createShoppingItemField(itemFieldId);
51 }
52
53 public static void deleteShoppingItemField(long itemFieldId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteShoppingItemField(itemFieldId);
57 }
58
59 public static void deleteShoppingItemField(
60 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
61 throws com.liferay.portal.SystemException {
62 getService().deleteShoppingItemField(shoppingItemField);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingItemField getShoppingItemField(
96 long itemFieldId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getShoppingItemField(itemFieldId);
100 }
101
102 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> getShoppingItemFields(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getShoppingItemFields(start, end);
105 }
106
107 public static int getShoppingItemFieldsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getShoppingItemFieldsCount();
110 }
111
112 public static com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField(
113 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
114 throws com.liferay.portal.SystemException {
115 return getService().updateShoppingItemField(shoppingItemField);
116 }
117
118 public static com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField(
119 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updateShoppingItemField(shoppingItemField, merge);
122 }
123
124 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> getItemFields(
125 long itemId) throws com.liferay.portal.SystemException {
126 return getService().getItemFields(itemId);
127 }
128
129 public static ShoppingItemFieldLocalService getService() {
130 if (_service == null) {
131 _service = (ShoppingItemFieldLocalService)PortalBeanLocatorUtil.locate(ShoppingItemFieldLocalService.class.getName());
132
133 ReferenceRegistry.registerReference(ShoppingItemFieldLocalServiceUtil.class,
134 "_service");
135 MethodCache.remove(ShoppingItemFieldLocalService.class);
136 }
137
138 return _service;
139 }
140
141 public void setService(ShoppingItemFieldLocalService service) {
142 MethodCache.remove(ShoppingItemFieldLocalService.class);
143
144 _service = service;
145
146 ReferenceRegistry.registerReference(ShoppingItemFieldLocalServiceUtil.class,
147 "_service");
148 MethodCache.remove(ShoppingItemFieldLocalService.class);
149 }
150
151 private static ShoppingItemFieldLocalService _service;
152 }