001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.asset.model.AssetCategory; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the asset category service. This utility wraps {@link AssetCategoryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see AssetCategoryPersistence 037 * @see AssetCategoryPersistenceImpl 038 * @generated 039 */ 040 public class AssetCategoryUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(AssetCategory assetCategory) { 058 getPersistence().clearCache(assetCategory); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<AssetCategory> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<AssetCategory> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<AssetCategory> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static AssetCategory update(AssetCategory assetCategory) 101 throws SystemException { 102 return getPersistence().update(assetCategory); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static AssetCategory update(AssetCategory assetCategory, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(assetCategory, serviceContext); 111 } 112 113 /** 114 * Caches the asset category in the entity cache if it is enabled. 115 * 116 * @param assetCategory the asset category 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.asset.model.AssetCategory assetCategory) { 120 getPersistence().cacheResult(assetCategory); 121 } 122 123 /** 124 * Caches the asset categories in the entity cache if it is enabled. 125 * 126 * @param assetCategories the asset categories 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) { 130 getPersistence().cacheResult(assetCategories); 131 } 132 133 /** 134 * Creates a new asset category with the primary key. Does not add the asset category to the database. 135 * 136 * @param categoryId the primary key for the new asset category 137 * @return the new asset category 138 */ 139 public static com.liferay.portlet.asset.model.AssetCategory create( 140 long categoryId) { 141 return getPersistence().create(categoryId); 142 } 143 144 /** 145 * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param categoryId the primary key of the asset category 148 * @return the asset category that was removed 149 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.asset.model.AssetCategory remove( 153 long categoryId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.asset.NoSuchCategoryException { 156 return getPersistence().remove(categoryId); 157 } 158 159 public static com.liferay.portlet.asset.model.AssetCategory updateImpl( 160 com.liferay.portlet.asset.model.AssetCategory assetCategory) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(assetCategory); 163 } 164 165 /** 166 * Returns the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 167 * 168 * @param categoryId the primary key of the asset category 169 * @return the asset category 170 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey( 174 long categoryId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.asset.NoSuchCategoryException { 177 return getPersistence().findByPrimaryKey(categoryId); 178 } 179 180 /** 181 * Returns the asset category with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param categoryId the primary key of the asset category 184 * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey( 188 long categoryId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(categoryId); 191 } 192 193 /** 194 * Returns all the asset categories where uuid = ?. 195 * 196 * @param uuid the uuid 197 * @return the matching asset categories 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 201 java.lang.String uuid) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByUuid(uuid); 204 } 205 206 /** 207 * Returns a range of all the asset categories where uuid = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param uuid the uuid 214 * @param start the lower bound of the range of asset categories 215 * @param end the upper bound of the range of asset categories (not inclusive) 216 * @return the range of matching asset categories 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 220 java.lang.String uuid, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByUuid(uuid, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the asset categories where uuid = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param uuid the uuid 233 * @param start the lower bound of the range of asset categories 234 * @param end the upper bound of the range of asset categories (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching asset categories 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 240 java.lang.String uuid, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 244 } 245 246 /** 247 * Returns the first asset category in the ordered set where uuid = ?. 248 * 249 * @param uuid the uuid 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching asset category 252 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 253 * @throws SystemException if a system exception occurred 254 */ 255 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First( 256 java.lang.String uuid, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException, 259 com.liferay.portlet.asset.NoSuchCategoryException { 260 return getPersistence().findByUuid_First(uuid, orderByComparator); 261 } 262 263 /** 264 * Returns the first asset category in the ordered set where uuid = ?. 265 * 266 * @param uuid the uuid 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_First( 272 java.lang.String uuid, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 276 } 277 278 /** 279 * Returns the last asset category in the ordered set where uuid = ?. 280 * 281 * @param uuid the uuid 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the last matching asset category 284 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last( 288 java.lang.String uuid, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.kernel.exception.SystemException, 291 com.liferay.portlet.asset.NoSuchCategoryException { 292 return getPersistence().findByUuid_Last(uuid, orderByComparator); 293 } 294 295 /** 296 * Returns the last asset category in the ordered set where uuid = ?. 297 * 298 * @param uuid the uuid 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_Last( 304 java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException { 307 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 308 } 309 310 /** 311 * Returns the asset categories before and after the current asset category in the ordered set where uuid = ?. 312 * 313 * @param categoryId the primary key of the current asset category 314 * @param uuid the uuid 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the previous, current, and next asset category 317 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext( 321 long categoryId, java.lang.String uuid, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.asset.NoSuchCategoryException { 325 return getPersistence() 326 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator); 327 } 328 329 /** 330 * Returns the asset category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 331 * 332 * @param uuid the uuid 333 * @param groupId the group ID 334 * @return the matching asset category 335 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G( 339 java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.asset.NoSuchCategoryException { 342 return getPersistence().findByUUID_G(uuid, groupId); 343 } 344 345 /** 346 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 347 * 348 * @param uuid the uuid 349 * @param groupId the group ID 350 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 354 java.lang.String uuid, long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().fetchByUUID_G(uuid, groupId); 357 } 358 359 /** 360 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 361 * 362 * @param uuid the uuid 363 * @param groupId the group ID 364 * @param retrieveFromCache whether to use the finder cache 365 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 366 * @throws SystemException if a system exception occurred 367 */ 368 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 369 java.lang.String uuid, long groupId, boolean retrieveFromCache) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 372 } 373 374 /** 375 * Returns all the asset categories where uuid = ? and companyId = ?. 376 * 377 * @param uuid the uuid 378 * @param companyId the company ID 379 * @return the matching asset categories 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid_C( 383 java.lang.String uuid, long companyId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByUuid_C(uuid, companyId); 386 } 387 388 /** 389 * Returns a range of all the asset categories where uuid = ? and companyId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param uuid the uuid 396 * @param companyId the company ID 397 * @param start the lower bound of the range of asset categories 398 * @param end the upper bound of the range of asset categories (not inclusive) 399 * @return the range of matching asset categories 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid_C( 403 java.lang.String uuid, long companyId, int start, int end) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return getPersistence().findByUuid_C(uuid, companyId, start, end); 406 } 407 408 /** 409 * Returns an ordered range of all the asset categories where uuid = ? and companyId = ?. 410 * 411 * <p> 412 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 413 * </p> 414 * 415 * @param uuid the uuid 416 * @param companyId the company ID 417 * @param start the lower bound of the range of asset categories 418 * @param end the upper bound of the range of asset categories (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @return the ordered range of matching asset categories 421 * @throws SystemException if a system exception occurred 422 */ 423 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid_C( 424 java.lang.String uuid, long companyId, int start, int end, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException { 427 return getPersistence() 428 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 429 } 430 431 /** 432 * Returns the first asset category in the ordered set where uuid = ? and companyId = ?. 433 * 434 * @param uuid the uuid 435 * @param companyId the company ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the first matching asset category 438 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_C_First( 442 java.lang.String uuid, long companyId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.asset.NoSuchCategoryException { 446 return getPersistence() 447 .findByUuid_C_First(uuid, companyId, orderByComparator); 448 } 449 450 /** 451 * Returns the first asset category in the ordered set where uuid = ? and companyId = ?. 452 * 453 * @param uuid the uuid 454 * @param companyId the company ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_C_First( 460 java.lang.String uuid, long companyId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 return getPersistence() 464 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 465 } 466 467 /** 468 * Returns the last asset category in the ordered set where uuid = ? and companyId = ?. 469 * 470 * @param uuid the uuid 471 * @param companyId the company ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching asset category 474 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 475 * @throws SystemException if a system exception occurred 476 */ 477 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_C_Last( 478 java.lang.String uuid, long companyId, 479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 480 throws com.liferay.portal.kernel.exception.SystemException, 481 com.liferay.portlet.asset.NoSuchCategoryException { 482 return getPersistence() 483 .findByUuid_C_Last(uuid, companyId, orderByComparator); 484 } 485 486 /** 487 * Returns the last asset category in the ordered set where uuid = ? and companyId = ?. 488 * 489 * @param uuid the uuid 490 * @param companyId the company ID 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_C_Last( 496 java.lang.String uuid, long companyId, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException { 499 return getPersistence() 500 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 501 } 502 503 /** 504 * Returns the asset categories before and after the current asset category in the ordered set where uuid = ? and companyId = ?. 505 * 506 * @param categoryId the primary key of the current asset category 507 * @param uuid the uuid 508 * @param companyId the company ID 509 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 510 * @return the previous, current, and next asset category 511 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 512 * @throws SystemException if a system exception occurred 513 */ 514 public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_C_PrevAndNext( 515 long categoryId, java.lang.String uuid, long companyId, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException, 518 com.liferay.portlet.asset.NoSuchCategoryException { 519 return getPersistence() 520 .findByUuid_C_PrevAndNext(categoryId, uuid, companyId, 521 orderByComparator); 522 } 523 524 /** 525 * Returns all the asset categories where groupId = ?. 526 * 527 * @param groupId the group ID 528 * @return the matching asset categories 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 532 long groupId) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence().findByGroupId(groupId); 535 } 536 537 /** 538 * Returns a range of all the asset categories where groupId = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param groupId the group ID 545 * @param start the lower bound of the range of asset categories 546 * @param end the upper bound of the range of asset categories (not inclusive) 547 * @return the range of matching asset categories 548 * @throws SystemException if a system exception occurred 549 */ 550 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 551 long groupId, int start, int end) 552 throws com.liferay.portal.kernel.exception.SystemException { 553 return getPersistence().findByGroupId(groupId, start, end); 554 } 555 556 /** 557 * Returns an ordered range of all the asset categories where groupId = ?. 558 * 559 * <p> 560 * 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. 561 * </p> 562 * 563 * @param groupId the group ID 564 * @param start the lower bound of the range of asset categories 565 * @param end the upper bound of the range of asset categories (not inclusive) 566 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 567 * @return the ordered range of matching asset categories 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 571 long groupId, int start, int end, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return getPersistence() 575 .findByGroupId(groupId, start, end, orderByComparator); 576 } 577 578 /** 579 * Returns the first asset category in the ordered set where groupId = ?. 580 * 581 * @param groupId the group ID 582 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 583 * @return the first matching asset category 584 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 585 * @throws SystemException if a system exception occurred 586 */ 587 public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_First( 588 long groupId, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.kernel.exception.SystemException, 591 com.liferay.portlet.asset.NoSuchCategoryException { 592 return getPersistence().findByGroupId_First(groupId, orderByComparator); 593 } 594 595 /** 596 * Returns the first asset category in the ordered set where groupId = ?. 597 * 598 * @param groupId the group ID 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public static com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_First( 604 long groupId, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException { 607 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 608 } 609 610 /** 611 * Returns the last asset category in the ordered set where groupId = ?. 612 * 613 * @param groupId the group ID 614 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 615 * @return the last matching asset category 616 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 617 * @throws SystemException if a system exception occurred 618 */ 619 public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last( 620 long groupId, 621 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 622 throws com.liferay.portal.kernel.exception.SystemException, 623 com.liferay.portlet.asset.NoSuchCategoryException { 624 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 625 } 626 627 /** 628 * Returns the last asset category in the ordered set where groupId = ?. 629 * 630 * @param groupId the group ID 631 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 632 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public static com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_Last( 636 long groupId, 637 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 640 } 641 642 /** 643 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ?. 644 * 645 * @param categoryId the primary key of the current asset category 646 * @param groupId the group ID 647 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 648 * @return the previous, current, and next asset category 649 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 650 * @throws SystemException if a system exception occurred 651 */ 652 public static com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext( 653 long categoryId, long groupId, 654 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 655 throws com.liferay.portal.kernel.exception.SystemException, 656 com.liferay.portlet.asset.NoSuchCategoryException { 657 return getPersistence() 658 .findByGroupId_PrevAndNext(categoryId, groupId, 659 orderByComparator); 660 } 661 662 /** 663 * Returns all the asset categories that the user has permission to view where groupId = ?. 664 * 665 * @param groupId the group ID 666 * @return the matching asset categories that the user has permission to view 667 * @throws SystemException if a system exception occurred 668 */ 669 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 670 long groupId) 671 throws com.liferay.portal.kernel.exception.SystemException { 672 return getPersistence().filterFindByGroupId(groupId); 673 } 674 675 /** 676 * Returns a range of all the asset categories that the user has permission to view where groupId = ?. 677 * 678 * <p> 679 * 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. 680 * </p> 681 * 682 * @param groupId the group ID 683 * @param start the lower bound of the range of asset categories 684 * @param end the upper bound of the range of asset categories (not inclusive) 685 * @return the range of matching asset categories that the user has permission to view 686 * @throws SystemException if a system exception occurred 687 */ 688 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 689 long groupId, int start, int end) 690 throws com.liferay.portal.kernel.exception.SystemException { 691 return getPersistence().filterFindByGroupId(groupId, start, end); 692 } 693 694 /** 695 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ?. 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 groupId the group ID 702 * @param start the lower bound of the range of asset categories 703 * @param end the upper bound of the range of asset categories (not inclusive) 704 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 705 * @return the ordered range of matching asset categories that the user has permission to view 706 * @throws SystemException if a system exception occurred 707 */ 708 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 709 long groupId, int start, int end, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException { 712 return getPersistence() 713 .filterFindByGroupId(groupId, start, end, orderByComparator); 714 } 715 716 /** 717 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ?. 718 * 719 * @param categoryId the primary key of the current asset category 720 * @param groupId the group ID 721 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 722 * @return the previous, current, and next asset category 723 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 724 * @throws SystemException if a system exception occurred 725 */ 726 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext( 727 long categoryId, long groupId, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.kernel.exception.SystemException, 730 com.liferay.portlet.asset.NoSuchCategoryException { 731 return getPersistence() 732 .filterFindByGroupId_PrevAndNext(categoryId, groupId, 733 orderByComparator); 734 } 735 736 /** 737 * Returns all the asset categories where parentCategoryId = ?. 738 * 739 * @param parentCategoryId the parent category ID 740 * @return the matching asset categories 741 * @throws SystemException if a system exception occurred 742 */ 743 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 744 long parentCategoryId) 745 throws com.liferay.portal.kernel.exception.SystemException { 746 return getPersistence().findByParentCategoryId(parentCategoryId); 747 } 748 749 /** 750 * Returns a range of all the asset categories where parentCategoryId = ?. 751 * 752 * <p> 753 * 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. 754 * </p> 755 * 756 * @param parentCategoryId the parent category ID 757 * @param start the lower bound of the range of asset categories 758 * @param end the upper bound of the range of asset categories (not inclusive) 759 * @return the range of matching asset categories 760 * @throws SystemException if a system exception occurred 761 */ 762 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 763 long parentCategoryId, int start, int end) 764 throws com.liferay.portal.kernel.exception.SystemException { 765 return getPersistence() 766 .findByParentCategoryId(parentCategoryId, start, end); 767 } 768 769 /** 770 * Returns an ordered range of all the asset categories where parentCategoryId = ?. 771 * 772 * <p> 773 * 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. 774 * </p> 775 * 776 * @param parentCategoryId the parent category ID 777 * @param start the lower bound of the range of asset categories 778 * @param end the upper bound of the range of asset categories (not inclusive) 779 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 780 * @return the ordered range of matching asset categories 781 * @throws SystemException if a system exception occurred 782 */ 783 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 784 long parentCategoryId, int start, int end, 785 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 786 throws com.liferay.portal.kernel.exception.SystemException { 787 return getPersistence() 788 .findByParentCategoryId(parentCategoryId, start, end, 789 orderByComparator); 790 } 791 792 /** 793 * Returns the first asset category in the ordered set where parentCategoryId = ?. 794 * 795 * @param parentCategoryId the parent category ID 796 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 797 * @return the first matching asset category 798 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 799 * @throws SystemException if a system exception occurred 800 */ 801 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First( 802 long parentCategoryId, 803 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 804 throws com.liferay.portal.kernel.exception.SystemException, 805 com.liferay.portlet.asset.NoSuchCategoryException { 806 return getPersistence() 807 .findByParentCategoryId_First(parentCategoryId, 808 orderByComparator); 809 } 810 811 /** 812 * Returns the first asset category in the ordered set where parentCategoryId = ?. 813 * 814 * @param parentCategoryId the parent category ID 815 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 816 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 817 * @throws SystemException if a system exception occurred 818 */ 819 public static com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_First( 820 long parentCategoryId, 821 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 822 throws com.liferay.portal.kernel.exception.SystemException { 823 return getPersistence() 824 .fetchByParentCategoryId_First(parentCategoryId, 825 orderByComparator); 826 } 827 828 /** 829 * Returns the last asset category in the ordered set where parentCategoryId = ?. 830 * 831 * @param parentCategoryId the parent category ID 832 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 833 * @return the last matching asset category 834 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 835 * @throws SystemException if a system exception occurred 836 */ 837 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last( 838 long parentCategoryId, 839 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 840 throws com.liferay.portal.kernel.exception.SystemException, 841 com.liferay.portlet.asset.NoSuchCategoryException { 842 return getPersistence() 843 .findByParentCategoryId_Last(parentCategoryId, 844 orderByComparator); 845 } 846 847 /** 848 * Returns the last asset category in the ordered set where parentCategoryId = ?. 849 * 850 * @param parentCategoryId the parent category ID 851 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 852 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 853 * @throws SystemException if a system exception occurred 854 */ 855 public static com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_Last( 856 long parentCategoryId, 857 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 858 throws com.liferay.portal.kernel.exception.SystemException { 859 return getPersistence() 860 .fetchByParentCategoryId_Last(parentCategoryId, 861 orderByComparator); 862 } 863 864 /** 865 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. 866 * 867 * @param categoryId the primary key of the current asset category 868 * @param parentCategoryId the parent category ID 869 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 870 * @return the previous, current, and next asset category 871 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 872 * @throws SystemException if a system exception occurred 873 */ 874 public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext( 875 long categoryId, long parentCategoryId, 876 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 877 throws com.liferay.portal.kernel.exception.SystemException, 878 com.liferay.portlet.asset.NoSuchCategoryException { 879 return getPersistence() 880 .findByParentCategoryId_PrevAndNext(categoryId, 881 parentCategoryId, orderByComparator); 882 } 883 884 /** 885 * Returns all the asset categories where vocabularyId = ?. 886 * 887 * @param vocabularyId the vocabulary ID 888 * @return the matching asset categories 889 * @throws SystemException if a system exception occurred 890 */ 891 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 892 long vocabularyId) 893 throws com.liferay.portal.kernel.exception.SystemException { 894 return getPersistence().findByVocabularyId(vocabularyId); 895 } 896 897 /** 898 * Returns a range of all the asset categories where vocabularyId = ?. 899 * 900 * <p> 901 * 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. 902 * </p> 903 * 904 * @param vocabularyId the vocabulary ID 905 * @param start the lower bound of the range of asset categories 906 * @param end the upper bound of the range of asset categories (not inclusive) 907 * @return the range of matching asset categories 908 * @throws SystemException if a system exception occurred 909 */ 910 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 911 long vocabularyId, int start, int end) 912 throws com.liferay.portal.kernel.exception.SystemException { 913 return getPersistence().findByVocabularyId(vocabularyId, start, end); 914 } 915 916 /** 917 * Returns an ordered range of all the asset categories where 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 vocabularyId the vocabulary ID 924 * @param start the lower bound of the range of asset categories 925 * @param end the upper bound of the range of asset categories (not inclusive) 926 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 927 * @return the ordered range of matching asset categories 928 * @throws SystemException if a system exception occurred 929 */ 930 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 931 long vocabularyId, int start, int end, 932 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 933 throws com.liferay.portal.kernel.exception.SystemException { 934 return getPersistence() 935 .findByVocabularyId(vocabularyId, start, end, 936 orderByComparator); 937 } 938 939 /** 940 * Returns the first asset category in the ordered set where vocabularyId = ?. 941 * 942 * @param vocabularyId the vocabulary ID 943 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 944 * @return the first matching asset category 945 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 946 * @throws SystemException if a system exception occurred 947 */ 948 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First( 949 long vocabularyId, 950 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 951 throws com.liferay.portal.kernel.exception.SystemException, 952 com.liferay.portlet.asset.NoSuchCategoryException { 953 return getPersistence() 954 .findByVocabularyId_First(vocabularyId, orderByComparator); 955 } 956 957 /** 958 * Returns the first asset category in the ordered set where vocabularyId = ?. 959 * 960 * @param vocabularyId the vocabulary ID 961 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 962 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 963 * @throws SystemException if a system exception occurred 964 */ 965 public static com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_First( 966 long vocabularyId, 967 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 968 throws com.liferay.portal.kernel.exception.SystemException { 969 return getPersistence() 970 .fetchByVocabularyId_First(vocabularyId, orderByComparator); 971 } 972 973 /** 974 * Returns the last asset category in the ordered set where vocabularyId = ?. 975 * 976 * @param vocabularyId the vocabulary ID 977 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 978 * @return the last matching asset category 979 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 980 * @throws SystemException if a system exception occurred 981 */ 982 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last( 983 long vocabularyId, 984 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 985 throws com.liferay.portal.kernel.exception.SystemException, 986 com.liferay.portlet.asset.NoSuchCategoryException { 987 return getPersistence() 988 .findByVocabularyId_Last(vocabularyId, orderByComparator); 989 } 990 991 /** 992 * Returns the last asset category in the ordered set where vocabularyId = ?. 993 * 994 * @param vocabularyId the vocabulary ID 995 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 996 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 997 * @throws SystemException if a system exception occurred 998 */ 999 public static com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_Last( 1000 long vocabularyId, 1001 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1002 throws com.liferay.portal.kernel.exception.SystemException { 1003 return getPersistence() 1004 .fetchByVocabularyId_Last(vocabularyId, orderByComparator); 1005 } 1006 1007 /** 1008 * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. 1009 * 1010 * @param categoryId the primary key of the current asset category 1011 * @param vocabularyId the vocabulary ID 1012 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1013 * @return the previous, current, and next asset category 1014 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1015 * @throws SystemException if a system exception occurred 1016 */ 1017 public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext( 1018 long categoryId, long vocabularyId, 1019 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1020 throws com.liferay.portal.kernel.exception.SystemException, 1021 com.liferay.portlet.asset.NoSuchCategoryException { 1022 return getPersistence() 1023 .findByVocabularyId_PrevAndNext(categoryId, vocabularyId, 1024 orderByComparator); 1025 } 1026 1027 /** 1028 * Returns all the asset categories where groupId = ? and vocabularyId = ?. 1029 * 1030 * @param groupId the group ID 1031 * @param vocabularyId the vocabulary ID 1032 * @return the matching asset categories 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1036 long groupId, long vocabularyId) 1037 throws com.liferay.portal.kernel.exception.SystemException { 1038 return getPersistence().findByG_V(groupId, vocabularyId); 1039 } 1040 1041 /** 1042 * Returns a range of all the asset categories where groupId = ? and vocabularyId = ?. 1043 * 1044 * <p> 1045 * 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. 1046 * </p> 1047 * 1048 * @param groupId the group ID 1049 * @param vocabularyId the vocabulary ID 1050 * @param start the lower bound of the range of asset categories 1051 * @param end the upper bound of the range of asset categories (not inclusive) 1052 * @return the range of matching asset categories 1053 * @throws SystemException if a system exception occurred 1054 */ 1055 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1056 long groupId, long vocabularyId, int start, int end) 1057 throws com.liferay.portal.kernel.exception.SystemException { 1058 return getPersistence().findByG_V(groupId, vocabularyId, start, end); 1059 } 1060 1061 /** 1062 * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?. 1063 * 1064 * <p> 1065 * 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. 1066 * </p> 1067 * 1068 * @param groupId the group ID 1069 * @param vocabularyId the vocabulary ID 1070 * @param start the lower bound of the range of asset categories 1071 * @param end the upper bound of the range of asset categories (not inclusive) 1072 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1073 * @return the ordered range of matching asset categories 1074 * @throws SystemException if a system exception occurred 1075 */ 1076 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1077 long groupId, long vocabularyId, int start, int end, 1078 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1079 throws com.liferay.portal.kernel.exception.SystemException { 1080 return getPersistence() 1081 .findByG_V(groupId, vocabularyId, start, end, 1082 orderByComparator); 1083 } 1084 1085 /** 1086 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 1087 * 1088 * @param groupId the group ID 1089 * @param vocabularyId the vocabulary ID 1090 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1091 * @return the first matching asset category 1092 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1093 * @throws SystemException if a system exception occurred 1094 */ 1095 public static com.liferay.portlet.asset.model.AssetCategory findByG_V_First( 1096 long groupId, long vocabularyId, 1097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1098 throws com.liferay.portal.kernel.exception.SystemException, 1099 com.liferay.portlet.asset.NoSuchCategoryException { 1100 return getPersistence() 1101 .findByG_V_First(groupId, vocabularyId, orderByComparator); 1102 } 1103 1104 /** 1105 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 1106 * 1107 * @param groupId the group ID 1108 * @param vocabularyId the vocabulary ID 1109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1110 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1111 * @throws SystemException if a system exception occurred 1112 */ 1113 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_V_First( 1114 long groupId, long vocabularyId, 1115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1116 throws com.liferay.portal.kernel.exception.SystemException { 1117 return getPersistence() 1118 .fetchByG_V_First(groupId, vocabularyId, orderByComparator); 1119 } 1120 1121 /** 1122 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 1123 * 1124 * @param groupId the group ID 1125 * @param vocabularyId the vocabulary ID 1126 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1127 * @return the last matching asset category 1128 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1129 * @throws SystemException if a system exception occurred 1130 */ 1131 public static com.liferay.portlet.asset.model.AssetCategory findByG_V_Last( 1132 long groupId, long vocabularyId, 1133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1134 throws com.liferay.portal.kernel.exception.SystemException, 1135 com.liferay.portlet.asset.NoSuchCategoryException { 1136 return getPersistence() 1137 .findByG_V_Last(groupId, vocabularyId, orderByComparator); 1138 } 1139 1140 /** 1141 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 1142 * 1143 * @param groupId the group ID 1144 * @param vocabularyId the vocabulary ID 1145 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1146 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1147 * @throws SystemException if a system exception occurred 1148 */ 1149 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_V_Last( 1150 long groupId, long vocabularyId, 1151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1152 throws com.liferay.portal.kernel.exception.SystemException { 1153 return getPersistence() 1154 .fetchByG_V_Last(groupId, vocabularyId, orderByComparator); 1155 } 1156 1157 /** 1158 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?. 1159 * 1160 * @param categoryId the primary key of the current asset category 1161 * @param groupId the group ID 1162 * @param vocabularyId the vocabulary ID 1163 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1164 * @return the previous, current, and next asset category 1165 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1166 * @throws SystemException if a system exception occurred 1167 */ 1168 public static com.liferay.portlet.asset.model.AssetCategory[] findByG_V_PrevAndNext( 1169 long categoryId, long groupId, long vocabularyId, 1170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1171 throws com.liferay.portal.kernel.exception.SystemException, 1172 com.liferay.portlet.asset.NoSuchCategoryException { 1173 return getPersistence() 1174 .findByG_V_PrevAndNext(categoryId, groupId, vocabularyId, 1175 orderByComparator); 1176 } 1177 1178 /** 1179 * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1180 * 1181 * @param groupId the group ID 1182 * @param vocabularyId the vocabulary ID 1183 * @return the matching asset categories that the user has permission to view 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1187 long groupId, long vocabularyId) 1188 throws com.liferay.portal.kernel.exception.SystemException { 1189 return getPersistence().filterFindByG_V(groupId, vocabularyId); 1190 } 1191 1192 /** 1193 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1194 * 1195 * <p> 1196 * 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. 1197 * </p> 1198 * 1199 * @param groupId the group ID 1200 * @param vocabularyId the vocabulary ID 1201 * @param start the lower bound of the range of asset categories 1202 * @param end the upper bound of the range of asset categories (not inclusive) 1203 * @return the range of matching asset categories that the user has permission to view 1204 * @throws SystemException if a system exception occurred 1205 */ 1206 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1207 long groupId, long vocabularyId, int start, int end) 1208 throws com.liferay.portal.kernel.exception.SystemException { 1209 return getPersistence() 1210 .filterFindByG_V(groupId, vocabularyId, start, end); 1211 } 1212 1213 /** 1214 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?. 1215 * 1216 * <p> 1217 * 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. 1218 * </p> 1219 * 1220 * @param groupId the group ID 1221 * @param vocabularyId the vocabulary ID 1222 * @param start the lower bound of the range of asset categories 1223 * @param end the upper bound of the range of asset categories (not inclusive) 1224 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1225 * @return the ordered range of matching asset categories that the user has permission to view 1226 * @throws SystemException if a system exception occurred 1227 */ 1228 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1229 long groupId, long vocabularyId, int start, int end, 1230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1231 throws com.liferay.portal.kernel.exception.SystemException { 1232 return getPersistence() 1233 .filterFindByG_V(groupId, vocabularyId, start, end, 1234 orderByComparator); 1235 } 1236 1237 /** 1238 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1239 * 1240 * @param categoryId the primary key of the current asset category 1241 * @param groupId the group ID 1242 * @param vocabularyId the vocabulary ID 1243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1244 * @return the previous, current, and next asset category 1245 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_V_PrevAndNext( 1249 long categoryId, long groupId, long vocabularyId, 1250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1251 throws com.liferay.portal.kernel.exception.SystemException, 1252 com.liferay.portlet.asset.NoSuchCategoryException { 1253 return getPersistence() 1254 .filterFindByG_V_PrevAndNext(categoryId, groupId, 1255 vocabularyId, orderByComparator); 1256 } 1257 1258 /** 1259 * Returns all the asset categories where parentCategoryId = ? and name = ?. 1260 * 1261 * @param parentCategoryId the parent category ID 1262 * @param name the name 1263 * @return the matching asset categories 1264 * @throws SystemException if a system exception occurred 1265 */ 1266 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1267 long parentCategoryId, java.lang.String name) 1268 throws com.liferay.portal.kernel.exception.SystemException { 1269 return getPersistence().findByP_N(parentCategoryId, name); 1270 } 1271 1272 /** 1273 * Returns a range of all the asset categories where parentCategoryId = ? and name = ?. 1274 * 1275 * <p> 1276 * 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. 1277 * </p> 1278 * 1279 * @param parentCategoryId the parent category ID 1280 * @param name the name 1281 * @param start the lower bound of the range of asset categories 1282 * @param end the upper bound of the range of asset categories (not inclusive) 1283 * @return the range of matching asset categories 1284 * @throws SystemException if a system exception occurred 1285 */ 1286 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1287 long parentCategoryId, java.lang.String name, int start, int end) 1288 throws com.liferay.portal.kernel.exception.SystemException { 1289 return getPersistence().findByP_N(parentCategoryId, name, start, end); 1290 } 1291 1292 /** 1293 * Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?. 1294 * 1295 * <p> 1296 * 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. 1297 * </p> 1298 * 1299 * @param parentCategoryId the parent category ID 1300 * @param name the name 1301 * @param start the lower bound of the range of asset categories 1302 * @param end the upper bound of the range of asset categories (not inclusive) 1303 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1304 * @return the ordered range of matching asset categories 1305 * @throws SystemException if a system exception occurred 1306 */ 1307 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1308 long parentCategoryId, java.lang.String name, int start, int end, 1309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1310 throws com.liferay.portal.kernel.exception.SystemException { 1311 return getPersistence() 1312 .findByP_N(parentCategoryId, name, start, end, 1313 orderByComparator); 1314 } 1315 1316 /** 1317 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 1318 * 1319 * @param parentCategoryId the parent category ID 1320 * @param name the name 1321 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1322 * @return the first matching asset category 1323 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1324 * @throws SystemException if a system exception occurred 1325 */ 1326 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First( 1327 long parentCategoryId, java.lang.String name, 1328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1329 throws com.liferay.portal.kernel.exception.SystemException, 1330 com.liferay.portlet.asset.NoSuchCategoryException { 1331 return getPersistence() 1332 .findByP_N_First(parentCategoryId, name, orderByComparator); 1333 } 1334 1335 /** 1336 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 1337 * 1338 * @param parentCategoryId the parent category ID 1339 * @param name the name 1340 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1341 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1342 * @throws SystemException if a system exception occurred 1343 */ 1344 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_First( 1345 long parentCategoryId, java.lang.String name, 1346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1347 throws com.liferay.portal.kernel.exception.SystemException { 1348 return getPersistence() 1349 .fetchByP_N_First(parentCategoryId, name, orderByComparator); 1350 } 1351 1352 /** 1353 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 1354 * 1355 * @param parentCategoryId the parent category ID 1356 * @param name the name 1357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1358 * @return the last matching asset category 1359 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1360 * @throws SystemException if a system exception occurred 1361 */ 1362 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last( 1363 long parentCategoryId, java.lang.String name, 1364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1365 throws com.liferay.portal.kernel.exception.SystemException, 1366 com.liferay.portlet.asset.NoSuchCategoryException { 1367 return getPersistence() 1368 .findByP_N_Last(parentCategoryId, name, orderByComparator); 1369 } 1370 1371 /** 1372 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 1373 * 1374 * @param parentCategoryId the parent category ID 1375 * @param name the name 1376 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1377 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_Last( 1381 long parentCategoryId, java.lang.String name, 1382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1383 throws com.liferay.portal.kernel.exception.SystemException { 1384 return getPersistence() 1385 .fetchByP_N_Last(parentCategoryId, name, orderByComparator); 1386 } 1387 1388 /** 1389 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. 1390 * 1391 * @param categoryId the primary key of the current asset category 1392 * @param parentCategoryId the parent category ID 1393 * @param name the name 1394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1395 * @return the previous, current, and next asset category 1396 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1397 * @throws SystemException if a system exception occurred 1398 */ 1399 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext( 1400 long categoryId, long parentCategoryId, java.lang.String name, 1401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1402 throws com.liferay.portal.kernel.exception.SystemException, 1403 com.liferay.portlet.asset.NoSuchCategoryException { 1404 return getPersistence() 1405 .findByP_N_PrevAndNext(categoryId, parentCategoryId, name, 1406 orderByComparator); 1407 } 1408 1409 /** 1410 * Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1411 * 1412 * @param parentCategoryId the parent category ID 1413 * @param vocabularyId the vocabulary ID 1414 * @return the matching asset categories 1415 * @throws SystemException if a system exception occurred 1416 */ 1417 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1418 long parentCategoryId, long vocabularyId) 1419 throws com.liferay.portal.kernel.exception.SystemException { 1420 return getPersistence().findByP_V(parentCategoryId, vocabularyId); 1421 } 1422 1423 /** 1424 * Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1425 * 1426 * <p> 1427 * 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. 1428 * </p> 1429 * 1430 * @param parentCategoryId the parent category ID 1431 * @param vocabularyId the vocabulary ID 1432 * @param start the lower bound of the range of asset categories 1433 * @param end the upper bound of the range of asset categories (not inclusive) 1434 * @return the range of matching asset categories 1435 * @throws SystemException if a system exception occurred 1436 */ 1437 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1438 long parentCategoryId, long vocabularyId, int start, int end) 1439 throws com.liferay.portal.kernel.exception.SystemException { 1440 return getPersistence() 1441 .findByP_V(parentCategoryId, vocabularyId, start, end); 1442 } 1443 1444 /** 1445 * Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1446 * 1447 * <p> 1448 * 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. 1449 * </p> 1450 * 1451 * @param parentCategoryId the parent category ID 1452 * @param vocabularyId the vocabulary ID 1453 * @param start the lower bound of the range of asset categories 1454 * @param end the upper bound of the range of asset categories (not inclusive) 1455 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1456 * @return the ordered range of matching asset categories 1457 * @throws SystemException if a system exception occurred 1458 */ 1459 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1460 long parentCategoryId, long vocabularyId, int start, int end, 1461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1462 throws com.liferay.portal.kernel.exception.SystemException { 1463 return getPersistence() 1464 .findByP_V(parentCategoryId, vocabularyId, start, end, 1465 orderByComparator); 1466 } 1467 1468 /** 1469 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1470 * 1471 * @param parentCategoryId the parent category ID 1472 * @param vocabularyId the vocabulary ID 1473 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1474 * @return the first matching asset category 1475 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1476 * @throws SystemException if a system exception occurred 1477 */ 1478 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_First( 1479 long parentCategoryId, long vocabularyId, 1480 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1481 throws com.liferay.portal.kernel.exception.SystemException, 1482 com.liferay.portlet.asset.NoSuchCategoryException { 1483 return getPersistence() 1484 .findByP_V_First(parentCategoryId, vocabularyId, 1485 orderByComparator); 1486 } 1487 1488 /** 1489 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1490 * 1491 * @param parentCategoryId the parent category ID 1492 * @param vocabularyId the vocabulary ID 1493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1494 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1495 * @throws SystemException if a system exception occurred 1496 */ 1497 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_V_First( 1498 long parentCategoryId, long vocabularyId, 1499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1500 throws com.liferay.portal.kernel.exception.SystemException { 1501 return getPersistence() 1502 .fetchByP_V_First(parentCategoryId, vocabularyId, 1503 orderByComparator); 1504 } 1505 1506 /** 1507 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1508 * 1509 * @param parentCategoryId the parent category ID 1510 * @param vocabularyId the vocabulary ID 1511 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1512 * @return the last matching asset category 1513 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1514 * @throws SystemException if a system exception occurred 1515 */ 1516 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last( 1517 long parentCategoryId, long vocabularyId, 1518 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1519 throws com.liferay.portal.kernel.exception.SystemException, 1520 com.liferay.portlet.asset.NoSuchCategoryException { 1521 return getPersistence() 1522 .findByP_V_Last(parentCategoryId, vocabularyId, 1523 orderByComparator); 1524 } 1525 1526 /** 1527 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1528 * 1529 * @param parentCategoryId the parent category ID 1530 * @param vocabularyId the vocabulary ID 1531 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1532 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1533 * @throws SystemException if a system exception occurred 1534 */ 1535 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_V_Last( 1536 long parentCategoryId, long vocabularyId, 1537 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1538 throws com.liferay.portal.kernel.exception.SystemException { 1539 return getPersistence() 1540 .fetchByP_V_Last(parentCategoryId, vocabularyId, 1541 orderByComparator); 1542 } 1543 1544 /** 1545 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1546 * 1547 * @param categoryId the primary key of the current asset category 1548 * @param parentCategoryId the parent category ID 1549 * @param vocabularyId the vocabulary ID 1550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1551 * @return the previous, current, and next asset category 1552 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1553 * @throws SystemException if a system exception occurred 1554 */ 1555 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext( 1556 long categoryId, long parentCategoryId, long vocabularyId, 1557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1558 throws com.liferay.portal.kernel.exception.SystemException, 1559 com.liferay.portlet.asset.NoSuchCategoryException { 1560 return getPersistence() 1561 .findByP_V_PrevAndNext(categoryId, parentCategoryId, 1562 vocabularyId, orderByComparator); 1563 } 1564 1565 /** 1566 * Returns all the asset categories where name = ? and vocabularyId = ?. 1567 * 1568 * @param name the name 1569 * @param vocabularyId the vocabulary ID 1570 * @return the matching asset categories 1571 * @throws SystemException if a system exception occurred 1572 */ 1573 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1574 java.lang.String name, long vocabularyId) 1575 throws com.liferay.portal.kernel.exception.SystemException { 1576 return getPersistence().findByN_V(name, vocabularyId); 1577 } 1578 1579 /** 1580 * Returns a range of all the asset categories where name = ? and vocabularyId = ?. 1581 * 1582 * <p> 1583 * 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. 1584 * </p> 1585 * 1586 * @param name the name 1587 * @param vocabularyId the vocabulary ID 1588 * @param start the lower bound of the range of asset categories 1589 * @param end the upper bound of the range of asset categories (not inclusive) 1590 * @return the range of matching asset categories 1591 * @throws SystemException if a system exception occurred 1592 */ 1593 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1594 java.lang.String name, long vocabularyId, int start, int end) 1595 throws com.liferay.portal.kernel.exception.SystemException { 1596 return getPersistence().findByN_V(name, vocabularyId, start, end); 1597 } 1598 1599 /** 1600 * Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?. 1601 * 1602 * <p> 1603 * 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. 1604 * </p> 1605 * 1606 * @param name the name 1607 * @param vocabularyId the vocabulary ID 1608 * @param start the lower bound of the range of asset categories 1609 * @param end the upper bound of the range of asset categories (not inclusive) 1610 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1611 * @return the ordered range of matching asset categories 1612 * @throws SystemException if a system exception occurred 1613 */ 1614 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1615 java.lang.String name, long vocabularyId, int start, int end, 1616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1617 throws com.liferay.portal.kernel.exception.SystemException { 1618 return getPersistence() 1619 .findByN_V(name, vocabularyId, start, end, orderByComparator); 1620 } 1621 1622 /** 1623 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1624 * 1625 * @param name the name 1626 * @param vocabularyId the vocabulary ID 1627 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1628 * @return the first matching asset category 1629 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1630 * @throws SystemException if a system exception occurred 1631 */ 1632 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First( 1633 java.lang.String name, long vocabularyId, 1634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1635 throws com.liferay.portal.kernel.exception.SystemException, 1636 com.liferay.portlet.asset.NoSuchCategoryException { 1637 return getPersistence() 1638 .findByN_V_First(name, vocabularyId, orderByComparator); 1639 } 1640 1641 /** 1642 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1643 * 1644 * @param name the name 1645 * @param vocabularyId the vocabulary ID 1646 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1647 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1648 * @throws SystemException if a system exception occurred 1649 */ 1650 public static com.liferay.portlet.asset.model.AssetCategory fetchByN_V_First( 1651 java.lang.String name, long vocabularyId, 1652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1653 throws com.liferay.portal.kernel.exception.SystemException { 1654 return getPersistence() 1655 .fetchByN_V_First(name, vocabularyId, orderByComparator); 1656 } 1657 1658 /** 1659 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1660 * 1661 * @param name the name 1662 * @param vocabularyId the vocabulary ID 1663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1664 * @return the last matching asset category 1665 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1666 * @throws SystemException if a system exception occurred 1667 */ 1668 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last( 1669 java.lang.String name, long vocabularyId, 1670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1671 throws com.liferay.portal.kernel.exception.SystemException, 1672 com.liferay.portlet.asset.NoSuchCategoryException { 1673 return getPersistence() 1674 .findByN_V_Last(name, vocabularyId, orderByComparator); 1675 } 1676 1677 /** 1678 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1679 * 1680 * @param name the name 1681 * @param vocabularyId the vocabulary ID 1682 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1683 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1684 * @throws SystemException if a system exception occurred 1685 */ 1686 public static com.liferay.portlet.asset.model.AssetCategory fetchByN_V_Last( 1687 java.lang.String name, long vocabularyId, 1688 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1689 throws com.liferay.portal.kernel.exception.SystemException { 1690 return getPersistence() 1691 .fetchByN_V_Last(name, vocabularyId, orderByComparator); 1692 } 1693 1694 /** 1695 * Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. 1696 * 1697 * @param categoryId the primary key of the current asset category 1698 * @param name the name 1699 * @param vocabularyId the vocabulary ID 1700 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1701 * @return the previous, current, and next asset category 1702 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1703 * @throws SystemException if a system exception occurred 1704 */ 1705 public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext( 1706 long categoryId, java.lang.String name, long vocabularyId, 1707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1708 throws com.liferay.portal.kernel.exception.SystemException, 1709 com.liferay.portlet.asset.NoSuchCategoryException { 1710 return getPersistence() 1711 .findByN_V_PrevAndNext(categoryId, name, vocabularyId, 1712 orderByComparator); 1713 } 1714 1715 /** 1716 * Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1717 * 1718 * @param groupId the group ID 1719 * @param parentCategoryId the parent category ID 1720 * @param name the name 1721 * @return the matching asset categories 1722 * @throws SystemException if a system exception occurred 1723 */ 1724 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N( 1725 long groupId, long parentCategoryId, java.lang.String name) 1726 throws com.liferay.portal.kernel.exception.SystemException { 1727 return getPersistence().findByG_P_N(groupId, parentCategoryId, name); 1728 } 1729 1730 /** 1731 * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1732 * 1733 * <p> 1734 * 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. 1735 * </p> 1736 * 1737 * @param groupId the group ID 1738 * @param parentCategoryId the parent category ID 1739 * @param name the name 1740 * @param start the lower bound of the range of asset categories 1741 * @param end the upper bound of the range of asset categories (not inclusive) 1742 * @return the range of matching asset categories 1743 * @throws SystemException if a system exception occurred 1744 */ 1745 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N( 1746 long groupId, long parentCategoryId, java.lang.String name, int start, 1747 int end) throws com.liferay.portal.kernel.exception.SystemException { 1748 return getPersistence() 1749 .findByG_P_N(groupId, parentCategoryId, name, start, end); 1750 } 1751 1752 /** 1753 * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1754 * 1755 * <p> 1756 * 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. 1757 * </p> 1758 * 1759 * @param groupId the group ID 1760 * @param parentCategoryId the parent category ID 1761 * @param name the name 1762 * @param start the lower bound of the range of asset categories 1763 * @param end the upper bound of the range of asset categories (not inclusive) 1764 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1765 * @return the ordered range of matching asset categories 1766 * @throws SystemException if a system exception occurred 1767 */ 1768 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N( 1769 long groupId, long parentCategoryId, java.lang.String name, int start, 1770 int end, 1771 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1772 throws com.liferay.portal.kernel.exception.SystemException { 1773 return getPersistence() 1774 .findByG_P_N(groupId, parentCategoryId, name, start, end, 1775 orderByComparator); 1776 } 1777 1778 /** 1779 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1780 * 1781 * @param groupId the group ID 1782 * @param parentCategoryId the parent category ID 1783 * @param name the name 1784 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1785 * @return the first matching asset category 1786 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1787 * @throws SystemException if a system exception occurred 1788 */ 1789 public static com.liferay.portlet.asset.model.AssetCategory findByG_P_N_First( 1790 long groupId, long parentCategoryId, java.lang.String name, 1791 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1792 throws com.liferay.portal.kernel.exception.SystemException, 1793 com.liferay.portlet.asset.NoSuchCategoryException { 1794 return getPersistence() 1795 .findByG_P_N_First(groupId, parentCategoryId, name, 1796 orderByComparator); 1797 } 1798 1799 /** 1800 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1801 * 1802 * @param groupId the group ID 1803 * @param parentCategoryId the parent category ID 1804 * @param name the name 1805 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1806 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1807 * @throws SystemException if a system exception occurred 1808 */ 1809 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_First( 1810 long groupId, long parentCategoryId, java.lang.String name, 1811 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1812 throws com.liferay.portal.kernel.exception.SystemException { 1813 return getPersistence() 1814 .fetchByG_P_N_First(groupId, parentCategoryId, name, 1815 orderByComparator); 1816 } 1817 1818 /** 1819 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1820 * 1821 * @param groupId the group ID 1822 * @param parentCategoryId the parent category ID 1823 * @param name the name 1824 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1825 * @return the last matching asset category 1826 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1827 * @throws SystemException if a system exception occurred 1828 */ 1829 public static com.liferay.portlet.asset.model.AssetCategory findByG_P_N_Last( 1830 long groupId, long parentCategoryId, java.lang.String name, 1831 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1832 throws com.liferay.portal.kernel.exception.SystemException, 1833 com.liferay.portlet.asset.NoSuchCategoryException { 1834 return getPersistence() 1835 .findByG_P_N_Last(groupId, parentCategoryId, name, 1836 orderByComparator); 1837 } 1838 1839 /** 1840 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1841 * 1842 * @param groupId the group ID 1843 * @param parentCategoryId the parent category ID 1844 * @param name the name 1845 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1846 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1847 * @throws SystemException if a system exception occurred 1848 */ 1849 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_Last( 1850 long groupId, long parentCategoryId, java.lang.String name, 1851 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1852 throws com.liferay.portal.kernel.exception.SystemException { 1853 return getPersistence() 1854 .fetchByG_P_N_Last(groupId, parentCategoryId, name, 1855 orderByComparator); 1856 } 1857 1858 /** 1859 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1860 * 1861 * @param categoryId the primary key of the current asset category 1862 * @param groupId the group ID 1863 * @param parentCategoryId the parent category ID 1864 * @param name the name 1865 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1866 * @return the previous, current, and next asset category 1867 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1868 * @throws SystemException if a system exception occurred 1869 */ 1870 public static com.liferay.portlet.asset.model.AssetCategory[] findByG_P_N_PrevAndNext( 1871 long categoryId, long groupId, long parentCategoryId, 1872 java.lang.String name, 1873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1874 throws com.liferay.portal.kernel.exception.SystemException, 1875 com.liferay.portlet.asset.NoSuchCategoryException { 1876 return getPersistence() 1877 .findByG_P_N_PrevAndNext(categoryId, groupId, 1878 parentCategoryId, name, orderByComparator); 1879 } 1880 1881 /** 1882 * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 1883 * 1884 * @param groupId the group ID 1885 * @param parentCategoryId the parent category ID 1886 * @param name the name 1887 * @return the matching asset categories that the user has permission to view 1888 * @throws SystemException if a system exception occurred 1889 */ 1890 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N( 1891 long groupId, long parentCategoryId, java.lang.String name) 1892 throws com.liferay.portal.kernel.exception.SystemException { 1893 return getPersistence() 1894 .filterFindByG_P_N(groupId, parentCategoryId, name); 1895 } 1896 1897 /** 1898 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 1899 * 1900 * <p> 1901 * 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. 1902 * </p> 1903 * 1904 * @param groupId the group ID 1905 * @param parentCategoryId the parent category ID 1906 * @param name the name 1907 * @param start the lower bound of the range of asset categories 1908 * @param end the upper bound of the range of asset categories (not inclusive) 1909 * @return the range of matching asset categories that the user has permission to view 1910 * @throws SystemException if a system exception occurred 1911 */ 1912 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N( 1913 long groupId, long parentCategoryId, java.lang.String name, int start, 1914 int end) throws com.liferay.portal.kernel.exception.SystemException { 1915 return getPersistence() 1916 .filterFindByG_P_N(groupId, parentCategoryId, name, start, 1917 end); 1918 } 1919 1920 /** 1921 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ?. 1922 * 1923 * <p> 1924 * 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. 1925 * </p> 1926 * 1927 * @param groupId the group ID 1928 * @param parentCategoryId the parent category ID 1929 * @param name the name 1930 * @param start the lower bound of the range of asset categories 1931 * @param end the upper bound of the range of asset categories (not inclusive) 1932 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1933 * @return the ordered range of matching asset categories that the user has permission to view 1934 * @throws SystemException if a system exception occurred 1935 */ 1936 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N( 1937 long groupId, long parentCategoryId, java.lang.String name, int start, 1938 int end, 1939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1940 throws com.liferay.portal.kernel.exception.SystemException { 1941 return getPersistence() 1942 .filterFindByG_P_N(groupId, parentCategoryId, name, start, 1943 end, orderByComparator); 1944 } 1945 1946 /** 1947 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 1948 * 1949 * @param categoryId the primary key of the current asset category 1950 * @param groupId the group ID 1951 * @param parentCategoryId the parent category ID 1952 * @param name the name 1953 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1954 * @return the previous, current, and next asset category 1955 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1956 * @throws SystemException if a system exception occurred 1957 */ 1958 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_P_N_PrevAndNext( 1959 long categoryId, long groupId, long parentCategoryId, 1960 java.lang.String name, 1961 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1962 throws com.liferay.portal.kernel.exception.SystemException, 1963 com.liferay.portlet.asset.NoSuchCategoryException { 1964 return getPersistence() 1965 .filterFindByG_P_N_PrevAndNext(categoryId, groupId, 1966 parentCategoryId, name, orderByComparator); 1967 } 1968 1969 /** 1970 * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 1971 * 1972 * @param parentCategoryId the parent category ID 1973 * @param name the name 1974 * @param vocabularyId the vocabulary ID 1975 * @return the matching asset category 1976 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1977 * @throws SystemException if a system exception occurred 1978 */ 1979 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_V( 1980 long parentCategoryId, java.lang.String name, long vocabularyId) 1981 throws com.liferay.portal.kernel.exception.SystemException, 1982 com.liferay.portlet.asset.NoSuchCategoryException { 1983 return getPersistence().findByP_N_V(parentCategoryId, name, vocabularyId); 1984 } 1985 1986 /** 1987 * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1988 * 1989 * @param parentCategoryId the parent category ID 1990 * @param name the name 1991 * @param vocabularyId the vocabulary ID 1992 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 1993 * @throws SystemException if a system exception occurred 1994 */ 1995 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 1996 long parentCategoryId, java.lang.String name, long vocabularyId) 1997 throws com.liferay.portal.kernel.exception.SystemException { 1998 return getPersistence() 1999 .fetchByP_N_V(parentCategoryId, name, vocabularyId); 2000 } 2001 2002 /** 2003 * Returns 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. 2004 * 2005 * @param parentCategoryId the parent category ID 2006 * @param name the name 2007 * @param vocabularyId the vocabulary ID 2008 * @param retrieveFromCache whether to use the finder cache 2009 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 2010 * @throws SystemException if a system exception occurred 2011 */ 2012 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 2013 long parentCategoryId, java.lang.String name, long vocabularyId, 2014 boolean retrieveFromCache) 2015 throws com.liferay.portal.kernel.exception.SystemException { 2016 return getPersistence() 2017 .fetchByP_N_V(parentCategoryId, name, vocabularyId, 2018 retrieveFromCache); 2019 } 2020 2021 /** 2022 * Returns all the asset categories. 2023 * 2024 * @return the asset categories 2025 * @throws SystemException if a system exception occurred 2026 */ 2027 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll() 2028 throws com.liferay.portal.kernel.exception.SystemException { 2029 return getPersistence().findAll(); 2030 } 2031 2032 /** 2033 * Returns a range of all the asset categories. 2034 * 2035 * <p> 2036 * 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. 2037 * </p> 2038 * 2039 * @param start the lower bound of the range of asset categories 2040 * @param end the upper bound of the range of asset categories (not inclusive) 2041 * @return the range of asset categories 2042 * @throws SystemException if a system exception occurred 2043 */ 2044 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 2045 int start, int end) 2046 throws com.liferay.portal.kernel.exception.SystemException { 2047 return getPersistence().findAll(start, end); 2048 } 2049 2050 /** 2051 * Returns an ordered range of all the asset categories. 2052 * 2053 * <p> 2054 * 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. 2055 * </p> 2056 * 2057 * @param start the lower bound of the range of asset categories 2058 * @param end the upper bound of the range of asset categories (not inclusive) 2059 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2060 * @return the ordered range of asset categories 2061 * @throws SystemException if a system exception occurred 2062 */ 2063 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 2064 int start, int end, 2065 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2066 throws com.liferay.portal.kernel.exception.SystemException { 2067 return getPersistence().findAll(start, end, orderByComparator); 2068 } 2069 2070 /** 2071 * Removes all the asset categories where uuid = ? from the database. 2072 * 2073 * @param uuid the uuid 2074 * @throws SystemException if a system exception occurred 2075 */ 2076 public static void removeByUuid(java.lang.String uuid) 2077 throws com.liferay.portal.kernel.exception.SystemException { 2078 getPersistence().removeByUuid(uuid); 2079 } 2080 2081 /** 2082 * Removes the asset category where uuid = ? and groupId = ? from the database. 2083 * 2084 * @param uuid the uuid 2085 * @param groupId the group ID 2086 * @return the asset category that was removed 2087 * @throws SystemException if a system exception occurred 2088 */ 2089 public static com.liferay.portlet.asset.model.AssetCategory removeByUUID_G( 2090 java.lang.String uuid, long groupId) 2091 throws com.liferay.portal.kernel.exception.SystemException, 2092 com.liferay.portlet.asset.NoSuchCategoryException { 2093 return getPersistence().removeByUUID_G(uuid, groupId); 2094 } 2095 2096 /** 2097 * Removes all the asset categories where uuid = ? and companyId = ? from the database. 2098 * 2099 * @param uuid the uuid 2100 * @param companyId the company ID 2101 * @throws SystemException if a system exception occurred 2102 */ 2103 public static void removeByUuid_C(java.lang.String uuid, long companyId) 2104 throws com.liferay.portal.kernel.exception.SystemException { 2105 getPersistence().removeByUuid_C(uuid, companyId); 2106 } 2107 2108 /** 2109 * Removes all the asset categories where groupId = ? from the database. 2110 * 2111 * @param groupId the group ID 2112 * @throws SystemException if a system exception occurred 2113 */ 2114 public static void removeByGroupId(long groupId) 2115 throws com.liferay.portal.kernel.exception.SystemException { 2116 getPersistence().removeByGroupId(groupId); 2117 } 2118 2119 /** 2120 * Removes all the asset categories where parentCategoryId = ? from the database. 2121 * 2122 * @param parentCategoryId the parent category ID 2123 * @throws SystemException if a system exception occurred 2124 */ 2125 public static void removeByParentCategoryId(long parentCategoryId) 2126 throws com.liferay.portal.kernel.exception.SystemException { 2127 getPersistence().removeByParentCategoryId(parentCategoryId); 2128 } 2129 2130 /** 2131 * Removes all the asset categories where vocabularyId = ? from the database. 2132 * 2133 * @param vocabularyId the vocabulary ID 2134 * @throws SystemException if a system exception occurred 2135 */ 2136 public static void removeByVocabularyId(long vocabularyId) 2137 throws com.liferay.portal.kernel.exception.SystemException { 2138 getPersistence().removeByVocabularyId(vocabularyId); 2139 } 2140 2141 /** 2142 * Removes all the asset categories where groupId = ? and vocabularyId = ? from the database. 2143 * 2144 * @param groupId the group ID 2145 * @param vocabularyId the vocabulary ID 2146 * @throws SystemException if a system exception occurred 2147 */ 2148 public static void removeByG_V(long groupId, long vocabularyId) 2149 throws com.liferay.portal.kernel.exception.SystemException { 2150 getPersistence().removeByG_V(groupId, vocabularyId); 2151 } 2152 2153 /** 2154 * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. 2155 * 2156 * @param parentCategoryId the parent category ID 2157 * @param name the name 2158 * @throws SystemException if a system exception occurred 2159 */ 2160 public static void removeByP_N(long parentCategoryId, java.lang.String name) 2161 throws com.liferay.portal.kernel.exception.SystemException { 2162 getPersistence().removeByP_N(parentCategoryId, name); 2163 } 2164 2165 /** 2166 * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. 2167 * 2168 * @param parentCategoryId the parent category ID 2169 * @param vocabularyId the vocabulary ID 2170 * @throws SystemException if a system exception occurred 2171 */ 2172 public static void removeByP_V(long parentCategoryId, long vocabularyId) 2173 throws com.liferay.portal.kernel.exception.SystemException { 2174 getPersistence().removeByP_V(parentCategoryId, vocabularyId); 2175 } 2176 2177 /** 2178 * Removes all the asset categories where name = ? and vocabularyId = ? from the database. 2179 * 2180 * @param name the name 2181 * @param vocabularyId the vocabulary ID 2182 * @throws SystemException if a system exception occurred 2183 */ 2184 public static void removeByN_V(java.lang.String name, long vocabularyId) 2185 throws com.liferay.portal.kernel.exception.SystemException { 2186 getPersistence().removeByN_V(name, vocabularyId); 2187 } 2188 2189 /** 2190 * Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? from the database. 2191 * 2192 * @param groupId the group ID 2193 * @param parentCategoryId the parent category ID 2194 * @param name the name 2195 * @throws SystemException if a system exception occurred 2196 */ 2197 public static void removeByG_P_N(long groupId, long parentCategoryId, 2198 java.lang.String name) 2199 throws com.liferay.portal.kernel.exception.SystemException { 2200 getPersistence().removeByG_P_N(groupId, parentCategoryId, name); 2201 } 2202 2203 /** 2204 * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 2205 * 2206 * @param parentCategoryId the parent category ID 2207 * @param name the name 2208 * @param vocabularyId the vocabulary ID 2209 * @return the asset category that was removed 2210 * @throws SystemException if a system exception occurred 2211 */ 2212 public static com.liferay.portlet.asset.model.AssetCategory removeByP_N_V( 2213 long parentCategoryId, java.lang.String name, long vocabularyId) 2214 throws com.liferay.portal.kernel.exception.SystemException, 2215 com.liferay.portlet.asset.NoSuchCategoryException { 2216 return getPersistence() 2217 .removeByP_N_V(parentCategoryId, name, vocabularyId); 2218 } 2219 2220 /** 2221 * Removes all the asset categories from the database. 2222 * 2223 * @throws SystemException if a system exception occurred 2224 */ 2225 public static void removeAll() 2226 throws com.liferay.portal.kernel.exception.SystemException { 2227 getPersistence().removeAll(); 2228 } 2229 2230 /** 2231 * Returns the number of asset categories where uuid = ?. 2232 * 2233 * @param uuid the uuid 2234 * @return the number of matching asset categories 2235 * @throws SystemException if a system exception occurred 2236 */ 2237 public static int countByUuid(java.lang.String uuid) 2238 throws com.liferay.portal.kernel.exception.SystemException { 2239 return getPersistence().countByUuid(uuid); 2240 } 2241 2242 /** 2243 * Returns the number of asset categories where uuid = ? and groupId = ?. 2244 * 2245 * @param uuid the uuid 2246 * @param groupId the group ID 2247 * @return the number of matching asset categories 2248 * @throws SystemException if a system exception occurred 2249 */ 2250 public static int countByUUID_G(java.lang.String uuid, long groupId) 2251 throws com.liferay.portal.kernel.exception.SystemException { 2252 return getPersistence().countByUUID_G(uuid, groupId); 2253 } 2254 2255 /** 2256 * Returns the number of asset categories where uuid = ? and companyId = ?. 2257 * 2258 * @param uuid the uuid 2259 * @param companyId the company ID 2260 * @return the number of matching asset categories 2261 * @throws SystemException if a system exception occurred 2262 */ 2263 public static int countByUuid_C(java.lang.String uuid, long companyId) 2264 throws com.liferay.portal.kernel.exception.SystemException { 2265 return getPersistence().countByUuid_C(uuid, companyId); 2266 } 2267 2268 /** 2269 * Returns the number of asset categories where groupId = ?. 2270 * 2271 * @param groupId the group ID 2272 * @return the number of matching asset categories 2273 * @throws SystemException if a system exception occurred 2274 */ 2275 public static int countByGroupId(long groupId) 2276 throws com.liferay.portal.kernel.exception.SystemException { 2277 return getPersistence().countByGroupId(groupId); 2278 } 2279 2280 /** 2281 * Returns the number of asset categories that the user has permission to view where groupId = ?. 2282 * 2283 * @param groupId the group ID 2284 * @return the number of matching asset categories that the user has permission to view 2285 * @throws SystemException if a system exception occurred 2286 */ 2287 public static int filterCountByGroupId(long groupId) 2288 throws com.liferay.portal.kernel.exception.SystemException { 2289 return getPersistence().filterCountByGroupId(groupId); 2290 } 2291 2292 /** 2293 * Returns the number of asset categories where parentCategoryId = ?. 2294 * 2295 * @param parentCategoryId the parent category ID 2296 * @return the number of matching asset categories 2297 * @throws SystemException if a system exception occurred 2298 */ 2299 public static int countByParentCategoryId(long parentCategoryId) 2300 throws com.liferay.portal.kernel.exception.SystemException { 2301 return getPersistence().countByParentCategoryId(parentCategoryId); 2302 } 2303 2304 /** 2305 * Returns the number of asset categories where vocabularyId = ?. 2306 * 2307 * @param vocabularyId the vocabulary ID 2308 * @return the number of matching asset categories 2309 * @throws SystemException if a system exception occurred 2310 */ 2311 public static int countByVocabularyId(long vocabularyId) 2312 throws com.liferay.portal.kernel.exception.SystemException { 2313 return getPersistence().countByVocabularyId(vocabularyId); 2314 } 2315 2316 /** 2317 * Returns the number of asset categories where groupId = ? and vocabularyId = ?. 2318 * 2319 * @param groupId the group ID 2320 * @param vocabularyId the vocabulary ID 2321 * @return the number of matching asset categories 2322 * @throws SystemException if a system exception occurred 2323 */ 2324 public static int countByG_V(long groupId, long vocabularyId) 2325 throws com.liferay.portal.kernel.exception.SystemException { 2326 return getPersistence().countByG_V(groupId, vocabularyId); 2327 } 2328 2329 /** 2330 * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 2331 * 2332 * @param groupId the group ID 2333 * @param vocabularyId the vocabulary ID 2334 * @return the number of matching asset categories that the user has permission to view 2335 * @throws SystemException if a system exception occurred 2336 */ 2337 public static int filterCountByG_V(long groupId, long vocabularyId) 2338 throws com.liferay.portal.kernel.exception.SystemException { 2339 return getPersistence().filterCountByG_V(groupId, vocabularyId); 2340 } 2341 2342 /** 2343 * Returns the number of asset categories where parentCategoryId = ? and name = ?. 2344 * 2345 * @param parentCategoryId the parent category ID 2346 * @param name the name 2347 * @return the number of matching asset categories 2348 * @throws SystemException if a system exception occurred 2349 */ 2350 public static int countByP_N(long parentCategoryId, java.lang.String name) 2351 throws com.liferay.portal.kernel.exception.SystemException { 2352 return getPersistence().countByP_N(parentCategoryId, name); 2353 } 2354 2355 /** 2356 * Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?. 2357 * 2358 * @param parentCategoryId the parent category ID 2359 * @param vocabularyId the vocabulary ID 2360 * @return the number of matching asset categories 2361 * @throws SystemException if a system exception occurred 2362 */ 2363 public static int countByP_V(long parentCategoryId, long vocabularyId) 2364 throws com.liferay.portal.kernel.exception.SystemException { 2365 return getPersistence().countByP_V(parentCategoryId, vocabularyId); 2366 } 2367 2368 /** 2369 * Returns the number of asset categories where name = ? and vocabularyId = ?. 2370 * 2371 * @param name the name 2372 * @param vocabularyId the vocabulary ID 2373 * @return the number of matching asset categories 2374 * @throws SystemException if a system exception occurred 2375 */ 2376 public static int countByN_V(java.lang.String name, long vocabularyId) 2377 throws com.liferay.portal.kernel.exception.SystemException { 2378 return getPersistence().countByN_V(name, vocabularyId); 2379 } 2380 2381 /** 2382 * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ?. 2383 * 2384 * @param groupId the group ID 2385 * @param parentCategoryId the parent category ID 2386 * @param name the name 2387 * @return the number of matching asset categories 2388 * @throws SystemException if a system exception occurred 2389 */ 2390 public static int countByG_P_N(long groupId, long parentCategoryId, 2391 java.lang.String name) 2392 throws com.liferay.portal.kernel.exception.SystemException { 2393 return getPersistence().countByG_P_N(groupId, parentCategoryId, name); 2394 } 2395 2396 /** 2397 * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 2398 * 2399 * @param groupId the group ID 2400 * @param parentCategoryId the parent category ID 2401 * @param name the name 2402 * @return the number of matching asset categories that the user has permission to view 2403 * @throws SystemException if a system exception occurred 2404 */ 2405 public static int filterCountByG_P_N(long groupId, long parentCategoryId, 2406 java.lang.String name) 2407 throws com.liferay.portal.kernel.exception.SystemException { 2408 return getPersistence() 2409 .filterCountByG_P_N(groupId, parentCategoryId, name); 2410 } 2411 2412 /** 2413 * Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. 2414 * 2415 * @param parentCategoryId the parent category ID 2416 * @param name the name 2417 * @param vocabularyId the vocabulary ID 2418 * @return the number of matching asset categories 2419 * @throws SystemException if a system exception occurred 2420 */ 2421 public static int countByP_N_V(long parentCategoryId, 2422 java.lang.String name, long vocabularyId) 2423 throws com.liferay.portal.kernel.exception.SystemException { 2424 return getPersistence() 2425 .countByP_N_V(parentCategoryId, name, vocabularyId); 2426 } 2427 2428 /** 2429 * Returns the number of asset categories. 2430 * 2431 * @return the number of asset categories 2432 * @throws SystemException if a system exception occurred 2433 */ 2434 public static int countAll() 2435 throws com.liferay.portal.kernel.exception.SystemException { 2436 return getPersistence().countAll(); 2437 } 2438 2439 /** 2440 * Returns all the asset entries associated with the asset category. 2441 * 2442 * @param pk the primary key of the asset category 2443 * @return the asset entries associated with the asset category 2444 * @throws SystemException if a system exception occurred 2445 */ 2446 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 2447 long pk) throws com.liferay.portal.kernel.exception.SystemException { 2448 return getPersistence().getAssetEntries(pk); 2449 } 2450 2451 /** 2452 * Returns a range of all the asset entries associated with the asset category. 2453 * 2454 * <p> 2455 * 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. 2456 * </p> 2457 * 2458 * @param pk the primary key of the asset category 2459 * @param start the lower bound of the range of asset categories 2460 * @param end the upper bound of the range of asset categories (not inclusive) 2461 * @return the range of asset entries associated with the asset category 2462 * @throws SystemException if a system exception occurred 2463 */ 2464 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 2465 long pk, int start, int end) 2466 throws com.liferay.portal.kernel.exception.SystemException { 2467 return getPersistence().getAssetEntries(pk, start, end); 2468 } 2469 2470 /** 2471 * Returns an ordered range of all the asset entries associated with the asset category. 2472 * 2473 * <p> 2474 * 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. 2475 * </p> 2476 * 2477 * @param pk the primary key of the asset category 2478 * @param start the lower bound of the range of asset categories 2479 * @param end the upper bound of the range of asset categories (not inclusive) 2480 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2481 * @return the ordered range of asset entries associated with the asset category 2482 * @throws SystemException if a system exception occurred 2483 */ 2484 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 2485 long pk, int start, int end, 2486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2487 throws com.liferay.portal.kernel.exception.SystemException { 2488 return getPersistence() 2489 .getAssetEntries(pk, start, end, orderByComparator); 2490 } 2491 2492 /** 2493 * Returns the number of asset entries associated with the asset category. 2494 * 2495 * @param pk the primary key of the asset category 2496 * @return the number of asset entries associated with the asset category 2497 * @throws SystemException if a system exception occurred 2498 */ 2499 public static int getAssetEntriesSize(long pk) 2500 throws com.liferay.portal.kernel.exception.SystemException { 2501 return getPersistence().getAssetEntriesSize(pk); 2502 } 2503 2504 /** 2505 * Returns <code>true</code> if the asset entry is associated with the asset category. 2506 * 2507 * @param pk the primary key of the asset category 2508 * @param assetEntryPK the primary key of the asset entry 2509 * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise 2510 * @throws SystemException if a system exception occurred 2511 */ 2512 public static boolean containsAssetEntry(long pk, long assetEntryPK) 2513 throws com.liferay.portal.kernel.exception.SystemException { 2514 return getPersistence().containsAssetEntry(pk, assetEntryPK); 2515 } 2516 2517 /** 2518 * Returns <code>true</code> if the asset category has any asset entries associated with it. 2519 * 2520 * @param pk the primary key of the asset category to check for associations with asset entries 2521 * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise 2522 * @throws SystemException if a system exception occurred 2523 */ 2524 public static boolean containsAssetEntries(long pk) 2525 throws com.liferay.portal.kernel.exception.SystemException { 2526 return getPersistence().containsAssetEntries(pk); 2527 } 2528 2529 /** 2530 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2531 * 2532 * @param pk the primary key of the asset category 2533 * @param assetEntryPK the primary key of the asset entry 2534 * @throws SystemException if a system exception occurred 2535 */ 2536 public static void addAssetEntry(long pk, long assetEntryPK) 2537 throws com.liferay.portal.kernel.exception.SystemException { 2538 getPersistence().addAssetEntry(pk, assetEntryPK); 2539 } 2540 2541 /** 2542 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2543 * 2544 * @param pk the primary key of the asset category 2545 * @param assetEntry the asset entry 2546 * @throws SystemException if a system exception occurred 2547 */ 2548 public static void addAssetEntry(long pk, 2549 com.liferay.portlet.asset.model.AssetEntry assetEntry) 2550 throws com.liferay.portal.kernel.exception.SystemException { 2551 getPersistence().addAssetEntry(pk, assetEntry); 2552 } 2553 2554 /** 2555 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2556 * 2557 * @param pk the primary key of the asset category 2558 * @param assetEntryPKs the primary keys of the asset entries 2559 * @throws SystemException if a system exception occurred 2560 */ 2561 public static void addAssetEntries(long pk, long[] assetEntryPKs) 2562 throws com.liferay.portal.kernel.exception.SystemException { 2563 getPersistence().addAssetEntries(pk, assetEntryPKs); 2564 } 2565 2566 /** 2567 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2568 * 2569 * @param pk the primary key of the asset category 2570 * @param assetEntries the asset entries 2571 * @throws SystemException if a system exception occurred 2572 */ 2573 public static void addAssetEntries(long pk, 2574 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2575 throws com.liferay.portal.kernel.exception.SystemException { 2576 getPersistence().addAssetEntries(pk, assetEntries); 2577 } 2578 2579 /** 2580 * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2581 * 2582 * @param pk the primary key of the asset category to clear the associated asset entries from 2583 * @throws SystemException if a system exception occurred 2584 */ 2585 public static void clearAssetEntries(long pk) 2586 throws com.liferay.portal.kernel.exception.SystemException { 2587 getPersistence().clearAssetEntries(pk); 2588 } 2589 2590 /** 2591 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2592 * 2593 * @param pk the primary key of the asset category 2594 * @param assetEntryPK the primary key of the asset entry 2595 * @throws SystemException if a system exception occurred 2596 */ 2597 public static void removeAssetEntry(long pk, long assetEntryPK) 2598 throws com.liferay.portal.kernel.exception.SystemException { 2599 getPersistence().removeAssetEntry(pk, assetEntryPK); 2600 } 2601 2602 /** 2603 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2604 * 2605 * @param pk the primary key of the asset category 2606 * @param assetEntry the asset entry 2607 * @throws SystemException if a system exception occurred 2608 */ 2609 public static void removeAssetEntry(long pk, 2610 com.liferay.portlet.asset.model.AssetEntry assetEntry) 2611 throws com.liferay.portal.kernel.exception.SystemException { 2612 getPersistence().removeAssetEntry(pk, assetEntry); 2613 } 2614 2615 /** 2616 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2617 * 2618 * @param pk the primary key of the asset category 2619 * @param assetEntryPKs the primary keys of the asset entries 2620 * @throws SystemException if a system exception occurred 2621 */ 2622 public static void removeAssetEntries(long pk, long[] assetEntryPKs) 2623 throws com.liferay.portal.kernel.exception.SystemException { 2624 getPersistence().removeAssetEntries(pk, assetEntryPKs); 2625 } 2626 2627 /** 2628 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2629 * 2630 * @param pk the primary key of the asset category 2631 * @param assetEntries the asset entries 2632 * @throws SystemException if a system exception occurred 2633 */ 2634 public static void removeAssetEntries(long pk, 2635 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2636 throws com.liferay.portal.kernel.exception.SystemException { 2637 getPersistence().removeAssetEntries(pk, assetEntries); 2638 } 2639 2640 /** 2641 * 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. 2642 * 2643 * @param pk the primary key of the asset category 2644 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category 2645 * @throws SystemException if a system exception occurred 2646 */ 2647 public static void setAssetEntries(long pk, long[] assetEntryPKs) 2648 throws com.liferay.portal.kernel.exception.SystemException { 2649 getPersistence().setAssetEntries(pk, assetEntryPKs); 2650 } 2651 2652 /** 2653 * 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. 2654 * 2655 * @param pk the primary key of the asset category 2656 * @param assetEntries the asset entries to be associated with the asset category 2657 * @throws SystemException if a system exception occurred 2658 */ 2659 public static void setAssetEntries(long pk, 2660 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2661 throws com.liferay.portal.kernel.exception.SystemException { 2662 getPersistence().setAssetEntries(pk, assetEntries); 2663 } 2664 2665 /** 2666 * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. 2667 * 2668 * <p> 2669 * 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. 2670 * </p> 2671 * 2672 * @param groupId the ID of the scope 2673 * @param force whether to force the rebuild even if the tree is not stale 2674 */ 2675 public static void rebuildTree(long groupId, boolean force) 2676 throws com.liferay.portal.kernel.exception.SystemException { 2677 getPersistence().rebuildTree(groupId, force); 2678 } 2679 2680 public static void setRebuildTreeEnabled(boolean rebuildTreeEnabled) { 2681 getPersistence().setRebuildTreeEnabled(rebuildTreeEnabled); 2682 } 2683 2684 public static AssetCategoryPersistence getPersistence() { 2685 if (_persistence == null) { 2686 _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName()); 2687 2688 ReferenceRegistry.registerReference(AssetCategoryUtil.class, 2689 "_persistence"); 2690 } 2691 2692 return _persistence; 2693 } 2694 2695 /** 2696 * @deprecated 2697 */ 2698 public void setPersistence(AssetCategoryPersistence persistence) { 2699 } 2700 2701 private static AssetCategoryPersistence _persistence; 2702 }