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 * 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 * <p> 158 * 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. 159 * </p> 160 * 161 * @param groupId the group ID 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching shopping category 164 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First( 168 long groupId, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.shopping.NoSuchCategoryException; 172 173 /** 174 * Returns the last shopping category in the ordered set where groupId = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param groupId the group ID 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching shopping category 183 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last( 187 long groupId, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.shopping.NoSuchCategoryException; 191 192 /** 193 * Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param categoryId the primary key of the current shopping category 200 * @param groupId the group ID 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next shopping category 203 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext( 207 long categoryId, long groupId, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.shopping.NoSuchCategoryException; 211 212 /** 213 * Returns all the shopping categories that the user has permission to view where groupId = ?. 214 * 215 * @param groupId the group ID 216 * @return the matching shopping categories that the user has permission to view 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId( 220 long groupId) 221 throws com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Returns a range of all the shopping categories that the user has permission to view where groupId = ?. 225 * 226 * <p> 227 * 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. 228 * </p> 229 * 230 * @param groupId the group ID 231 * @param start the lower bound of the range of shopping categories 232 * @param end the upper bound of the range of shopping categories (not inclusive) 233 * @return the range of matching shopping categories that the user has permission to view 234 * @throws SystemException if a system exception occurred 235 */ 236 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId( 237 long groupId, int start, int end) 238 throws com.liferay.portal.kernel.exception.SystemException; 239 240 /** 241 * Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ?. 242 * 243 * <p> 244 * 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. 245 * </p> 246 * 247 * @param groupId the group ID 248 * @param start the lower bound of the range of shopping categories 249 * @param end the upper bound of the range of shopping categories (not inclusive) 250 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 251 * @return the ordered range of matching shopping categories that the user has permission to view 252 * @throws SystemException if a system exception occurred 253 */ 254 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId( 255 long groupId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * 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 = ?. 261 * 262 * @param categoryId the primary key of the current shopping category 263 * @param groupId the group ID 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the previous, current, and next shopping category 266 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public com.liferay.portlet.shopping.model.ShoppingCategory[] filterFindByGroupId_PrevAndNext( 270 long categoryId, long groupId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.shopping.NoSuchCategoryException; 274 275 /** 276 * Returns all the shopping categories where groupId = ? and parentCategoryId = ?. 277 * 278 * @param groupId the group ID 279 * @param parentCategoryId the parent category ID 280 * @return the 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) 285 throws com.liferay.portal.kernel.exception.SystemException; 286 287 /** 288 * Returns a range of all the shopping categories where groupId = ? and parentCategoryId = ?. 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 295 * @param parentCategoryId the parent category ID 296 * @param start the lower bound of the range of shopping categories 297 * @param end the upper bound of the range of shopping categories (not inclusive) 298 * @return the range of matching shopping categories 299 * @throws SystemException if a system exception occurred 300 */ 301 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P( 302 long groupId, long parentCategoryId, int start, int end) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns an ordered range of all the shopping categories where groupId = ? and parentCategoryId = ?. 307 * 308 * <p> 309 * 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. 310 * </p> 311 * 312 * @param groupId the group ID 313 * @param parentCategoryId the parent category ID 314 * @param start the lower bound of the range of shopping categories 315 * @param end the upper bound of the range of shopping categories (not inclusive) 316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 317 * @return the ordered range of matching shopping categories 318 * @throws SystemException if a system exception occurred 319 */ 320 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P( 321 long groupId, long parentCategoryId, int start, int end, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Returns the first shopping category in the ordered set where groupId = ? and parentCategoryId = ?. 327 * 328 * <p> 329 * 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. 330 * </p> 331 * 332 * @param groupId the group ID 333 * @param parentCategoryId the parent category ID 334 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 335 * @return the first matching shopping category 336 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First( 340 long groupId, long parentCategoryId, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.kernel.exception.SystemException, 343 com.liferay.portlet.shopping.NoSuchCategoryException; 344 345 /** 346 * Returns the last shopping category in the ordered set where groupId = ? and parentCategoryId = ?. 347 * 348 * <p> 349 * 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. 350 * </p> 351 * 352 * @param groupId the group ID 353 * @param parentCategoryId the parent category ID 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the last matching shopping category 356 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a matching shopping category could not be found 357 * @throws SystemException if a system exception occurred 358 */ 359 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last( 360 long groupId, long parentCategoryId, 361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 362 throws com.liferay.portal.kernel.exception.SystemException, 363 com.liferay.portlet.shopping.NoSuchCategoryException; 364 365 /** 366 * Returns the shopping categories before and after the current shopping category in the ordered set where groupId = ? and parentCategoryId = ?. 367 * 368 * <p> 369 * 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. 370 * </p> 371 * 372 * @param categoryId the primary key of the current shopping category 373 * @param groupId the group ID 374 * @param parentCategoryId the parent category ID 375 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 376 * @return the previous, current, and next shopping category 377 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found 378 * @throws SystemException if a system exception occurred 379 */ 380 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext( 381 long categoryId, long groupId, long parentCategoryId, 382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 383 throws com.liferay.portal.kernel.exception.SystemException, 384 com.liferay.portlet.shopping.NoSuchCategoryException; 385 386 /** 387 * Returns all the shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 388 * 389 * @param groupId the group ID 390 * @param parentCategoryId the parent category ID 391 * @return the 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) 396 throws com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Returns a range of all the shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 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 406 * @param parentCategoryId the parent category ID 407 * @param start the lower bound of the range of shopping categories 408 * @param end the upper bound of the range of shopping categories (not inclusive) 409 * @return the range of matching shopping categories that the user has permission to view 410 * @throws SystemException if a system exception occurred 411 */ 412 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P( 413 long groupId, long parentCategoryId, int start, int end) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Returns an ordered range of all the shopping categories that the user has permissions to view where groupId = ? and parentCategoryId = ?. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param groupId the group ID 424 * @param parentCategoryId the parent category ID 425 * @param start the lower bound of the range of shopping categories 426 * @param end the upper bound of the range of shopping categories (not inclusive) 427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 428 * @return the ordered range of matching shopping categories that the user has permission to view 429 * @throws SystemException if a system exception occurred 430 */ 431 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P( 432 long groupId, long parentCategoryId, int start, int end, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * 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 = ?. 438 * 439 * @param categoryId the primary key of the current shopping category 440 * @param groupId the group ID 441 * @param parentCategoryId the parent category ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the previous, current, and next shopping category 444 * @throws com.liferay.portlet.shopping.NoSuchCategoryException if a shopping category with the primary key could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public com.liferay.portlet.shopping.model.ShoppingCategory[] filterFindByG_P_PrevAndNext( 448 long categoryId, long groupId, long parentCategoryId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.shopping.NoSuchCategoryException; 452 453 /** 454 * Returns all the shopping categories. 455 * 456 * @return the shopping categories 457 * @throws SystemException if a system exception occurred 458 */ 459 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll() 460 throws com.liferay.portal.kernel.exception.SystemException; 461 462 /** 463 * Returns a range of all the shopping categories. 464 * 465 * <p> 466 * 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. 467 * </p> 468 * 469 * @param start the lower bound of the range of shopping categories 470 * @param end the upper bound of the range of shopping categories (not inclusive) 471 * @return the range of shopping categories 472 * @throws SystemException if a system exception occurred 473 */ 474 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll( 475 int start, int end) 476 throws com.liferay.portal.kernel.exception.SystemException; 477 478 /** 479 * Returns an ordered range of all the shopping categories. 480 * 481 * <p> 482 * 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. 483 * </p> 484 * 485 * @param start the lower bound of the range of shopping categories 486 * @param end the upper bound of the range of shopping categories (not inclusive) 487 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 488 * @return the ordered range of shopping categories 489 * @throws SystemException if a system exception occurred 490 */ 491 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll( 492 int start, int end, 493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 494 throws com.liferay.portal.kernel.exception.SystemException; 495 496 /** 497 * Removes all the shopping categories where groupId = ? from the database. 498 * 499 * @param groupId the group ID 500 * @throws SystemException if a system exception occurred 501 */ 502 public void removeByGroupId(long groupId) 503 throws com.liferay.portal.kernel.exception.SystemException; 504 505 /** 506 * Removes all the shopping categories where groupId = ? and parentCategoryId = ? from the database. 507 * 508 * @param groupId the group ID 509 * @param parentCategoryId the parent category ID 510 * @throws SystemException if a system exception occurred 511 */ 512 public void removeByG_P(long groupId, long parentCategoryId) 513 throws com.liferay.portal.kernel.exception.SystemException; 514 515 /** 516 * Removes all the shopping categories from the database. 517 * 518 * @throws SystemException if a system exception occurred 519 */ 520 public void removeAll() 521 throws com.liferay.portal.kernel.exception.SystemException; 522 523 /** 524 * Returns the number of shopping categories where groupId = ?. 525 * 526 * @param groupId the group ID 527 * @return the number of matching shopping categories 528 * @throws SystemException if a system exception occurred 529 */ 530 public int countByGroupId(long groupId) 531 throws com.liferay.portal.kernel.exception.SystemException; 532 533 /** 534 * Returns the number of shopping categories that the user has permission to view where groupId = ?. 535 * 536 * @param groupId the group ID 537 * @return the number of matching shopping categories that the user has permission to view 538 * @throws SystemException if a system exception occurred 539 */ 540 public int filterCountByGroupId(long groupId) 541 throws com.liferay.portal.kernel.exception.SystemException; 542 543 /** 544 * Returns the number of shopping categories where groupId = ? and parentCategoryId = ?. 545 * 546 * @param groupId the group ID 547 * @param parentCategoryId the parent category ID 548 * @return the number of matching shopping categories 549 * @throws SystemException if a system exception occurred 550 */ 551 public int countByG_P(long groupId, long parentCategoryId) 552 throws com.liferay.portal.kernel.exception.SystemException; 553 554 /** 555 * Returns the number of shopping categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 556 * 557 * @param groupId the group ID 558 * @param parentCategoryId the parent category ID 559 * @return the number of matching shopping categories that the user has permission to view 560 * @throws SystemException if a system exception occurred 561 */ 562 public int filterCountByG_P(long groupId, long parentCategoryId) 563 throws com.liferay.portal.kernel.exception.SystemException; 564 565 /** 566 * Returns the number of shopping categories. 567 * 568 * @return the number of shopping categories 569 * @throws SystemException if a system exception occurred 570 */ 571 public int countAll() 572 throws com.liferay.portal.kernel.exception.SystemException; 573 }