001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.shopping.model.ShoppingItem;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the shopping item service. This utility wraps {@link ShoppingItemPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see ShoppingItemPersistence
037     * @see ShoppingItemPersistenceImpl
038     * @generated
039     */
040    public class ShoppingItemUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(ShoppingItem shoppingItem) {
058                    getPersistence().clearCache(shoppingItem);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<ShoppingItem> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<ShoppingItem> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<ShoppingItem> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static ShoppingItem update(ShoppingItem shoppingItem, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(shoppingItem, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static ShoppingItem update(ShoppingItem shoppingItem, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(shoppingItem, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the shopping item in the entity cache if it is enabled.
115            *
116            * @param shoppingItem the shopping item
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem) {
120                    getPersistence().cacheResult(shoppingItem);
121            }
122    
123            /**
124            * Caches the shopping items in the entity cache if it is enabled.
125            *
126            * @param shoppingItems the shopping items
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems) {
130                    getPersistence().cacheResult(shoppingItems);
131            }
132    
133            /**
134            * Creates a new shopping item with the primary key. Does not add the shopping item to the database.
135            *
136            * @param itemId the primary key for the new shopping item
137            * @return the new shopping item
138            */
139            public static com.liferay.portlet.shopping.model.ShoppingItem create(
140                    long itemId) {
141                    return getPersistence().create(itemId);
142            }
143    
144            /**
145            * Removes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param itemId the primary key of the shopping item
148            * @return the shopping item that was removed
149            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.shopping.model.ShoppingItem remove(
153                    long itemId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.shopping.NoSuchItemException {
156                    return getPersistence().remove(itemId);
157            }
158    
159            public static com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
160                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(shoppingItem, merge);
164            }
165    
166            /**
167            * Returns the shopping item with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
168            *
169            * @param itemId the primary key of the shopping item
170            * @return the shopping item
171            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
175                    long itemId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.shopping.NoSuchItemException {
178                    return getPersistence().findByPrimaryKey(itemId);
179            }
180    
181            /**
182            * Returns the shopping item with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param itemId the primary key of the shopping item
185            * @return the shopping item, or <code>null</code> if a shopping item with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
189                    long itemId) throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(itemId);
191            }
192    
193            /**
194            * Returns the shopping item where smallImageId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
195            *
196            * @param smallImageId the small image ID
197            * @return the matching shopping item
198            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public static com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
202                    long smallImageId)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.shopping.NoSuchItemException {
205                    return getPersistence().findBySmallImageId(smallImageId);
206            }
207    
208            /**
209            * Returns the shopping item where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
210            *
211            * @param smallImageId the small image ID
212            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
213            * @throws SystemException if a system exception occurred
214            */
215            public static com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
216                    long smallImageId)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getPersistence().fetchBySmallImageId(smallImageId);
219            }
220    
221            /**
222            * Returns the shopping item where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
223            *
224            * @param smallImageId the small image ID
225            * @param retrieveFromCache whether to use the finder cache
226            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
227            * @throws SystemException if a system exception occurred
228            */
229            public static com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
230                    long smallImageId, boolean retrieveFromCache)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence()
233                                       .fetchBySmallImageId(smallImageId, retrieveFromCache);
234            }
235    
236            /**
237            * Returns the shopping item where mediumImageId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
238            *
239            * @param mediumImageId the medium image ID
240            * @return the matching shopping item
241            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public static com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
245                    long mediumImageId)
246                    throws com.liferay.portal.kernel.exception.SystemException,
247                            com.liferay.portlet.shopping.NoSuchItemException {
248                    return getPersistence().findByMediumImageId(mediumImageId);
249            }
250    
251            /**
252            * Returns the shopping item where mediumImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
253            *
254            * @param mediumImageId the medium image ID
255            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
259                    long mediumImageId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return getPersistence().fetchByMediumImageId(mediumImageId);
262            }
263    
264            /**
265            * Returns the shopping item where mediumImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
266            *
267            * @param mediumImageId the medium image ID
268            * @param retrieveFromCache whether to use the finder cache
269            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
273                    long mediumImageId, boolean retrieveFromCache)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence()
276                                       .fetchByMediumImageId(mediumImageId, retrieveFromCache);
277            }
278    
279            /**
280            * Returns the shopping item where largeImageId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
281            *
282            * @param largeImageId the large image ID
283            * @return the matching shopping item
284            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
288                    long largeImageId)
289                    throws com.liferay.portal.kernel.exception.SystemException,
290                            com.liferay.portlet.shopping.NoSuchItemException {
291                    return getPersistence().findByLargeImageId(largeImageId);
292            }
293    
294            /**
295            * Returns the shopping item where largeImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
296            *
297            * @param largeImageId the large image ID
298            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
299            * @throws SystemException if a system exception occurred
300            */
301            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
302                    long largeImageId)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return getPersistence().fetchByLargeImageId(largeImageId);
305            }
306    
307            /**
308            * Returns the shopping item where largeImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
309            *
310            * @param largeImageId the large image ID
311            * @param retrieveFromCache whether to use the finder cache
312            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
316                    long largeImageId, boolean retrieveFromCache)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return getPersistence()
319                                       .fetchByLargeImageId(largeImageId, retrieveFromCache);
320            }
321    
322            /**
323            * Returns all the shopping items where groupId = &#63; and categoryId = &#63;.
324            *
325            * @param groupId the group ID
326            * @param categoryId the category ID
327            * @return the matching shopping items
328            * @throws SystemException if a system exception occurred
329            */
330            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
331                    long groupId, long categoryId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return getPersistence().findByG_C(groupId, categoryId);
334            }
335    
336            /**
337            * Returns a range of all the shopping items where groupId = &#63; and categoryId = &#63;.
338            *
339            * <p>
340            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
341            * </p>
342            *
343            * @param groupId the group ID
344            * @param categoryId the category ID
345            * @param start the lower bound of the range of shopping items
346            * @param end the upper bound of the range of shopping items (not inclusive)
347            * @return the range of matching shopping items
348            * @throws SystemException if a system exception occurred
349            */
350            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
351                    long groupId, long categoryId, int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return getPersistence().findByG_C(groupId, categoryId, start, end);
354            }
355    
356            /**
357            * Returns an ordered range of all the shopping items where groupId = &#63; and categoryId = &#63;.
358            *
359            * <p>
360            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
361            * </p>
362            *
363            * @param groupId the group ID
364            * @param categoryId the category ID
365            * @param start the lower bound of the range of shopping items
366            * @param end the upper bound of the range of shopping items (not inclusive)
367            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
368            * @return the ordered range of matching shopping items
369            * @throws SystemException if a system exception occurred
370            */
371            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
372                    long groupId, long categoryId, int start, int end,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return getPersistence()
376                                       .findByG_C(groupId, categoryId, start, end, orderByComparator);
377            }
378    
379            /**
380            * Returns the first shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
381            *
382            * <p>
383            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
384            * </p>
385            *
386            * @param groupId the group ID
387            * @param categoryId the category ID
388            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
389            * @return the first matching shopping item
390            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(
394                    long groupId, long categoryId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException,
397                            com.liferay.portlet.shopping.NoSuchItemException {
398                    return getPersistence()
399                                       .findByG_C_First(groupId, categoryId, orderByComparator);
400            }
401    
402            /**
403            * Returns the last shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
404            *
405            * <p>
406            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
407            * </p>
408            *
409            * @param groupId the group ID
410            * @param categoryId the category ID
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the last matching shopping item
413            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public static com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(
417                    long groupId, long categoryId,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException,
420                            com.liferay.portlet.shopping.NoSuchItemException {
421                    return getPersistence()
422                                       .findByG_C_Last(groupId, categoryId, orderByComparator);
423            }
424    
425            /**
426            * Returns the shopping items before and after the current shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
427            *
428            * <p>
429            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
430            * </p>
431            *
432            * @param itemId the primary key of the current shopping item
433            * @param groupId the group ID
434            * @param categoryId the category ID
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the previous, current, and next shopping item
437            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public static com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(
441                    long itemId, long groupId, long categoryId,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException,
444                            com.liferay.portlet.shopping.NoSuchItemException {
445                    return getPersistence()
446                                       .findByG_C_PrevAndNext(itemId, groupId, categoryId,
447                            orderByComparator);
448            }
449    
450            /**
451            * Returns all the shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
452            *
453            * @param groupId the group ID
454            * @param categoryId the category ID
455            * @return the matching shopping items that the user has permission to view
456            * @throws SystemException if a system exception occurred
457            */
458            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
459                    long groupId, long categoryId)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return getPersistence().filterFindByG_C(groupId, categoryId);
462            }
463    
464            /**
465            * Returns a range of all the shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
466            *
467            * <p>
468            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
469            * </p>
470            *
471            * @param groupId the group ID
472            * @param categoryId the category ID
473            * @param start the lower bound of the range of shopping items
474            * @param end the upper bound of the range of shopping items (not inclusive)
475            * @return the range of matching shopping items that the user has permission to view
476            * @throws SystemException if a system exception occurred
477            */
478            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
479                    long groupId, long categoryId, int start, int end)
480                    throws com.liferay.portal.kernel.exception.SystemException {
481                    return getPersistence().filterFindByG_C(groupId, categoryId, start, end);
482            }
483    
484            /**
485            * Returns an ordered range of all the shopping items that the user has permissions to view where groupId = &#63; and categoryId = &#63;.
486            *
487            * <p>
488            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
489            * </p>
490            *
491            * @param groupId the group ID
492            * @param categoryId the category ID
493            * @param start the lower bound of the range of shopping items
494            * @param end the upper bound of the range of shopping items (not inclusive)
495            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
496            * @return the ordered range of matching shopping items that the user has permission to view
497            * @throws SystemException if a system exception occurred
498            */
499            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
500                    long groupId, long categoryId, int start, int end,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getPersistence()
504                                       .filterFindByG_C(groupId, categoryId, start, end,
505                            orderByComparator);
506            }
507    
508            /**
509            * Returns the shopping items before and after the current shopping item in the ordered set of shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
510            *
511            * @param itemId the primary key of the current shopping item
512            * @param groupId the group ID
513            * @param categoryId the category ID
514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
515            * @return the previous, current, and next shopping item
516            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
517            * @throws SystemException if a system exception occurred
518            */
519            public static com.liferay.portlet.shopping.model.ShoppingItem[] filterFindByG_C_PrevAndNext(
520                    long itemId, long groupId, long categoryId,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException,
523                            com.liferay.portlet.shopping.NoSuchItemException {
524                    return getPersistence()
525                                       .filterFindByG_C_PrevAndNext(itemId, groupId, categoryId,
526                            orderByComparator);
527            }
528    
529            /**
530            * Returns the shopping item where companyId = &#63; and sku = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
531            *
532            * @param companyId the company ID
533            * @param sku the sku
534            * @return the matching shopping item
535            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
536            * @throws SystemException if a system exception occurred
537            */
538            public static com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
539                    long companyId, java.lang.String sku)
540                    throws com.liferay.portal.kernel.exception.SystemException,
541                            com.liferay.portlet.shopping.NoSuchItemException {
542                    return getPersistence().findByC_S(companyId, sku);
543            }
544    
545            /**
546            * Returns the shopping item where companyId = &#63; and sku = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
547            *
548            * @param companyId the company ID
549            * @param sku the sku
550            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
551            * @throws SystemException if a system exception occurred
552            */
553            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
554                    long companyId, java.lang.String sku)
555                    throws com.liferay.portal.kernel.exception.SystemException {
556                    return getPersistence().fetchByC_S(companyId, sku);
557            }
558    
559            /**
560            * Returns the shopping item where companyId = &#63; and sku = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
561            *
562            * @param companyId the company ID
563            * @param sku the sku
564            * @param retrieveFromCache whether to use the finder cache
565            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public static com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
569                    long companyId, java.lang.String sku, boolean retrieveFromCache)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getPersistence().fetchByC_S(companyId, sku, retrieveFromCache);
572            }
573    
574            /**
575            * Returns all the shopping items.
576            *
577            * @return the shopping items
578            * @throws SystemException if a system exception occurred
579            */
580            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getPersistence().findAll();
583            }
584    
585            /**
586            * Returns a range of all the shopping items.
587            *
588            * <p>
589            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
590            * </p>
591            *
592            * @param start the lower bound of the range of shopping items
593            * @param end the upper bound of the range of shopping items (not inclusive)
594            * @return the range of shopping items
595            * @throws SystemException if a system exception occurred
596            */
597            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
598                    int start, int end)
599                    throws com.liferay.portal.kernel.exception.SystemException {
600                    return getPersistence().findAll(start, end);
601            }
602    
603            /**
604            * Returns an ordered range of all the shopping items.
605            *
606            * <p>
607            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
608            * </p>
609            *
610            * @param start the lower bound of the range of shopping items
611            * @param end the upper bound of the range of shopping items (not inclusive)
612            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
613            * @return the ordered range of shopping items
614            * @throws SystemException if a system exception occurred
615            */
616            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
617                    int start, int end,
618                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getPersistence().findAll(start, end, orderByComparator);
621            }
622    
623            /**
624            * Removes the shopping item where smallImageId = &#63; from the database.
625            *
626            * @param smallImageId the small image ID
627            * @throws SystemException if a system exception occurred
628            */
629            public static void removeBySmallImageId(long smallImageId)
630                    throws com.liferay.portal.kernel.exception.SystemException,
631                            com.liferay.portlet.shopping.NoSuchItemException {
632                    getPersistence().removeBySmallImageId(smallImageId);
633            }
634    
635            /**
636            * Removes the shopping item where mediumImageId = &#63; from the database.
637            *
638            * @param mediumImageId the medium image ID
639            * @throws SystemException if a system exception occurred
640            */
641            public static void removeByMediumImageId(long mediumImageId)
642                    throws com.liferay.portal.kernel.exception.SystemException,
643                            com.liferay.portlet.shopping.NoSuchItemException {
644                    getPersistence().removeByMediumImageId(mediumImageId);
645            }
646    
647            /**
648            * Removes the shopping item where largeImageId = &#63; from the database.
649            *
650            * @param largeImageId the large image ID
651            * @throws SystemException if a system exception occurred
652            */
653            public static void removeByLargeImageId(long largeImageId)
654                    throws com.liferay.portal.kernel.exception.SystemException,
655                            com.liferay.portlet.shopping.NoSuchItemException {
656                    getPersistence().removeByLargeImageId(largeImageId);
657            }
658    
659            /**
660            * Removes all the shopping items where groupId = &#63; and categoryId = &#63; from the database.
661            *
662            * @param groupId the group ID
663            * @param categoryId the category ID
664            * @throws SystemException if a system exception occurred
665            */
666            public static void removeByG_C(long groupId, long categoryId)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    getPersistence().removeByG_C(groupId, categoryId);
669            }
670    
671            /**
672            * Removes the shopping item where companyId = &#63; and sku = &#63; from the database.
673            *
674            * @param companyId the company ID
675            * @param sku the sku
676            * @throws SystemException if a system exception occurred
677            */
678            public static void removeByC_S(long companyId, java.lang.String sku)
679                    throws com.liferay.portal.kernel.exception.SystemException,
680                            com.liferay.portlet.shopping.NoSuchItemException {
681                    getPersistence().removeByC_S(companyId, sku);
682            }
683    
684            /**
685            * Removes all the shopping items from the database.
686            *
687            * @throws SystemException if a system exception occurred
688            */
689            public static void removeAll()
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    getPersistence().removeAll();
692            }
693    
694            /**
695            * Returns the number of shopping items where smallImageId = &#63;.
696            *
697            * @param smallImageId the small image ID
698            * @return the number of matching shopping items
699            * @throws SystemException if a system exception occurred
700            */
701            public static int countBySmallImageId(long smallImageId)
702                    throws com.liferay.portal.kernel.exception.SystemException {
703                    return getPersistence().countBySmallImageId(smallImageId);
704            }
705    
706            /**
707            * Returns the number of shopping items where mediumImageId = &#63;.
708            *
709            * @param mediumImageId the medium image ID
710            * @return the number of matching shopping items
711            * @throws SystemException if a system exception occurred
712            */
713            public static int countByMediumImageId(long mediumImageId)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getPersistence().countByMediumImageId(mediumImageId);
716            }
717    
718            /**
719            * Returns the number of shopping items where largeImageId = &#63;.
720            *
721            * @param largeImageId the large image ID
722            * @return the number of matching shopping items
723            * @throws SystemException if a system exception occurred
724            */
725            public static int countByLargeImageId(long largeImageId)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getPersistence().countByLargeImageId(largeImageId);
728            }
729    
730            /**
731            * Returns the number of shopping items where groupId = &#63; and categoryId = &#63;.
732            *
733            * @param groupId the group ID
734            * @param categoryId the category ID
735            * @return the number of matching shopping items
736            * @throws SystemException if a system exception occurred
737            */
738            public static int countByG_C(long groupId, long categoryId)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence().countByG_C(groupId, categoryId);
741            }
742    
743            /**
744            * Returns the number of shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
745            *
746            * @param groupId the group ID
747            * @param categoryId the category ID
748            * @return the number of matching shopping items that the user has permission to view
749            * @throws SystemException if a system exception occurred
750            */
751            public static int filterCountByG_C(long groupId, long categoryId)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence().filterCountByG_C(groupId, categoryId);
754            }
755    
756            /**
757            * Returns the number of shopping items where companyId = &#63; and sku = &#63;.
758            *
759            * @param companyId the company ID
760            * @param sku the sku
761            * @return the number of matching shopping items
762            * @throws SystemException if a system exception occurred
763            */
764            public static int countByC_S(long companyId, java.lang.String sku)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    return getPersistence().countByC_S(companyId, sku);
767            }
768    
769            /**
770            * Returns the number of shopping items.
771            *
772            * @return the number of shopping items
773            * @throws SystemException if a system exception occurred
774            */
775            public static int countAll()
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    return getPersistence().countAll();
778            }
779    
780            /**
781            * Returns all the shopping item prices associated with the shopping item.
782            *
783            * @param pk the primary key of the shopping item
784            * @return the shopping item prices associated with the shopping item
785            * @throws SystemException if a system exception occurred
786            */
787            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
788                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
789                    return getPersistence().getShoppingItemPrices(pk);
790            }
791    
792            /**
793            * Returns a range of all the shopping item prices associated with the shopping item.
794            *
795            * <p>
796            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
797            * </p>
798            *
799            * @param pk the primary key of the shopping item
800            * @param start the lower bound of the range of shopping items
801            * @param end the upper bound of the range of shopping items (not inclusive)
802            * @return the range of shopping item prices associated with the shopping item
803            * @throws SystemException if a system exception occurred
804            */
805            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
806                    long pk, int start, int end)
807                    throws com.liferay.portal.kernel.exception.SystemException {
808                    return getPersistence().getShoppingItemPrices(pk, start, end);
809            }
810    
811            /**
812            * Returns an ordered range of all the shopping item prices associated with the shopping item.
813            *
814            * <p>
815            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
816            * </p>
817            *
818            * @param pk the primary key of the shopping item
819            * @param start the lower bound of the range of shopping items
820            * @param end the upper bound of the range of shopping items (not inclusive)
821            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
822            * @return the ordered range of shopping item prices associated with the shopping item
823            * @throws SystemException if a system exception occurred
824            */
825            public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
826                    long pk, int start, int end,
827                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
828                    throws com.liferay.portal.kernel.exception.SystemException {
829                    return getPersistence()
830                                       .getShoppingItemPrices(pk, start, end, orderByComparator);
831            }
832    
833            /**
834            * Returns the number of shopping item prices associated with the shopping item.
835            *
836            * @param pk the primary key of the shopping item
837            * @return the number of shopping item prices associated with the shopping item
838            * @throws SystemException if a system exception occurred
839            */
840            public static int getShoppingItemPricesSize(long pk)
841                    throws com.liferay.portal.kernel.exception.SystemException {
842                    return getPersistence().getShoppingItemPricesSize(pk);
843            }
844    
845            /**
846            * Returns <code>true</code> if the shopping item price is associated with the shopping item.
847            *
848            * @param pk the primary key of the shopping item
849            * @param shoppingItemPricePK the primary key of the shopping item price
850            * @return <code>true</code> if the shopping item price is associated with the shopping item; <code>false</code> otherwise
851            * @throws SystemException if a system exception occurred
852            */
853            public static boolean containsShoppingItemPrice(long pk,
854                    long shoppingItemPricePK)
855                    throws com.liferay.portal.kernel.exception.SystemException {
856                    return getPersistence()
857                                       .containsShoppingItemPrice(pk, shoppingItemPricePK);
858            }
859    
860            /**
861            * Returns <code>true</code> if the shopping item has any shopping item prices associated with it.
862            *
863            * @param pk the primary key of the shopping item to check for associations with shopping item prices
864            * @return <code>true</code> if the shopping item has any shopping item prices associated with it; <code>false</code> otherwise
865            * @throws SystemException if a system exception occurred
866            */
867            public static boolean containsShoppingItemPrices(long pk)
868                    throws com.liferay.portal.kernel.exception.SystemException {
869                    return getPersistence().containsShoppingItemPrices(pk);
870            }
871    
872            public static ShoppingItemPersistence getPersistence() {
873                    if (_persistence == null) {
874                            _persistence = (ShoppingItemPersistence)PortalBeanLocatorUtil.locate(ShoppingItemPersistence.class.getName());
875    
876                            ReferenceRegistry.registerReference(ShoppingItemUtil.class,
877                                    "_persistence");
878                    }
879    
880                    return _persistence;
881            }
882    
883            public void setPersistence(ShoppingItemPersistence persistence) {
884                    _persistence = persistence;
885    
886                    ReferenceRegistry.registerReference(ShoppingItemUtil.class,
887                            "_persistence");
888            }
889    
890            private static ShoppingItemPersistence _persistence;
891    }