001 /** 002 * Copyright (c) 2000-2010 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.asset.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.asset.model.AssetCategory; 020 021 /** 022 * The persistence interface for the asset category service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see AssetCategoryPersistenceImpl 030 * @see AssetCategoryUtil 031 * @generated 032 */ 033 public interface AssetCategoryPersistence extends BasePersistence<AssetCategory> { 034 /** 035 * Caches the asset category in the entity cache if it is enabled. 036 * 037 * @param assetCategory the asset category to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.asset.model.AssetCategory assetCategory); 041 042 /** 043 * Caches the asset categories in the entity cache if it is enabled. 044 * 045 * @param assetCategories the asset categories to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories); 049 050 /** 051 * Creates a new asset category with the primary key. 052 * 053 * @param categoryId the primary key for the new asset category 054 * @return the new asset category 055 */ 056 public com.liferay.portlet.asset.model.AssetCategory create(long categoryId); 057 058 /** 059 * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param categoryId the primary key of the asset category to remove 062 * @return the asset category that was removed 063 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 public com.liferay.portlet.asset.model.AssetCategory remove(long categoryId) 067 throws com.liferay.portal.kernel.exception.SystemException, 068 com.liferay.portlet.asset.NoSuchCategoryException; 069 070 public com.liferay.portlet.asset.model.AssetCategory updateImpl( 071 com.liferay.portlet.asset.model.AssetCategory assetCategory, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 077 * 078 * @param categoryId the primary key of the asset category to find 079 * @return the asset category 080 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey( 084 long categoryId) 085 throws com.liferay.portal.kernel.exception.SystemException, 086 com.liferay.portlet.asset.NoSuchCategoryException; 087 088 /** 089 * Finds the asset category with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param categoryId the primary key of the asset category to find 092 * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey( 096 long categoryId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the asset categories where uuid = ?. 101 * 102 * @param uuid the uuid to search with 103 * @return the matching asset categories 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 107 java.lang.String uuid) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Finds a range of all the asset categories where uuid = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param uuid the uuid to search with 118 * @param start the lower bound of the range of asset categories to return 119 * @param end the upper bound of the range of asset categories to return (not inclusive) 120 * @return the range of matching asset categories 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 124 java.lang.String uuid, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Finds an ordered range of all the asset categories where uuid = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param uuid the uuid to search with 135 * @param start the lower bound of the range of asset categories to return 136 * @param end the upper bound of the range of asset categories to return (not inclusive) 137 * @param orderByComparator the comparator to order the results by 138 * @return the ordered range of matching asset categories 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 142 java.lang.String uuid, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Finds the first asset category in the ordered set where uuid = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param uuid the uuid to search with 154 * @param orderByComparator the comparator to order the set by 155 * @return the first matching asset category 156 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portlet.asset.model.AssetCategory findByUuid_First( 160 java.lang.String uuid, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.asset.NoSuchCategoryException; 164 165 /** 166 * Finds the last asset category in the ordered set where uuid = ?. 167 * 168 * <p> 169 * 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. 170 * </p> 171 * 172 * @param uuid the uuid to search with 173 * @param orderByComparator the comparator to order the set by 174 * @return the last matching asset category 175 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portlet.asset.model.AssetCategory findByUuid_Last( 179 java.lang.String uuid, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.kernel.exception.SystemException, 182 com.liferay.portlet.asset.NoSuchCategoryException; 183 184 /** 185 * Finds the asset categories before and after the current asset category in the ordered set where uuid = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param categoryId the primary key of the current asset category 192 * @param uuid the uuid to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the previous, current, and next asset category 195 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext( 199 long categoryId, java.lang.String uuid, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.kernel.exception.SystemException, 202 com.liferay.portlet.asset.NoSuchCategoryException; 203 204 /** 205 * Finds the asset category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 206 * 207 * @param uuid the uuid to search with 208 * @param groupId the group id to search with 209 * @return the matching asset category 210 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.asset.model.AssetCategory findByUUID_G( 214 java.lang.String uuid, long groupId) 215 throws com.liferay.portal.kernel.exception.SystemException, 216 com.liferay.portlet.asset.NoSuchCategoryException; 217 218 /** 219 * Finds the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 220 * 221 * @param uuid the uuid to search with 222 * @param groupId the group id to search with 223 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 224 * @throws SystemException if a system exception occurred 225 */ 226 public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 227 java.lang.String uuid, long groupId) 228 throws com.liferay.portal.kernel.exception.SystemException; 229 230 /** 231 * Finds the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 232 * 233 * @param uuid the uuid to search with 234 * @param groupId the group id to search with 235 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 236 * @throws SystemException if a system exception occurred 237 */ 238 public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 239 java.lang.String uuid, long groupId, boolean retrieveFromCache) 240 throws com.liferay.portal.kernel.exception.SystemException; 241 242 /** 243 * Finds all the asset categories where groupId = ?. 244 * 245 * @param groupId the group id to search with 246 * @return the matching asset categories 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 250 long groupId) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Finds a range of all the asset categories where groupId = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param groupId the group id to search with 261 * @param start the lower bound of the range of asset categories to return 262 * @param end the upper bound of the range of asset categories to return (not inclusive) 263 * @return the range of matching asset categories 264 * @throws SystemException if a system exception occurred 265 */ 266 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 267 long groupId, int start, int end) 268 throws com.liferay.portal.kernel.exception.SystemException; 269 270 /** 271 * Finds an ordered range of all the asset categories where groupId = ?. 272 * 273 * <p> 274 * 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. 275 * </p> 276 * 277 * @param groupId the group id to search with 278 * @param start the lower bound of the range of asset categories to return 279 * @param end the upper bound of the range of asset categories to return (not inclusive) 280 * @param orderByComparator the comparator to order the results by 281 * @return the ordered range of matching asset categories 282 * @throws SystemException if a system exception occurred 283 */ 284 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 285 long groupId, int start, int end, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Finds the first asset category in the ordered set where groupId = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param groupId the group id to search with 297 * @param orderByComparator the comparator to order the set by 298 * @return the first matching asset category 299 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public com.liferay.portlet.asset.model.AssetCategory findByGroupId_First( 303 long groupId, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.kernel.exception.SystemException, 306 com.liferay.portlet.asset.NoSuchCategoryException; 307 308 /** 309 * Finds the last asset category in the ordered set where groupId = ?. 310 * 311 * <p> 312 * 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. 313 * </p> 314 * 315 * @param groupId the group id to search with 316 * @param orderByComparator the comparator to order the set by 317 * @return the last matching asset category 318 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last( 322 long groupId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.asset.NoSuchCategoryException; 326 327 /** 328 * Finds the asset categories before and after the current asset category in the ordered set where groupId = ?. 329 * 330 * <p> 331 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 332 * </p> 333 * 334 * @param categoryId the primary key of the current asset category 335 * @param groupId the group id to search with 336 * @param orderByComparator the comparator to order the set by 337 * @return the previous, current, and next asset category 338 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 339 * @throws SystemException if a system exception occurred 340 */ 341 public com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext( 342 long categoryId, long groupId, 343 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 344 throws com.liferay.portal.kernel.exception.SystemException, 345 com.liferay.portlet.asset.NoSuchCategoryException; 346 347 /** 348 * Filters by the user's permissions and finds all the asset categories where groupId = ?. 349 * 350 * @param groupId the group id to search with 351 * @return the matching asset categories that the user has permission to view 352 * @throws SystemException if a system exception occurred 353 */ 354 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 355 long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Filters by the user's permissions and finds a range of all the asset categories where groupId = ?. 360 * 361 * <p> 362 * 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. 363 * </p> 364 * 365 * @param groupId the group id to search with 366 * @param start the lower bound of the range of asset categories to return 367 * @param end the upper bound of the range of asset categories to return (not inclusive) 368 * @return the range of matching asset categories that the user has permission to view 369 * @throws SystemException if a system exception occurred 370 */ 371 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 372 long groupId, int start, int end) 373 throws com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * Filters by the user's permissions and finds an ordered range of all the asset categories where groupId = ?. 377 * 378 * <p> 379 * 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. 380 * </p> 381 * 382 * @param groupId the group id to search with 383 * @param start the lower bound of the range of asset categories to return 384 * @param end the upper bound of the range of asset categories to return (not inclusive) 385 * @param orderByComparator the comparator to order the results by 386 * @return the ordered range of matching asset categories that the user has permission to view 387 * @throws SystemException if a system exception occurred 388 */ 389 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 390 long groupId, int start, int end, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException; 393 394 /** 395 * Finds all the asset categories where parentCategoryId = ?. 396 * 397 * @param parentCategoryId the parent category id to search with 398 * @return the matching asset categories 399 * @throws SystemException if a system exception occurred 400 */ 401 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 402 long parentCategoryId) 403 throws com.liferay.portal.kernel.exception.SystemException; 404 405 /** 406 * Finds a range of all the asset categories where parentCategoryId = ?. 407 * 408 * <p> 409 * 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. 410 * </p> 411 * 412 * @param parentCategoryId the parent category id to search with 413 * @param start the lower bound of the range of asset categories to return 414 * @param end the upper bound of the range of asset categories to return (not inclusive) 415 * @return the range of matching asset categories 416 * @throws SystemException if a system exception occurred 417 */ 418 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 419 long parentCategoryId, int start, int end) 420 throws com.liferay.portal.kernel.exception.SystemException; 421 422 /** 423 * Finds an ordered range of all the asset categories where parentCategoryId = ?. 424 * 425 * <p> 426 * 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. 427 * </p> 428 * 429 * @param parentCategoryId the parent category id to search with 430 * @param start the lower bound of the range of asset categories to return 431 * @param end the upper bound of the range of asset categories to return (not inclusive) 432 * @param orderByComparator the comparator to order the results by 433 * @return the ordered range of matching asset categories 434 * @throws SystemException if a system exception occurred 435 */ 436 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 437 long parentCategoryId, int start, int end, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Finds the first asset category in the ordered set where parentCategoryId = ?. 443 * 444 * <p> 445 * 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. 446 * </p> 447 * 448 * @param parentCategoryId the parent category id to search with 449 * @param orderByComparator the comparator to order the set by 450 * @return the first matching asset category 451 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First( 455 long parentCategoryId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException, 458 com.liferay.portlet.asset.NoSuchCategoryException; 459 460 /** 461 * Finds the last asset category in the ordered set where parentCategoryId = ?. 462 * 463 * <p> 464 * 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. 465 * </p> 466 * 467 * @param parentCategoryId the parent category id to search with 468 * @param orderByComparator the comparator to order the set by 469 * @return the last matching asset category 470 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 471 * @throws SystemException if a system exception occurred 472 */ 473 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last( 474 long parentCategoryId, 475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.asset.NoSuchCategoryException; 478 479 /** 480 * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. 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 categoryId the primary key of the current asset category 487 * @param parentCategoryId the parent category id to search with 488 * @param orderByComparator the comparator to order the set by 489 * @return the previous, current, and next asset category 490 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 491 * @throws SystemException if a system exception occurred 492 */ 493 public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext( 494 long categoryId, long parentCategoryId, 495 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 496 throws com.liferay.portal.kernel.exception.SystemException, 497 com.liferay.portlet.asset.NoSuchCategoryException; 498 499 /** 500 * Finds all the asset categories where vocabularyId = ?. 501 * 502 * @param vocabularyId the vocabulary id to search with 503 * @return the matching asset categories 504 * @throws SystemException if a system exception occurred 505 */ 506 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 507 long vocabularyId) 508 throws com.liferay.portal.kernel.exception.SystemException; 509 510 /** 511 * Finds a range of all the asset categories where vocabularyId = ?. 512 * 513 * <p> 514 * 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. 515 * </p> 516 * 517 * @param vocabularyId the vocabulary id to search with 518 * @param start the lower bound of the range of asset categories to return 519 * @param end the upper bound of the range of asset categories to return (not inclusive) 520 * @return the range of matching asset categories 521 * @throws SystemException if a system exception occurred 522 */ 523 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 524 long vocabularyId, int start, int end) 525 throws com.liferay.portal.kernel.exception.SystemException; 526 527 /** 528 * Finds an ordered range of all the asset categories where vocabularyId = ?. 529 * 530 * <p> 531 * 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. 532 * </p> 533 * 534 * @param vocabularyId the vocabulary id to search with 535 * @param start the lower bound of the range of asset categories to return 536 * @param end the upper bound of the range of asset categories to return (not inclusive) 537 * @param orderByComparator the comparator to order the results by 538 * @return the ordered range of matching asset categories 539 * @throws SystemException if a system exception occurred 540 */ 541 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 542 long vocabularyId, int start, int end, 543 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 544 throws com.liferay.portal.kernel.exception.SystemException; 545 546 /** 547 * Finds the first asset category in the ordered set where vocabularyId = ?. 548 * 549 * <p> 550 * 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. 551 * </p> 552 * 553 * @param vocabularyId the vocabulary id to search with 554 * @param orderByComparator the comparator to order the set by 555 * @return the first matching asset category 556 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 557 * @throws SystemException if a system exception occurred 558 */ 559 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First( 560 long vocabularyId, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException, 563 com.liferay.portlet.asset.NoSuchCategoryException; 564 565 /** 566 * Finds the last asset category in the ordered set where vocabularyId = ?. 567 * 568 * <p> 569 * 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. 570 * </p> 571 * 572 * @param vocabularyId the vocabulary id to search with 573 * @param orderByComparator the comparator to order the set by 574 * @return the last matching asset category 575 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 576 * @throws SystemException if a system exception occurred 577 */ 578 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last( 579 long vocabularyId, 580 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 581 throws com.liferay.portal.kernel.exception.SystemException, 582 com.liferay.portlet.asset.NoSuchCategoryException; 583 584 /** 585 * Finds the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. 586 * 587 * <p> 588 * 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. 589 * </p> 590 * 591 * @param categoryId the primary key of the current asset category 592 * @param vocabularyId the vocabulary id to search with 593 * @param orderByComparator the comparator to order the set by 594 * @return the previous, current, and next asset category 595 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext( 599 long categoryId, long vocabularyId, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException, 602 com.liferay.portlet.asset.NoSuchCategoryException; 603 604 /** 605 * Finds all the asset categories where parentCategoryId = ? and name = ?. 606 * 607 * @param parentCategoryId the parent category id to search with 608 * @param name the name to search with 609 * @return the matching asset categories 610 * @throws SystemException if a system exception occurred 611 */ 612 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 613 long parentCategoryId, java.lang.String name) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Finds a range of all the asset categories where parentCategoryId = ? and name = ?. 618 * 619 * <p> 620 * 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. 621 * </p> 622 * 623 * @param parentCategoryId the parent category id to search with 624 * @param name the name to search with 625 * @param start the lower bound of the range of asset categories to return 626 * @param end the upper bound of the range of asset categories to return (not inclusive) 627 * @return the range of matching asset categories 628 * @throws SystemException if a system exception occurred 629 */ 630 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 631 long parentCategoryId, java.lang.String name, int start, int end) 632 throws com.liferay.portal.kernel.exception.SystemException; 633 634 /** 635 * Finds an ordered range of all the asset categories where parentCategoryId = ? and name = ?. 636 * 637 * <p> 638 * 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. 639 * </p> 640 * 641 * @param parentCategoryId the parent category id to search with 642 * @param name the name to search with 643 * @param start the lower bound of the range of asset categories to return 644 * @param end the upper bound of the range of asset categories to return (not inclusive) 645 * @param orderByComparator the comparator to order the results by 646 * @return the ordered range of matching asset categories 647 * @throws SystemException if a system exception occurred 648 */ 649 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 650 long parentCategoryId, java.lang.String name, int start, int end, 651 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 652 throws com.liferay.portal.kernel.exception.SystemException; 653 654 /** 655 * Finds the first asset category in the ordered set where parentCategoryId = ? and name = ?. 656 * 657 * <p> 658 * 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. 659 * </p> 660 * 661 * @param parentCategoryId the parent category id to search with 662 * @param name the name to search with 663 * @param orderByComparator the comparator to order the set by 664 * @return the first matching asset category 665 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 666 * @throws SystemException if a system exception occurred 667 */ 668 public com.liferay.portlet.asset.model.AssetCategory findByP_N_First( 669 long parentCategoryId, java.lang.String name, 670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 671 throws com.liferay.portal.kernel.exception.SystemException, 672 com.liferay.portlet.asset.NoSuchCategoryException; 673 674 /** 675 * Finds the last asset category in the ordered set where parentCategoryId = ? and name = ?. 676 * 677 * <p> 678 * 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. 679 * </p> 680 * 681 * @param parentCategoryId the parent category id to search with 682 * @param name the name to search with 683 * @param orderByComparator the comparator to order the set by 684 * @return the last matching asset category 685 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 686 * @throws SystemException if a system exception occurred 687 */ 688 public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last( 689 long parentCategoryId, java.lang.String name, 690 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 691 throws com.liferay.portal.kernel.exception.SystemException, 692 com.liferay.portlet.asset.NoSuchCategoryException; 693 694 /** 695 * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param categoryId the primary key of the current asset category 702 * @param parentCategoryId the parent category id to search with 703 * @param name the name to search with 704 * @param orderByComparator the comparator to order the set by 705 * @return the previous, current, and next asset category 706 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 707 * @throws SystemException if a system exception occurred 708 */ 709 public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext( 710 long categoryId, long parentCategoryId, java.lang.String name, 711 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 712 throws com.liferay.portal.kernel.exception.SystemException, 713 com.liferay.portlet.asset.NoSuchCategoryException; 714 715 /** 716 * Finds all the asset categories where parentCategoryId = ? and vocabularyId = ?. 717 * 718 * @param parentCategoryId the parent category id to search with 719 * @param vocabularyId the vocabulary id to search with 720 * @return the matching asset categories 721 * @throws SystemException if a system exception occurred 722 */ 723 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 724 long parentCategoryId, long vocabularyId) 725 throws com.liferay.portal.kernel.exception.SystemException; 726 727 /** 728 * Finds a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 729 * 730 * <p> 731 * 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. 732 * </p> 733 * 734 * @param parentCategoryId the parent category id to search with 735 * @param vocabularyId the vocabulary id to search with 736 * @param start the lower bound of the range of asset categories to return 737 * @param end the upper bound of the range of asset categories to return (not inclusive) 738 * @return the range of matching asset categories 739 * @throws SystemException if a system exception occurred 740 */ 741 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 742 long parentCategoryId, long vocabularyId, int start, int end) 743 throws com.liferay.portal.kernel.exception.SystemException; 744 745 /** 746 * Finds an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 747 * 748 * <p> 749 * 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. 750 * </p> 751 * 752 * @param parentCategoryId the parent category id to search with 753 * @param vocabularyId the vocabulary id to search with 754 * @param start the lower bound of the range of asset categories to return 755 * @param end the upper bound of the range of asset categories to return (not inclusive) 756 * @param orderByComparator the comparator to order the results by 757 * @return the ordered range of matching asset categories 758 * @throws SystemException if a system exception occurred 759 */ 760 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 761 long parentCategoryId, long vocabularyId, int start, int end, 762 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 763 throws com.liferay.portal.kernel.exception.SystemException; 764 765 /** 766 * Finds the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 767 * 768 * <p> 769 * 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. 770 * </p> 771 * 772 * @param parentCategoryId the parent category id to search with 773 * @param vocabularyId the vocabulary id to search with 774 * @param orderByComparator the comparator to order the set by 775 * @return the first matching asset category 776 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 777 * @throws SystemException if a system exception occurred 778 */ 779 public com.liferay.portlet.asset.model.AssetCategory findByP_V_First( 780 long parentCategoryId, long vocabularyId, 781 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 782 throws com.liferay.portal.kernel.exception.SystemException, 783 com.liferay.portlet.asset.NoSuchCategoryException; 784 785 /** 786 * Finds the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 787 * 788 * <p> 789 * 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. 790 * </p> 791 * 792 * @param parentCategoryId the parent category id to search with 793 * @param vocabularyId the vocabulary id to search with 794 * @param orderByComparator the comparator to order the set by 795 * @return the last matching asset category 796 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 797 * @throws SystemException if a system exception occurred 798 */ 799 public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last( 800 long parentCategoryId, long vocabularyId, 801 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 802 throws com.liferay.portal.kernel.exception.SystemException, 803 com.liferay.portlet.asset.NoSuchCategoryException; 804 805 /** 806 * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 807 * 808 * <p> 809 * 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. 810 * </p> 811 * 812 * @param categoryId the primary key of the current asset category 813 * @param parentCategoryId the parent category id to search with 814 * @param vocabularyId the vocabulary id to search with 815 * @param orderByComparator the comparator to order the set by 816 * @return the previous, current, and next asset category 817 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 818 * @throws SystemException if a system exception occurred 819 */ 820 public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext( 821 long categoryId, long parentCategoryId, long vocabularyId, 822 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 823 throws com.liferay.portal.kernel.exception.SystemException, 824 com.liferay.portlet.asset.NoSuchCategoryException; 825 826 /** 827 * Finds all the asset categories where name = ? and vocabularyId = ?. 828 * 829 * @param name the name to search with 830 * @param vocabularyId the vocabulary id to search with 831 * @return the matching asset categories 832 * @throws SystemException if a system exception occurred 833 */ 834 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 835 java.lang.String name, long vocabularyId) 836 throws com.liferay.portal.kernel.exception.SystemException; 837 838 /** 839 * Finds a range of all the asset categories where name = ? and vocabularyId = ?. 840 * 841 * <p> 842 * 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. 843 * </p> 844 * 845 * @param name the name to search with 846 * @param vocabularyId the vocabulary id to search with 847 * @param start the lower bound of the range of asset categories to return 848 * @param end the upper bound of the range of asset categories to return (not inclusive) 849 * @return the range of matching asset categories 850 * @throws SystemException if a system exception occurred 851 */ 852 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 853 java.lang.String name, long vocabularyId, int start, int end) 854 throws com.liferay.portal.kernel.exception.SystemException; 855 856 /** 857 * Finds an ordered range of all the asset categories where name = ? and vocabularyId = ?. 858 * 859 * <p> 860 * 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. 861 * </p> 862 * 863 * @param name the name to search with 864 * @param vocabularyId the vocabulary id to search with 865 * @param start the lower bound of the range of asset categories to return 866 * @param end the upper bound of the range of asset categories to return (not inclusive) 867 * @param orderByComparator the comparator to order the results by 868 * @return the ordered range of matching asset categories 869 * @throws SystemException if a system exception occurred 870 */ 871 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 872 java.lang.String name, long vocabularyId, int start, int end, 873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Finds the first asset category in the ordered set where name = ? and vocabularyId = ?. 878 * 879 * <p> 880 * 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. 881 * </p> 882 * 883 * @param name the name to search with 884 * @param vocabularyId the vocabulary id to search with 885 * @param orderByComparator the comparator to order the set by 886 * @return the first matching asset category 887 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 888 * @throws SystemException if a system exception occurred 889 */ 890 public com.liferay.portlet.asset.model.AssetCategory findByN_V_First( 891 java.lang.String name, long vocabularyId, 892 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 893 throws com.liferay.portal.kernel.exception.SystemException, 894 com.liferay.portlet.asset.NoSuchCategoryException; 895 896 /** 897 * Finds the last asset category in the ordered set where name = ? and vocabularyId = ?. 898 * 899 * <p> 900 * 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. 901 * </p> 902 * 903 * @param name the name to search with 904 * @param vocabularyId the vocabulary id to search with 905 * @param orderByComparator the comparator to order the set by 906 * @return the last matching asset category 907 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 908 * @throws SystemException if a system exception occurred 909 */ 910 public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last( 911 java.lang.String name, long vocabularyId, 912 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 913 throws com.liferay.portal.kernel.exception.SystemException, 914 com.liferay.portlet.asset.NoSuchCategoryException; 915 916 /** 917 * Finds the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. 918 * 919 * <p> 920 * 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. 921 * </p> 922 * 923 * @param categoryId the primary key of the current asset category 924 * @param name the name to search with 925 * @param vocabularyId the vocabulary id to search with 926 * @param orderByComparator the comparator to order the set by 927 * @return the previous, current, and next asset category 928 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 929 * @throws SystemException if a system exception occurred 930 */ 931 public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext( 932 long categoryId, java.lang.String name, long vocabularyId, 933 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 934 throws com.liferay.portal.kernel.exception.SystemException, 935 com.liferay.portlet.asset.NoSuchCategoryException; 936 937 /** 938 * Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 939 * 940 * @param parentCategoryId the parent category id to search with 941 * @param name the name to search with 942 * @param vocabularyId the vocabulary id to search with 943 * @return the matching asset category 944 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 945 * @throws SystemException if a system exception occurred 946 */ 947 public com.liferay.portlet.asset.model.AssetCategory findByP_N_V( 948 long parentCategoryId, java.lang.String name, long vocabularyId) 949 throws com.liferay.portal.kernel.exception.SystemException, 950 com.liferay.portlet.asset.NoSuchCategoryException; 951 952 /** 953 * Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 954 * 955 * @param parentCategoryId the parent category id to search with 956 * @param name the name to search with 957 * @param vocabularyId the vocabulary id to search with 958 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 959 * @throws SystemException if a system exception occurred 960 */ 961 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 962 long parentCategoryId, java.lang.String name, long vocabularyId) 963 throws com.liferay.portal.kernel.exception.SystemException; 964 965 /** 966 * Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 967 * 968 * @param parentCategoryId the parent category id to search with 969 * @param name the name to search with 970 * @param vocabularyId the vocabulary id to search with 971 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 972 * @throws SystemException if a system exception occurred 973 */ 974 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 975 long parentCategoryId, java.lang.String name, long vocabularyId, 976 boolean retrieveFromCache) 977 throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Finds all the asset categories. 981 * 982 * @return the asset categories 983 * @throws SystemException if a system exception occurred 984 */ 985 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll() 986 throws com.liferay.portal.kernel.exception.SystemException; 987 988 /** 989 * Finds a range of all the asset categories. 990 * 991 * <p> 992 * 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. 993 * </p> 994 * 995 * @param start the lower bound of the range of asset categories to return 996 * @param end the upper bound of the range of asset categories to return (not inclusive) 997 * @return the range of asset categories 998 * @throws SystemException if a system exception occurred 999 */ 1000 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 1001 int start, int end) 1002 throws com.liferay.portal.kernel.exception.SystemException; 1003 1004 /** 1005 * Finds an ordered range of all the asset categories. 1006 * 1007 * <p> 1008 * 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. 1009 * </p> 1010 * 1011 * @param start the lower bound of the range of asset categories to return 1012 * @param end the upper bound of the range of asset categories to return (not inclusive) 1013 * @param orderByComparator the comparator to order the results by 1014 * @return the ordered range of asset categories 1015 * @throws SystemException if a system exception occurred 1016 */ 1017 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 1018 int start, int end, 1019 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1020 throws com.liferay.portal.kernel.exception.SystemException; 1021 1022 /** 1023 * Removes all the asset categories where uuid = ? from the database. 1024 * 1025 * @param uuid the uuid to search with 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public void removeByUuid(java.lang.String uuid) 1029 throws com.liferay.portal.kernel.exception.SystemException; 1030 1031 /** 1032 * Removes the asset category where uuid = ? and groupId = ? from the database. 1033 * 1034 * @param uuid the uuid to search with 1035 * @param groupId the group id to search with 1036 * @throws SystemException if a system exception occurred 1037 */ 1038 public void removeByUUID_G(java.lang.String uuid, long groupId) 1039 throws com.liferay.portal.kernel.exception.SystemException, 1040 com.liferay.portlet.asset.NoSuchCategoryException; 1041 1042 /** 1043 * Removes all the asset categories where groupId = ? from the database. 1044 * 1045 * @param groupId the group id to search with 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public void removeByGroupId(long groupId) 1049 throws com.liferay.portal.kernel.exception.SystemException; 1050 1051 /** 1052 * Removes all the asset categories where parentCategoryId = ? from the database. 1053 * 1054 * @param parentCategoryId the parent category id to search with 1055 * @throws SystemException if a system exception occurred 1056 */ 1057 public void removeByParentCategoryId(long parentCategoryId) 1058 throws com.liferay.portal.kernel.exception.SystemException; 1059 1060 /** 1061 * Removes all the asset categories where vocabularyId = ? from the database. 1062 * 1063 * @param vocabularyId the vocabulary id to search with 1064 * @throws SystemException if a system exception occurred 1065 */ 1066 public void removeByVocabularyId(long vocabularyId) 1067 throws com.liferay.portal.kernel.exception.SystemException; 1068 1069 /** 1070 * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. 1071 * 1072 * @param parentCategoryId the parent category id to search with 1073 * @param name the name to search with 1074 * @throws SystemException if a system exception occurred 1075 */ 1076 public void removeByP_N(long parentCategoryId, java.lang.String name) 1077 throws com.liferay.portal.kernel.exception.SystemException; 1078 1079 /** 1080 * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. 1081 * 1082 * @param parentCategoryId the parent category id to search with 1083 * @param vocabularyId the vocabulary id to search with 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public void removeByP_V(long parentCategoryId, long vocabularyId) 1087 throws com.liferay.portal.kernel.exception.SystemException; 1088 1089 /** 1090 * Removes all the asset categories where name = ? and vocabularyId = ? from the database. 1091 * 1092 * @param name the name to search with 1093 * @param vocabularyId the vocabulary id to search with 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public void removeByN_V(java.lang.String name, long vocabularyId) 1097 throws com.liferay.portal.kernel.exception.SystemException; 1098 1099 /** 1100 * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 1101 * 1102 * @param parentCategoryId the parent category id to search with 1103 * @param name the name to search with 1104 * @param vocabularyId the vocabulary id to search with 1105 * @throws SystemException if a system exception occurred 1106 */ 1107 public void removeByP_N_V(long parentCategoryId, java.lang.String name, 1108 long vocabularyId) 1109 throws com.liferay.portal.kernel.exception.SystemException, 1110 com.liferay.portlet.asset.NoSuchCategoryException; 1111 1112 /** 1113 * Removes all the asset categories from the database. 1114 * 1115 * @throws SystemException if a system exception occurred 1116 */ 1117 public void removeAll() 1118 throws com.liferay.portal.kernel.exception.SystemException; 1119 1120 /** 1121 * Counts all the asset categories where uuid = ?. 1122 * 1123 * @param uuid the uuid to search with 1124 * @return the number of matching asset categories 1125 * @throws SystemException if a system exception occurred 1126 */ 1127 public int countByUuid(java.lang.String uuid) 1128 throws com.liferay.portal.kernel.exception.SystemException; 1129 1130 /** 1131 * Counts all the asset categories where uuid = ? and groupId = ?. 1132 * 1133 * @param uuid the uuid to search with 1134 * @param groupId the group id to search with 1135 * @return the number of matching asset categories 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public int countByUUID_G(java.lang.String uuid, long groupId) 1139 throws com.liferay.portal.kernel.exception.SystemException; 1140 1141 /** 1142 * Counts all the asset categories where groupId = ?. 1143 * 1144 * @param groupId the group id to search with 1145 * @return the number of matching asset categories 1146 * @throws SystemException if a system exception occurred 1147 */ 1148 public int countByGroupId(long groupId) 1149 throws com.liferay.portal.kernel.exception.SystemException; 1150 1151 /** 1152 * Filters by the user's permissions and counts all the asset categories where groupId = ?. 1153 * 1154 * @param groupId the group id to search with 1155 * @return the number of matching asset categories that the user has permission to view 1156 * @throws SystemException if a system exception occurred 1157 */ 1158 public int filterCountByGroupId(long groupId) 1159 throws com.liferay.portal.kernel.exception.SystemException; 1160 1161 /** 1162 * Counts all the asset categories where parentCategoryId = ?. 1163 * 1164 * @param parentCategoryId the parent category id to search with 1165 * @return the number of matching asset categories 1166 * @throws SystemException if a system exception occurred 1167 */ 1168 public int countByParentCategoryId(long parentCategoryId) 1169 throws com.liferay.portal.kernel.exception.SystemException; 1170 1171 /** 1172 * Counts all the asset categories where vocabularyId = ?. 1173 * 1174 * @param vocabularyId the vocabulary id to search with 1175 * @return the number of matching asset categories 1176 * @throws SystemException if a system exception occurred 1177 */ 1178 public int countByVocabularyId(long vocabularyId) 1179 throws com.liferay.portal.kernel.exception.SystemException; 1180 1181 /** 1182 * Counts all the asset categories where parentCategoryId = ? and name = ?. 1183 * 1184 * @param parentCategoryId the parent category id to search with 1185 * @param name the name to search with 1186 * @return the number of matching asset categories 1187 * @throws SystemException if a system exception occurred 1188 */ 1189 public int countByP_N(long parentCategoryId, java.lang.String name) 1190 throws com.liferay.portal.kernel.exception.SystemException; 1191 1192 /** 1193 * Counts all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1194 * 1195 * @param parentCategoryId the parent category id to search with 1196 * @param vocabularyId the vocabulary id to search with 1197 * @return the number of matching asset categories 1198 * @throws SystemException if a system exception occurred 1199 */ 1200 public int countByP_V(long parentCategoryId, long vocabularyId) 1201 throws com.liferay.portal.kernel.exception.SystemException; 1202 1203 /** 1204 * Counts all the asset categories where name = ? and vocabularyId = ?. 1205 * 1206 * @param name the name to search with 1207 * @param vocabularyId the vocabulary id to search with 1208 * @return the number of matching asset categories 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public int countByN_V(java.lang.String name, long vocabularyId) 1212 throws com.liferay.portal.kernel.exception.SystemException; 1213 1214 /** 1215 * Counts all the asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. 1216 * 1217 * @param parentCategoryId the parent category id to search with 1218 * @param name the name to search with 1219 * @param vocabularyId the vocabulary id to search with 1220 * @return the number of matching asset categories 1221 * @throws SystemException if a system exception occurred 1222 */ 1223 public int countByP_N_V(long parentCategoryId, java.lang.String name, 1224 long vocabularyId) 1225 throws com.liferay.portal.kernel.exception.SystemException; 1226 1227 /** 1228 * Counts all the asset categories. 1229 * 1230 * @return the number of asset categories 1231 * @throws SystemException if a system exception occurred 1232 */ 1233 public int countAll() 1234 throws com.liferay.portal.kernel.exception.SystemException; 1235 1236 /** 1237 * Gets all the asset entries associated with the asset category. 1238 * 1239 * @param pk the primary key of the asset category to get the associated asset entries for 1240 * @return the asset entries associated with the asset category 1241 * @throws SystemException if a system exception occurred 1242 */ 1243 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1244 long pk) throws com.liferay.portal.kernel.exception.SystemException; 1245 1246 /** 1247 * Gets a range of all the asset entries associated with the asset category. 1248 * 1249 * <p> 1250 * 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. 1251 * </p> 1252 * 1253 * @param pk the primary key of the asset category to get the associated asset entries for 1254 * @param start the lower bound of the range of asset categories to return 1255 * @param end the upper bound of the range of asset categories to return (not inclusive) 1256 * @return the range of asset entries associated with the asset category 1257 * @throws SystemException if a system exception occurred 1258 */ 1259 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1260 long pk, int start, int end) 1261 throws com.liferay.portal.kernel.exception.SystemException; 1262 1263 /** 1264 * Gets an ordered range of all the asset entries associated with the asset category. 1265 * 1266 * <p> 1267 * 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. 1268 * </p> 1269 * 1270 * @param pk the primary key of the asset category to get the associated asset entries for 1271 * @param start the lower bound of the range of asset categories to return 1272 * @param end the upper bound of the range of asset categories to return (not inclusive) 1273 * @param orderByComparator the comparator to order the results by 1274 * @return the ordered range of asset entries associated with the asset category 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1278 long pk, int start, int end, 1279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1280 throws com.liferay.portal.kernel.exception.SystemException; 1281 1282 /** 1283 * Gets the number of asset entries associated with the asset category. 1284 * 1285 * @param pk the primary key of the asset category to get the number of associated asset entries for 1286 * @return the number of asset entries associated with the asset category 1287 * @throws SystemException if a system exception occurred 1288 */ 1289 public int getAssetEntriesSize(long pk) 1290 throws com.liferay.portal.kernel.exception.SystemException; 1291 1292 /** 1293 * Determines whether the asset entry is associated with the asset category. 1294 * 1295 * @param pk the primary key of the asset category 1296 * @param assetEntryPK the primary key of the asset entry 1297 * @return whether the asset entry is associated with the asset category 1298 * @throws SystemException if a system exception occurred 1299 */ 1300 public boolean containsAssetEntry(long pk, long assetEntryPK) 1301 throws com.liferay.portal.kernel.exception.SystemException; 1302 1303 /** 1304 * Determines whether the asset category has any asset entries associated with it. 1305 * 1306 * @param pk the primary key of the asset category to check for associations with asset entries 1307 * @return whether the asset category has any asset entries associated with it 1308 * @throws SystemException if a system exception occurred 1309 */ 1310 public boolean containsAssetEntries(long pk) 1311 throws com.liferay.portal.kernel.exception.SystemException; 1312 1313 /** 1314 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1315 * 1316 * @param pk the primary key of the asset category 1317 * @param assetEntryPK the primary key of the asset entry 1318 * @throws SystemException if a system exception occurred 1319 */ 1320 public void addAssetEntry(long pk, long assetEntryPK) 1321 throws com.liferay.portal.kernel.exception.SystemException; 1322 1323 /** 1324 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1325 * 1326 * @param pk the primary key of the asset category 1327 * @param assetEntry the asset entry 1328 * @throws SystemException if a system exception occurred 1329 */ 1330 public void addAssetEntry(long pk, 1331 com.liferay.portlet.asset.model.AssetEntry assetEntry) 1332 throws com.liferay.portal.kernel.exception.SystemException; 1333 1334 /** 1335 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1336 * 1337 * @param pk the primary key of the asset category 1338 * @param assetEntryPKs the primary keys of the asset entries 1339 * @throws SystemException if a system exception occurred 1340 */ 1341 public void addAssetEntries(long pk, long[] assetEntryPKs) 1342 throws com.liferay.portal.kernel.exception.SystemException; 1343 1344 /** 1345 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1346 * 1347 * @param pk the primary key of the asset category 1348 * @param assetEntries the asset entries 1349 * @throws SystemException if a system exception occurred 1350 */ 1351 public void addAssetEntries(long pk, 1352 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1353 throws com.liferay.portal.kernel.exception.SystemException; 1354 1355 /** 1356 * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1357 * 1358 * @param pk the primary key of the asset category to clear the associated asset entries from 1359 * @throws SystemException if a system exception occurred 1360 */ 1361 public void clearAssetEntries(long pk) 1362 throws com.liferay.portal.kernel.exception.SystemException; 1363 1364 /** 1365 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1366 * 1367 * @param pk the primary key of the asset category 1368 * @param assetEntryPK the primary key of the asset entry 1369 * @throws SystemException if a system exception occurred 1370 */ 1371 public void removeAssetEntry(long pk, long assetEntryPK) 1372 throws com.liferay.portal.kernel.exception.SystemException; 1373 1374 /** 1375 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1376 * 1377 * @param pk the primary key of the asset category 1378 * @param assetEntry the asset entry 1379 * @throws SystemException if a system exception occurred 1380 */ 1381 public void removeAssetEntry(long pk, 1382 com.liferay.portlet.asset.model.AssetEntry assetEntry) 1383 throws com.liferay.portal.kernel.exception.SystemException; 1384 1385 /** 1386 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1387 * 1388 * @param pk the primary key of the asset category 1389 * @param assetEntryPKs the primary keys of the asset entries 1390 * @throws SystemException if a system exception occurred 1391 */ 1392 public void removeAssetEntries(long pk, long[] assetEntryPKs) 1393 throws com.liferay.portal.kernel.exception.SystemException; 1394 1395 /** 1396 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1397 * 1398 * @param pk the primary key of the asset category 1399 * @param assetEntries the asset entries 1400 * @throws SystemException if a system exception occurred 1401 */ 1402 public void removeAssetEntries(long pk, 1403 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1404 throws com.liferay.portal.kernel.exception.SystemException; 1405 1406 /** 1407 * Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1408 * 1409 * @param pk the primary key of the asset category to set the associations for 1410 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category 1411 * @throws SystemException if a system exception occurred 1412 */ 1413 public void setAssetEntries(long pk, long[] assetEntryPKs) 1414 throws com.liferay.portal.kernel.exception.SystemException; 1415 1416 /** 1417 * Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1418 * 1419 * @param pk the primary key of the asset category to set the associations for 1420 * @param assetEntries the asset entries to be associated with the asset category 1421 * @throws SystemException if a system exception occurred 1422 */ 1423 public void setAssetEntries(long pk, 1424 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1425 throws com.liferay.portal.kernel.exception.SystemException; 1426 1427 /** 1428 * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. 1429 * 1430 * <p> 1431 * Only call this method if the tree has become stale through operations other than normal CRUD. Under normal circumstances the tree is automatically rebuilt whenver necessary. 1432 * </p> 1433 * 1434 * @param groupId the id of the scope to rebuild the tree for 1435 * @param force whether to force the rebuild even if the tree is not stale 1436 */ 1437 public void rebuildTree(long groupId, boolean force) 1438 throws com.liferay.portal.kernel.exception.SystemException; 1439 }