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