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