1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ShoppingItemFieldLocalServiceUtil {
40 public static com.liferay.portlet.shopping.model.ShoppingItemField addShoppingItemField(
41 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addShoppingItemField(shoppingItemField);
44 }
45
46 public static com.liferay.portlet.shopping.model.ShoppingItemField createShoppingItemField(
47 long itemFieldId) {
48 return getService().createShoppingItemField(itemFieldId);
49 }
50
51 public static void deleteShoppingItemField(long itemFieldId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteShoppingItemField(itemFieldId);
55 }
56
57 public static void deleteShoppingItemField(
58 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteShoppingItemField(shoppingItemField);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portlet.shopping.model.ShoppingItemField getShoppingItemField(
94 long itemFieldId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getShoppingItemField(itemFieldId);
98 }
99
100 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> getShoppingItemFields(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getShoppingItemFields(start, end);
104 }
105
106 public static int getShoppingItemFieldsCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getShoppingItemFieldsCount();
109 }
110
111 public static com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField(
112 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateShoppingItemField(shoppingItemField);
115 }
116
117 public static com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField(
118 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.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.kernel.exception.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
134 return _service;
135 }
136
137 public void setService(ShoppingItemFieldLocalService service) {
138 _service = service;
139 }
140
141 private static ShoppingItemFieldLocalService _service;
142 }