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