001    /**
002     * Copyright (c) 2000-2013 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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.shopping.model.ShoppingItem;
020    
021    /**
022     * The persistence interface for the shopping item service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see ShoppingItemPersistenceImpl
030     * @see ShoppingItemUtil
031     * @generated
032     */
033    public interface ShoppingItemPersistence extends BasePersistence<ShoppingItem> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link ShoppingItemUtil} to access the shopping item persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the shopping item in the entity cache if it is enabled.
042            *
043            * @param shoppingItem the shopping item
044            */
045            public void cacheResult(
046                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem);
047    
048            /**
049            * Caches the shopping items in the entity cache if it is enabled.
050            *
051            * @param shoppingItems the shopping items
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems);
055    
056            /**
057            * Creates a new shopping item with the primary key. Does not add the shopping item to the database.
058            *
059            * @param itemId the primary key for the new shopping item
060            * @return the new shopping item
061            */
062            public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId);
063    
064            /**
065            * Removes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param itemId the primary key of the shopping item
068            * @return the shopping item that was removed
069            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.shopping.NoSuchItemException;
075    
076            public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
077                    com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the shopping item with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
083            *
084            * @param itemId the primary key of the shopping item
085            * @return the shopping item
086            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
090                    long itemId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.shopping.NoSuchItemException;
093    
094            /**
095            * Returns the shopping item with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param itemId the primary key of the shopping item
098            * @return the shopping item, or <code>null</code> if a shopping item with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
102                    long itemId) throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns the shopping item where smallImageId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
106            *
107            * @param smallImageId the small image ID
108            * @return the matching shopping item
109            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
110            * @throws SystemException if a system exception occurred
111            */
112            public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
113                    long smallImageId)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.shopping.NoSuchItemException;
116    
117            /**
118            * Returns the shopping item where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
119            *
120            * @param smallImageId the small image ID
121            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
125                    long smallImageId)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the shopping item where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
130            *
131            * @param smallImageId the small image ID
132            * @param retrieveFromCache whether to use the finder cache
133            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
137                    long smallImageId, boolean retrieveFromCache)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            /**
141            * Returns the shopping item where mediumImageId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
142            *
143            * @param mediumImageId the medium image ID
144            * @return the matching shopping item
145            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
146            * @throws SystemException if a system exception occurred
147            */
148            public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
149                    long mediumImageId)
150                    throws com.liferay.portal.kernel.exception.SystemException,
151                            com.liferay.portlet.shopping.NoSuchItemException;
152    
153            /**
154            * Returns the shopping item where mediumImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
155            *
156            * @param mediumImageId the medium image ID
157            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
161                    long mediumImageId)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            /**
165            * Returns the shopping item where mediumImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
166            *
167            * @param mediumImageId the medium image ID
168            * @param retrieveFromCache whether to use the finder cache
169            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
173                    long mediumImageId, boolean retrieveFromCache)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns the shopping item where largeImageId = &#63; or throws a {@link com.liferay.portlet.shopping.NoSuchItemException} if it could not be found.
178            *
179            * @param largeImageId the large image ID
180            * @return the matching shopping item
181            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
185                    long largeImageId)
186                    throws com.liferay.portal.kernel.exception.SystemException,
187                            com.liferay.portlet.shopping.NoSuchItemException;
188    
189            /**
190            * Returns the shopping item where largeImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
191            *
192            * @param largeImageId the large image ID
193            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
197                    long largeImageId)
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            /**
201            * Returns the shopping item where largeImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
202            *
203            * @param largeImageId the large image ID
204            * @param retrieveFromCache whether to use the finder cache
205            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
206            * @throws SystemException if a system exception occurred
207            */
208            public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
209                    long largeImageId, boolean retrieveFromCache)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            /**
213            * Returns all the shopping items where groupId = &#63; and categoryId = &#63;.
214            *
215            * @param groupId the group ID
216            * @param categoryId the category ID
217            * @return the matching shopping items
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
221                    long groupId, long categoryId)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Returns a range of all the shopping items where groupId = &#63; and categoryId = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param groupId the group ID
232            * @param categoryId the category ID
233            * @param start the lower bound of the range of shopping items
234            * @param end the upper bound of the range of shopping items (not inclusive)
235            * @return the range of matching shopping items
236            * @throws SystemException if a system exception occurred
237            */
238            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
239                    long groupId, long categoryId, int start, int end)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns an ordered range of all the shopping items where groupId = &#63; and categoryId = &#63;.
244            *
245            * <p>
246            * 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.
247            * </p>
248            *
249            * @param groupId the group ID
250            * @param categoryId the category ID
251            * @param start the lower bound of the range of shopping items
252            * @param end the upper bound of the range of shopping items (not inclusive)
253            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
254            * @return the ordered range of matching shopping items
255            * @throws SystemException if a system exception occurred
256            */
257            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
258                    long groupId, long categoryId, int start, int end,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns the first shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
264            *
265            * @param groupId the group ID
266            * @param categoryId the category ID
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching shopping item
269            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(
273                    long groupId, long categoryId,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException,
276                            com.liferay.portlet.shopping.NoSuchItemException;
277    
278            /**
279            * Returns the first shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
280            *
281            * @param groupId the group ID
282            * @param categoryId the category ID
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the first matching shopping item, or <code>null</code> if a matching shopping item could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public com.liferay.portlet.shopping.model.ShoppingItem fetchByG_C_First(
288                    long groupId, long categoryId,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Returns the last shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
294            *
295            * @param groupId the group ID
296            * @param categoryId the category ID
297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
298            * @return the last matching shopping item
299            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(
303                    long groupId, long categoryId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.shopping.NoSuchItemException;
307    
308            /**
309            * Returns the last shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
310            *
311            * @param groupId the group ID
312            * @param categoryId the category ID
313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
314            * @return the last matching shopping item, or <code>null</code> if a matching shopping item could not be found
315            * @throws SystemException if a system exception occurred
316            */
317            public com.liferay.portlet.shopping.model.ShoppingItem fetchByG_C_Last(
318                    long groupId, long categoryId,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Returns the shopping items before and after the current shopping item in the ordered set where groupId = &#63; and categoryId = &#63;.
324            *
325            * @param itemId the primary key of the current shopping item
326            * @param groupId the group ID
327            * @param categoryId the category ID
328            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
329            * @return the previous, current, and next shopping item
330            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
331            * @throws SystemException if a system exception occurred
332            */
333            public com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(
334                    long itemId, long groupId, long categoryId,
335                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336                    throws com.liferay.portal.kernel.exception.SystemException,
337                            com.liferay.portlet.shopping.NoSuchItemException;
338    
339            /**
340            * Returns all the shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
341            *
342            * @param groupId the group ID
343            * @param categoryId the category ID
344            * @return the matching shopping items that the user has permission to view
345            * @throws SystemException if a system exception occurred
346            */
347            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
348                    long groupId, long categoryId)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * Returns a range of all the shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
353            *
354            * <p>
355            * 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.
356            * </p>
357            *
358            * @param groupId the group ID
359            * @param categoryId the category ID
360            * @param start the lower bound of the range of shopping items
361            * @param end the upper bound of the range of shopping items (not inclusive)
362            * @return the range of matching shopping items that the user has permission to view
363            * @throws SystemException if a system exception occurred
364            */
365            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
366                    long groupId, long categoryId, int start, int end)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            /**
370            * Returns an ordered range of all the shopping items that the user has permissions to view where groupId = &#63; and categoryId = &#63;.
371            *
372            * <p>
373            * 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.
374            * </p>
375            *
376            * @param groupId the group ID
377            * @param categoryId the category ID
378            * @param start the lower bound of the range of shopping items
379            * @param end the upper bound of the range of shopping items (not inclusive)
380            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
381            * @return the ordered range of matching shopping items that the user has permission to view
382            * @throws SystemException if a system exception occurred
383            */
384            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
385                    long groupId, long categoryId, int start, int end,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * 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;.
391            *
392            * @param itemId the primary key of the current shopping item
393            * @param groupId the group ID
394            * @param categoryId the category ID
395            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
396            * @return the previous, current, and next shopping item
397            * @throws com.liferay.portlet.shopping.NoSuchItemException if a shopping item with the primary key could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public com.liferay.portlet.shopping.model.ShoppingItem[] filterFindByG_C_PrevAndNext(
401                    long itemId, long groupId, long categoryId,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException,
404                            com.liferay.portlet.shopping.NoSuchItemException;
405    
406            /**
407            * 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.
408            *
409            * @param companyId the company ID
410            * @param sku the sku
411            * @return the matching shopping item
412            * @throws com.liferay.portlet.shopping.NoSuchItemException if a matching shopping item could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
416                    long companyId, java.lang.String sku)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.shopping.NoSuchItemException;
419    
420            /**
421            * 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.
422            *
423            * @param companyId the company ID
424            * @param sku the sku
425            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
426            * @throws SystemException if a system exception occurred
427            */
428            public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
429                    long companyId, java.lang.String sku)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * 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.
434            *
435            * @param companyId the company ID
436            * @param sku the sku
437            * @param retrieveFromCache whether to use the finder cache
438            * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
442                    long companyId, java.lang.String sku, boolean retrieveFromCache)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns all the shopping items.
447            *
448            * @return the shopping items
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns a range of all the shopping items.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param start the lower bound of the range of shopping items
462            * @param end the upper bound of the range of shopping items (not inclusive)
463            * @return the range of shopping items
464            * @throws SystemException if a system exception occurred
465            */
466            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
467                    int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns an ordered range of all the shopping items.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param start the lower bound of the range of shopping items
478            * @param end the upper bound of the range of shopping items (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of shopping items
481            * @throws SystemException if a system exception occurred
482            */
483            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
484                    int start, int end,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Removes the shopping item where smallImageId = &#63; from the database.
490            *
491            * @param smallImageId the small image ID
492            * @return the shopping item that was removed
493            * @throws SystemException if a system exception occurred
494            */
495            public com.liferay.portlet.shopping.model.ShoppingItem removeBySmallImageId(
496                    long smallImageId)
497                    throws com.liferay.portal.kernel.exception.SystemException,
498                            com.liferay.portlet.shopping.NoSuchItemException;
499    
500            /**
501            * Removes the shopping item where mediumImageId = &#63; from the database.
502            *
503            * @param mediumImageId the medium image ID
504            * @return the shopping item that was removed
505            * @throws SystemException if a system exception occurred
506            */
507            public com.liferay.portlet.shopping.model.ShoppingItem removeByMediumImageId(
508                    long mediumImageId)
509                    throws com.liferay.portal.kernel.exception.SystemException,
510                            com.liferay.portlet.shopping.NoSuchItemException;
511    
512            /**
513            * Removes the shopping item where largeImageId = &#63; from the database.
514            *
515            * @param largeImageId the large image ID
516            * @return the shopping item that was removed
517            * @throws SystemException if a system exception occurred
518            */
519            public com.liferay.portlet.shopping.model.ShoppingItem removeByLargeImageId(
520                    long largeImageId)
521                    throws com.liferay.portal.kernel.exception.SystemException,
522                            com.liferay.portlet.shopping.NoSuchItemException;
523    
524            /**
525            * Removes all the shopping items where groupId = &#63; and categoryId = &#63; from the database.
526            *
527            * @param groupId the group ID
528            * @param categoryId the category ID
529            * @throws SystemException if a system exception occurred
530            */
531            public void removeByG_C(long groupId, long categoryId)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            /**
535            * Removes the shopping item where companyId = &#63; and sku = &#63; from the database.
536            *
537            * @param companyId the company ID
538            * @param sku the sku
539            * @return the shopping item that was removed
540            * @throws SystemException if a system exception occurred
541            */
542            public com.liferay.portlet.shopping.model.ShoppingItem removeByC_S(
543                    long companyId, java.lang.String sku)
544                    throws com.liferay.portal.kernel.exception.SystemException,
545                            com.liferay.portlet.shopping.NoSuchItemException;
546    
547            /**
548            * Removes all the shopping items from the database.
549            *
550            * @throws SystemException if a system exception occurred
551            */
552            public void removeAll()
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Returns the number of shopping items where smallImageId = &#63;.
557            *
558            * @param smallImageId the small image ID
559            * @return the number of matching shopping items
560            * @throws SystemException if a system exception occurred
561            */
562            public int countBySmallImageId(long smallImageId)
563                    throws com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the number of shopping items where mediumImageId = &#63;.
567            *
568            * @param mediumImageId the medium image ID
569            * @return the number of matching shopping items
570            * @throws SystemException if a system exception occurred
571            */
572            public int countByMediumImageId(long mediumImageId)
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Returns the number of shopping items where largeImageId = &#63;.
577            *
578            * @param largeImageId the large image ID
579            * @return the number of matching shopping items
580            * @throws SystemException if a system exception occurred
581            */
582            public int countByLargeImageId(long largeImageId)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            /**
586            * Returns the number of shopping items where groupId = &#63; and categoryId = &#63;.
587            *
588            * @param groupId the group ID
589            * @param categoryId the category ID
590            * @return the number of matching shopping items
591            * @throws SystemException if a system exception occurred
592            */
593            public int countByG_C(long groupId, long categoryId)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            /**
597            * Returns the number of shopping items that the user has permission to view where groupId = &#63; and categoryId = &#63;.
598            *
599            * @param groupId the group ID
600            * @param categoryId the category ID
601            * @return the number of matching shopping items that the user has permission to view
602            * @throws SystemException if a system exception occurred
603            */
604            public int filterCountByG_C(long groupId, long categoryId)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Returns the number of shopping items where companyId = &#63; and sku = &#63;.
609            *
610            * @param companyId the company ID
611            * @param sku the sku
612            * @return the number of matching shopping items
613            * @throws SystemException if a system exception occurred
614            */
615            public int countByC_S(long companyId, java.lang.String sku)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Returns the number of shopping items.
620            *
621            * @return the number of shopping items
622            * @throws SystemException if a system exception occurred
623            */
624            public int countAll()
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Returns all the shopping item prices associated with the shopping item.
629            *
630            * @param pk the primary key of the shopping item
631            * @return the shopping item prices associated with the shopping item
632            * @throws SystemException if a system exception occurred
633            */
634            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
635                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
636    
637            /**
638            * Returns a range of all the shopping item prices associated with the shopping item.
639            *
640            * <p>
641            * 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.
642            * </p>
643            *
644            * @param pk the primary key of the shopping item
645            * @param start the lower bound of the range of shopping items
646            * @param end the upper bound of the range of shopping items (not inclusive)
647            * @return the range of shopping item prices associated with the shopping item
648            * @throws SystemException if a system exception occurred
649            */
650            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
651                    long pk, int start, int end)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Returns an ordered range of all the shopping item prices associated with the shopping item.
656            *
657            * <p>
658            * 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.
659            * </p>
660            *
661            * @param pk the primary key of the shopping item
662            * @param start the lower bound of the range of shopping items
663            * @param end the upper bound of the range of shopping items (not inclusive)
664            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
665            * @return the ordered range of shopping item prices associated with the shopping item
666            * @throws SystemException if a system exception occurred
667            */
668            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
669                    long pk, int start, int end,
670                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            /**
674            * Returns the number of shopping item prices associated with the shopping item.
675            *
676            * @param pk the primary key of the shopping item
677            * @return the number of shopping item prices associated with the shopping item
678            * @throws SystemException if a system exception occurred
679            */
680            public int getShoppingItemPricesSize(long pk)
681                    throws com.liferay.portal.kernel.exception.SystemException;
682    
683            /**
684            * Returns <code>true</code> if the shopping item price is associated with the shopping item.
685            *
686            * @param pk the primary key of the shopping item
687            * @param shoppingItemPricePK the primary key of the shopping item price
688            * @return <code>true</code> if the shopping item price is associated with the shopping item; <code>false</code> otherwise
689            * @throws SystemException if a system exception occurred
690            */
691            public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Returns <code>true</code> if the shopping item has any shopping item prices associated with it.
696            *
697            * @param pk the primary key of the shopping item to check for associations with shopping item prices
698            * @return <code>true</code> if the shopping item has any shopping item prices associated with it; <code>false</code> otherwise
699            * @throws SystemException if a system exception occurred
700            */
701            public boolean containsShoppingItemPrices(long pk)
702                    throws com.liferay.portal.kernel.exception.SystemException;
703    }