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