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