1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22
28 public class ShoppingItemUtil {
29 public static void cacheResult(
30 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem) {
31 getPersistence().cacheResult(shoppingItem);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems) {
36 getPersistence().cacheResult(shoppingItems);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.shopping.model.ShoppingItem create(
44 long itemId) {
45 return getPersistence().create(itemId);
46 }
47
48 public static com.liferay.portlet.shopping.model.ShoppingItem remove(
49 long itemId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.shopping.NoSuchItemException {
52 return getPersistence().remove(itemId);
53 }
54
55 public static com.liferay.portlet.shopping.model.ShoppingItem remove(
56 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(shoppingItem);
59 }
60
61
64 public static com.liferay.portlet.shopping.model.ShoppingItem update(
65 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(shoppingItem);
68 }
69
70
83 public static com.liferay.portlet.shopping.model.ShoppingItem update(
84 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(shoppingItem, merge);
87 }
88
89 public static com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
90 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(shoppingItem, merge);
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
96 long itemId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.shopping.NoSuchItemException {
99 return getPersistence().findByPrimaryKey(itemId);
100 }
101
102 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
103 long itemId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(itemId);
105 }
106
107 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
108 long categoryId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByCategoryId(categoryId);
110 }
111
112 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
113 long categoryId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByCategoryId(categoryId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
119 long categoryId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByCategoryId(categoryId, start, end, obc);
123 }
124
125 public static com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
126 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.shopping.NoSuchItemException {
129 return getPersistence().findByCategoryId_First(categoryId, obc);
130 }
131
132 public static com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
133 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.shopping.NoSuchItemException {
136 return getPersistence().findByCategoryId_Last(categoryId, obc);
137 }
138
139 public static com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
140 long itemId, long categoryId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.shopping.NoSuchItemException {
144 return getPersistence()
145 .findByCategoryId_PrevAndNext(itemId, categoryId, obc);
146 }
147
148 public static com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
149 long smallImageId)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.shopping.NoSuchItemException {
152 return getPersistence().findBySmallImageId(smallImageId);
153 }
154
155 public static com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
156 long smallImageId) throws com.liferay.portal.SystemException {
157 return getPersistence().fetchBySmallImageId(smallImageId);
158 }
159
160 public static com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
161 long smallImageId, boolean retrieveFromCache)
162 throws com.liferay.portal.SystemException {
163 return getPersistence()
164 .fetchBySmallImageId(smallImageId, retrieveFromCache);
165 }
166
167 public static com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
168 long mediumImageId)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portlet.shopping.NoSuchItemException {
171 return getPersistence().findByMediumImageId(mediumImageId);
172 }
173
174 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
175 long mediumImageId) throws com.liferay.portal.SystemException {
176 return getPersistence().fetchByMediumImageId(mediumImageId);
177 }
178
179 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
180 long mediumImageId, boolean retrieveFromCache)
181 throws com.liferay.portal.SystemException {
182 return getPersistence()
183 .fetchByMediumImageId(mediumImageId, retrieveFromCache);
184 }
185
186 public static com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
187 long largeImageId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.shopping.NoSuchItemException {
190 return getPersistence().findByLargeImageId(largeImageId);
191 }
192
193 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
194 long largeImageId) throws com.liferay.portal.SystemException {
195 return getPersistence().fetchByLargeImageId(largeImageId);
196 }
197
198 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
199 long largeImageId, boolean retrieveFromCache)
200 throws com.liferay.portal.SystemException {
201 return getPersistence()
202 .fetchByLargeImageId(largeImageId, retrieveFromCache);
203 }
204
205 public static com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
206 long companyId, java.lang.String sku)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.shopping.NoSuchItemException {
209 return getPersistence().findByC_S(companyId, sku);
210 }
211
212 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
213 long companyId, java.lang.String sku)
214 throws com.liferay.portal.SystemException {
215 return getPersistence().fetchByC_S(companyId, sku);
216 }
217
218 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
219 long companyId, java.lang.String sku, boolean retrieveFromCache)
220 throws com.liferay.portal.SystemException {
221 return getPersistence().fetchByC_S(companyId, sku, retrieveFromCache);
222 }
223
224 public static java.util.List<Object> findWithDynamicQuery(
225 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
226 throws com.liferay.portal.SystemException {
227 return getPersistence().findWithDynamicQuery(dynamicQuery);
228 }
229
230 public static java.util.List<Object> findWithDynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
232 int end) throws com.liferay.portal.SystemException {
233 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
234 }
235
236 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
237 throws com.liferay.portal.SystemException {
238 return getPersistence().findAll();
239 }
240
241 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
242 int start, int end) throws com.liferay.portal.SystemException {
243 return getPersistence().findAll(start, end);
244 }
245
246 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
247 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
248 throws com.liferay.portal.SystemException {
249 return getPersistence().findAll(start, end, obc);
250 }
251
252 public static void removeByCategoryId(long categoryId)
253 throws com.liferay.portal.SystemException {
254 getPersistence().removeByCategoryId(categoryId);
255 }
256
257 public static void removeBySmallImageId(long smallImageId)
258 throws com.liferay.portal.SystemException,
259 com.liferay.portlet.shopping.NoSuchItemException {
260 getPersistence().removeBySmallImageId(smallImageId);
261 }
262
263 public static void removeByMediumImageId(long mediumImageId)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portlet.shopping.NoSuchItemException {
266 getPersistence().removeByMediumImageId(mediumImageId);
267 }
268
269 public static void removeByLargeImageId(long largeImageId)
270 throws com.liferay.portal.SystemException,
271 com.liferay.portlet.shopping.NoSuchItemException {
272 getPersistence().removeByLargeImageId(largeImageId);
273 }
274
275 public static void removeByC_S(long companyId, java.lang.String sku)
276 throws com.liferay.portal.SystemException,
277 com.liferay.portlet.shopping.NoSuchItemException {
278 getPersistence().removeByC_S(companyId, sku);
279 }
280
281 public static void removeAll() throws com.liferay.portal.SystemException {
282 getPersistence().removeAll();
283 }
284
285 public static int countByCategoryId(long categoryId)
286 throws com.liferay.portal.SystemException {
287 return getPersistence().countByCategoryId(categoryId);
288 }
289
290 public static int countBySmallImageId(long smallImageId)
291 throws com.liferay.portal.SystemException {
292 return getPersistence().countBySmallImageId(smallImageId);
293 }
294
295 public static int countByMediumImageId(long mediumImageId)
296 throws com.liferay.portal.SystemException {
297 return getPersistence().countByMediumImageId(mediumImageId);
298 }
299
300 public static int countByLargeImageId(long largeImageId)
301 throws com.liferay.portal.SystemException {
302 return getPersistence().countByLargeImageId(largeImageId);
303 }
304
305 public static int countByC_S(long companyId, java.lang.String sku)
306 throws com.liferay.portal.SystemException {
307 return getPersistence().countByC_S(companyId, sku);
308 }
309
310 public static int countAll() throws com.liferay.portal.SystemException {
311 return getPersistence().countAll();
312 }
313
314 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
315 long pk) throws com.liferay.portal.SystemException {
316 return getPersistence().getShoppingItemPrices(pk);
317 }
318
319 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
320 long pk, int start, int end) throws com.liferay.portal.SystemException {
321 return getPersistence().getShoppingItemPrices(pk, start, end);
322 }
323
324 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
325 long pk, int start, int end,
326 com.liferay.portal.kernel.util.OrderByComparator obc)
327 throws com.liferay.portal.SystemException {
328 return getPersistence().getShoppingItemPrices(pk, start, end, obc);
329 }
330
331 public static int getShoppingItemPricesSize(long pk)
332 throws com.liferay.portal.SystemException {
333 return getPersistence().getShoppingItemPricesSize(pk);
334 }
335
336 public static boolean containsShoppingItemPrice(long pk,
337 long shoppingItemPricePK) throws com.liferay.portal.SystemException {
338 return getPersistence()
339 .containsShoppingItemPrice(pk, shoppingItemPricePK);
340 }
341
342 public static boolean containsShoppingItemPrices(long pk)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().containsShoppingItemPrices(pk);
345 }
346
347 public static ShoppingItemPersistence getPersistence() {
348 return _persistence;
349 }
350
351 public void setPersistence(ShoppingItemPersistence persistence) {
352 _persistence = persistence;
353 }
354
355 private static ShoppingItemPersistence _persistence;
356 }