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