001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.shopping.model.ShoppingCategory;
020    
021    /**
022     * The persistence interface for the shopping category 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 ShoppingCategoryPersistenceImpl
030     * @see ShoppingCategoryUtil
031     * @generated
032     */
033    public interface ShoppingCategoryPersistence extends BasePersistence<ShoppingCategory> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link ShoppingCategoryUtil} to access the shopping category persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the shopping category in the entity cache if it is enabled.
042            *
043            * @param shoppingCategory the shopping category
044            */
045            public void cacheResult(
046                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory);
047    
048            /**
049            * Caches the shopping categories in the entity cache if it is enabled.
050            *
051            * @param shoppingCategories the shopping categories
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> shoppingCategories);
055    
056            /**
057            * Creates a new shopping category with the primary key. Does not add the shopping category to the database.
058            *
059            * @param categoryId the primary key for the new shopping category
060            * @return the new shopping category
061            */
062            public com.liferay.portlet.shopping.model.ShoppingCategory create(
063                    long categoryId);
064    
065            /**
066            * Removes the shopping category with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param categoryId the primary key of the shopping category
069            * @return the shopping category that was removed
070            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.shopping.model.ShoppingCategory remove(
074                    long categoryId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.shopping.NoSuchCategoryException;
077    
078            public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
079                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the shopping category with the primary key or throws a {@link com.liferay.portlet.shopping.NoSuchCategoryException} if it could not be found.
084            *
085            * @param categoryId the primary key of the shopping category
086            * @return the shopping category
087            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
091                    long categoryId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.shopping.NoSuchCategoryException;
094    
095            /**
096            * Returns the shopping category with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param categoryId the primary key of the shopping category
099            * @return the shopping category, or <code>null</code> if a shopping category with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
103                    long categoryId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the shopping categories where groupId = &#63;.
108            *
109            * @param groupId the group ID
110            * @return the matching shopping categories
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
114                    long groupId)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the shopping categories where groupId = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param groupId the group ID
125            * @param start the lower bound of the range of shopping categories
126            * @param end the upper bound of the range of shopping categories (not inclusive)
127            * @return the range of matching shopping categories
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
131                    long groupId, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the shopping categories where groupId = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param groupId the group ID
142            * @param start the lower bound of the range of shopping categories
143            * @param end the upper bound of the range of shopping categories (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching shopping categories
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
149                    long groupId, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first shopping category in the ordered set where groupId = &#63;.
155            *
156            * @param groupId the group ID
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching shopping category
159            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
163                    long groupId,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.shopping.NoSuchCategoryException;
167    
168            /**
169            * Returns the first shopping category in the ordered set where groupId = &#63;.
170            *
171            * @param groupId the group ID
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching shopping category, or <code>null</code> if a matching shopping category could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.shopping.model.ShoppingCategory fetchByGroupId_First(
177                    long groupId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the last shopping category in the ordered set where groupId = &#63;.
183            *
184            * @param groupId the group ID
185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
186            * @return the last matching shopping category
187            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
191                    long groupId,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException,
194                            com.liferay.portlet.shopping.NoSuchCategoryException;
195    
196            /**
197            * Returns the last shopping category in the ordered set where groupId = &#63;.
198            *
199            * @param groupId the group ID
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the last matching shopping category, or <code>null</code> if a matching shopping category could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.shopping.model.ShoppingCategory fetchByGroupId_Last(
205                    long groupId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the shopping categories before and after the current shopping category in the ordered set where groupId = &#63;.
211            *
212            * @param categoryId the primary key of the current shopping category
213            * @param groupId the group ID
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next shopping category
216            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
220                    long categoryId, long groupId,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.shopping.NoSuchCategoryException;
224    
225            /**
226            * Returns all the shopping categories that the user has permission to view where groupId = &#63;.
227            *
228            * @param groupId the group ID
229            * @return the matching shopping categories that the user has permission to view
230            * @throws SystemException if a system exception occurred
231            */
232            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
233                    long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Returns a range of all the shopping categories that the user has permission to view where groupId = &#63;.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param groupId the group ID
244            * @param start the lower bound of the range of shopping categories
245            * @param end the upper bound of the range of shopping categories (not inclusive)
246            * @return the range of matching shopping categories that the user has permission to view
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
250                    long groupId, int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = &#63;.
255            *
256            * <p>
257            * 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.
258            * </p>
259            *
260            * @param groupId the group ID
261            * @param start the lower bound of the range of shopping categories
262            * @param end the upper bound of the range of shopping categories (not inclusive)
263            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
264            * @return the ordered range of matching shopping categories that the user has permission to view
265            * @throws SystemException if a system exception occurred
266            */
267            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
268                    long groupId, int start, int end,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the shopping categories before and after the current shopping category in the ordered set of shopping categories that the user has permission to view where groupId = &#63;.
274            *
275            * @param categoryId the primary key of the current shopping category
276            * @param groupId the group ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the previous, current, and next shopping category
279            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public com.liferay.portlet.shopping.model.ShoppingCategory[] filterFindByGroupId_PrevAndNext(
283                    long categoryId, long groupId,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.shopping.NoSuchCategoryException;
287    
288            /**
289            * Returns all the shopping categories where groupId = &#63; and parentCategoryId = &#63;.
290            *
291            * @param groupId the group ID
292            * @param parentCategoryId the parent category ID
293            * @return the matching shopping categories
294            * @throws SystemException if a system exception occurred
295            */
296            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
297                    long groupId, long parentCategoryId)
298                    throws com.liferay.portal.kernel.exception.SystemException;
299    
300            /**
301            * Returns a range of all the shopping categories where groupId = &#63; and parentCategoryId = &#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 groupId the group ID
308            * @param parentCategoryId the parent category ID
309            * @param start the lower bound of the range of shopping categories
310            * @param end the upper bound of the range of shopping categories (not inclusive)
311            * @return the range of matching shopping categories
312            * @throws SystemException if a system exception occurred
313            */
314            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
315                    long groupId, long parentCategoryId, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns an ordered range of all the shopping categories where groupId = &#63; and parentCategoryId = &#63;.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param groupId the group ID
326            * @param parentCategoryId the parent category ID
327            * @param start the lower bound of the range of shopping categories
328            * @param end the upper bound of the range of shopping categories (not inclusive)
329            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
330            * @return the ordered range of matching shopping categories
331            * @throws SystemException if a system exception occurred
332            */
333            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
334                    long groupId, long parentCategoryId, int start, int end,
335                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Returns the first shopping category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
340            *
341            * @param groupId the group ID
342            * @param parentCategoryId the parent category ID
343            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
344            * @return the first matching shopping category
345            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
349                    long groupId, long parentCategoryId,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException,
352                            com.liferay.portlet.shopping.NoSuchCategoryException;
353    
354            /**
355            * Returns the first shopping category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
356            *
357            * @param groupId the group ID
358            * @param parentCategoryId the parent category ID
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the first matching shopping category, or <code>null</code> if a matching shopping category could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.shopping.model.ShoppingCategory fetchByG_P_First(
364                    long groupId, long parentCategoryId,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the last shopping category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
370            *
371            * @param groupId the group ID
372            * @param parentCategoryId the parent category ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the last matching shopping category
375            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
379                    long groupId, long parentCategoryId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.shopping.NoSuchCategoryException;
383    
384            /**
385            * Returns the last shopping category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
386            *
387            * @param groupId the group ID
388            * @param parentCategoryId the parent category ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the last matching shopping category, or <code>null</code> if a matching shopping category could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portlet.shopping.model.ShoppingCategory fetchByG_P_Last(
394                    long groupId, long parentCategoryId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Returns the shopping categories before and after the current shopping category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
400            *
401            * @param categoryId the primary key of the current shopping category
402            * @param groupId the group ID
403            * @param parentCategoryId the parent category ID
404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
405            * @return the previous, current, and next shopping category
406            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
410                    long categoryId, long groupId, long parentCategoryId,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.kernel.exception.SystemException,
413                            com.liferay.portlet.shopping.NoSuchCategoryException;
414    
415            /**
416            * Returns all the shopping categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
417            *
418            * @param groupId the group ID
419            * @param parentCategoryId the parent category ID
420            * @return the matching shopping categories that the user has permission to view
421            * @throws SystemException if a system exception occurred
422            */
423            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
424                    long groupId, long parentCategoryId)
425                    throws com.liferay.portal.kernel.exception.SystemException;
426    
427            /**
428            * Returns a range of all the shopping categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
429            *
430            * <p>
431            * 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.
432            * </p>
433            *
434            * @param groupId the group ID
435            * @param parentCategoryId the parent category ID
436            * @param start the lower bound of the range of shopping categories
437            * @param end the upper bound of the range of shopping categories (not inclusive)
438            * @return the range of matching shopping categories that the user has permission to view
439            * @throws SystemException if a system exception occurred
440            */
441            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
442                    long groupId, long parentCategoryId, int start, int end)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = &#63; and parentCategoryId = &#63;.
447            *
448            * <p>
449            * 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.
450            * </p>
451            *
452            * @param groupId the group ID
453            * @param parentCategoryId the parent category ID
454            * @param start the lower bound of the range of shopping categories
455            * @param end the upper bound of the range of shopping categories (not inclusive)
456            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
457            * @return the ordered range of matching shopping categories that the user has permission to view
458            * @throws SystemException if a system exception occurred
459            */
460            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
461                    long groupId, long parentCategoryId, int start, int end,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns the shopping categories before and after the current shopping category in the ordered set of shopping categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
467            *
468            * @param categoryId the primary key of the current shopping category
469            * @param groupId the group ID
470            * @param parentCategoryId the parent category ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the previous, current, and next shopping category
473            * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.shopping.model.ShoppingCategory[] filterFindByG_P_PrevAndNext(
477                    long categoryId, long groupId, long parentCategoryId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.shopping.NoSuchCategoryException;
481    
482            /**
483            * Returns all the shopping categories.
484            *
485            * @return the shopping categories
486            * @throws SystemException if a system exception occurred
487            */
488            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns a range of all the shopping categories.
493            *
494            * <p>
495            * 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.
496            * </p>
497            *
498            * @param start the lower bound of the range of shopping categories
499            * @param end the upper bound of the range of shopping categories (not inclusive)
500            * @return the range of shopping categories
501            * @throws SystemException if a system exception occurred
502            */
503            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
504                    int start, int end)
505                    throws com.liferay.portal.kernel.exception.SystemException;
506    
507            /**
508            * Returns an ordered range of all the shopping categories.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param start the lower bound of the range of shopping categories
515            * @param end the upper bound of the range of shopping categories (not inclusive)
516            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
517            * @return the ordered range of shopping categories
518            * @throws SystemException if a system exception occurred
519            */
520            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
521                    int start, int end,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Removes all the shopping categories where groupId = &#63; from the database.
527            *
528            * @param groupId the group ID
529            * @throws SystemException if a system exception occurred
530            */
531            public void removeByGroupId(long groupId)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            /**
535            * Removes all the shopping categories where groupId = &#63; and parentCategoryId = &#63; from the database.
536            *
537            * @param groupId the group ID
538            * @param parentCategoryId the parent category ID
539            * @throws SystemException if a system exception occurred
540            */
541            public void removeByG_P(long groupId, long parentCategoryId)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Removes all the shopping categories from the database.
546            *
547            * @throws SystemException if a system exception occurred
548            */
549            public void removeAll()
550                    throws com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Returns the number of shopping categories where groupId = &#63;.
554            *
555            * @param groupId the group ID
556            * @return the number of matching shopping categories
557            * @throws SystemException if a system exception occurred
558            */
559            public int countByGroupId(long groupId)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            /**
563            * Returns the number of shopping categories that the user has permission to view where groupId = &#63;.
564            *
565            * @param groupId the group ID
566            * @return the number of matching shopping categories that the user has permission to view
567            * @throws SystemException if a system exception occurred
568            */
569            public int filterCountByGroupId(long groupId)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns the number of shopping categories where groupId = &#63; and parentCategoryId = &#63;.
574            *
575            * @param groupId the group ID
576            * @param parentCategoryId the parent category ID
577            * @return the number of matching shopping categories
578            * @throws SystemException if a system exception occurred
579            */
580            public int countByG_P(long groupId, long parentCategoryId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of shopping categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
585            *
586            * @param groupId the group ID
587            * @param parentCategoryId the parent category ID
588            * @return the number of matching shopping categories that the user has permission to view
589            * @throws SystemException if a system exception occurred
590            */
591            public int filterCountByG_P(long groupId, long parentCategoryId)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns the number of shopping categories.
596            *
597            * @return the number of shopping categories
598            * @throws SystemException if a system exception occurred
599            */
600            public int countAll()
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    }