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