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