001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.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, boolean) 099 */ 100 public static AssetCategory update(AssetCategory assetCategory, 101 boolean merge) throws SystemException { 102 return getPersistence().update(assetCategory, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static AssetCategory update(AssetCategory assetCategory, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(assetCategory, merge, 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 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(assetCategory, merge); 164 } 165 166 /** 167 * Returns the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 168 * 169 * @param categoryId the primary key of the asset category 170 * @return the asset category 171 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey( 175 long categoryId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.asset.NoSuchCategoryException { 178 return getPersistence().findByPrimaryKey(categoryId); 179 } 180 181 /** 182 * Returns the asset category with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param categoryId the primary key of the asset category 185 * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey( 189 long categoryId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(categoryId); 192 } 193 194 /** 195 * Returns all the asset categories where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching asset categories 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the asset categories where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of asset categories 216 * @param end the upper bound of the range of asset categories (not inclusive) 217 * @return the range of matching asset categories 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the asset categories where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of asset categories 235 * @param end the upper bound of the range of asset categories (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching asset categories 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first asset category in the ordered set where uuid = ?. 249 * 250 * @param uuid the uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching asset category 253 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.asset.NoSuchCategoryException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Returns the first asset category in the ordered set where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_First( 273 java.lang.String uuid, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last asset category in the ordered set where uuid = ?. 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching asset category 285 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.asset.NoSuchCategoryException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the last asset category in the ordered set where uuid = ?. 298 * 299 * @param uuid the uuid 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_Last( 305 java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the asset categories before and after the current asset category in the ordered set where uuid = ?. 313 * 314 * @param categoryId the primary key of the current asset category 315 * @param uuid the uuid 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next asset category 318 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext( 322 long categoryId, java.lang.String uuid, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.asset.NoSuchCategoryException { 326 return getPersistence() 327 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator); 328 } 329 330 /** 331 * Returns the asset category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 332 * 333 * @param uuid the uuid 334 * @param groupId the group ID 335 * @return the matching asset category 336 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.asset.NoSuchCategoryException { 343 return getPersistence().findByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 355 java.lang.String uuid, long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId); 358 } 359 360 /** 361 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 362 * 363 * @param uuid the uuid 364 * @param groupId the group ID 365 * @param retrieveFromCache whether to use the finder cache 366 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 370 java.lang.String uuid, long groupId, boolean retrieveFromCache) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 373 } 374 375 /** 376 * Returns all the asset categories where groupId = ?. 377 * 378 * @param groupId the group 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> findByGroupId( 383 long groupId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId); 386 } 387 388 /** 389 * Returns a range of all the asset categories where groupId = ?. 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 groupId the group ID 396 * @param start the lower bound of the range of asset categories 397 * @param end the upper bound of the range of asset categories (not inclusive) 398 * @return the range of matching asset categories 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 402 long groupId, int start, int end) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return getPersistence().findByGroupId(groupId, start, end); 405 } 406 407 /** 408 * Returns an ordered range of all the asset categories where groupId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param groupId the group ID 415 * @param start the lower bound of the range of asset categories 416 * @param end the upper bound of the range of asset categories (not inclusive) 417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 418 * @return the ordered range of matching asset categories 419 * @throws SystemException if a system exception occurred 420 */ 421 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 422 long groupId, int start, int end, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence() 426 .findByGroupId(groupId, start, end, orderByComparator); 427 } 428 429 /** 430 * Returns the first asset category in the ordered set where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching asset category 435 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_First( 439 long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.asset.NoSuchCategoryException { 443 return getPersistence().findByGroupId_First(groupId, orderByComparator); 444 } 445 446 /** 447 * Returns the first asset category in the ordered set where groupId = ?. 448 * 449 * @param groupId the group ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_First( 455 long groupId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the last asset category in the ordered set where groupId = ?. 463 * 464 * @param groupId the group ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching asset category 467 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last( 471 long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.asset.NoSuchCategoryException { 475 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 476 } 477 478 /** 479 * Returns the last asset category in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 491 } 492 493 /** 494 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ?. 495 * 496 * @param categoryId the primary key of the current asset category 497 * @param groupId the group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the previous, current, and next asset category 500 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext( 504 long categoryId, long groupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.asset.NoSuchCategoryException { 508 return getPersistence() 509 .findByGroupId_PrevAndNext(categoryId, groupId, 510 orderByComparator); 511 } 512 513 /** 514 * Returns all the asset categories that the user has permission to view where groupId = ?. 515 * 516 * @param groupId the group ID 517 * @return the matching asset categories that the user has permission to view 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 521 long groupId) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence().filterFindByGroupId(groupId); 524 } 525 526 /** 527 * Returns a range of all the asset categories that the user has permission to view where groupId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param start the lower bound of the range of asset categories 535 * @param end the upper bound of the range of asset categories (not inclusive) 536 * @return the range of matching asset categories that the user has permission to view 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 540 long groupId, int start, int end) 541 throws com.liferay.portal.kernel.exception.SystemException { 542 return getPersistence().filterFindByGroupId(groupId, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param start the lower bound of the range of asset categories 554 * @param end the upper bound of the range of asset categories (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching asset categories that the user has permission to view 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 560 long groupId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .filterFindByGroupId(groupId, start, end, orderByComparator); 565 } 566 567 /** 568 * 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 = ?. 569 * 570 * @param categoryId the primary key of the current asset category 571 * @param groupId the group ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next asset category 574 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext( 578 long categoryId, long groupId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.asset.NoSuchCategoryException { 582 return getPersistence() 583 .filterFindByGroupId_PrevAndNext(categoryId, groupId, 584 orderByComparator); 585 } 586 587 /** 588 * Returns all the asset categories where parentCategoryId = ?. 589 * 590 * @param parentCategoryId the parent category ID 591 * @return the matching asset categories 592 * @throws SystemException if a system exception occurred 593 */ 594 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 595 long parentCategoryId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 return getPersistence().findByParentCategoryId(parentCategoryId); 598 } 599 600 /** 601 * Returns a range of all the asset categories where parentCategoryId = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param parentCategoryId the parent category ID 608 * @param start the lower bound of the range of asset categories 609 * @param end the upper bound of the range of asset categories (not inclusive) 610 * @return the range of matching asset categories 611 * @throws SystemException if a system exception occurred 612 */ 613 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 614 long parentCategoryId, int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence() 617 .findByParentCategoryId(parentCategoryId, start, end); 618 } 619 620 /** 621 * Returns an ordered range of all the asset categories where parentCategoryId = ?. 622 * 623 * <p> 624 * 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. 625 * </p> 626 * 627 * @param parentCategoryId the parent category ID 628 * @param start the lower bound of the range of asset categories 629 * @param end the upper bound of the range of asset categories (not inclusive) 630 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 631 * @return the ordered range of matching asset categories 632 * @throws SystemException if a system exception occurred 633 */ 634 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 635 long parentCategoryId, int start, int end, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException { 638 return getPersistence() 639 .findByParentCategoryId(parentCategoryId, start, end, 640 orderByComparator); 641 } 642 643 /** 644 * Returns the first asset category in the ordered set where parentCategoryId = ?. 645 * 646 * @param parentCategoryId the parent category ID 647 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 648 * @return the first matching asset category 649 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 650 * @throws SystemException if a system exception occurred 651 */ 652 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First( 653 long parentCategoryId, 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 .findByParentCategoryId_First(parentCategoryId, 659 orderByComparator); 660 } 661 662 /** 663 * Returns the first asset category in the ordered set where parentCategoryId = ?. 664 * 665 * @param parentCategoryId the parent category ID 666 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 667 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 668 * @throws SystemException if a system exception occurred 669 */ 670 public static com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_First( 671 long parentCategoryId, 672 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 673 throws com.liferay.portal.kernel.exception.SystemException { 674 return getPersistence() 675 .fetchByParentCategoryId_First(parentCategoryId, 676 orderByComparator); 677 } 678 679 /** 680 * Returns the last asset category in the ordered set where parentCategoryId = ?. 681 * 682 * @param parentCategoryId the parent category ID 683 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 684 * @return the last matching asset category 685 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 686 * @throws SystemException if a system exception occurred 687 */ 688 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last( 689 long parentCategoryId, 690 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 691 throws com.liferay.portal.kernel.exception.SystemException, 692 com.liferay.portlet.asset.NoSuchCategoryException { 693 return getPersistence() 694 .findByParentCategoryId_Last(parentCategoryId, 695 orderByComparator); 696 } 697 698 /** 699 * Returns the last asset category in the ordered set where parentCategoryId = ?. 700 * 701 * @param parentCategoryId the parent category ID 702 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 703 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 704 * @throws SystemException if a system exception occurred 705 */ 706 public static com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_Last( 707 long parentCategoryId, 708 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 709 throws com.liferay.portal.kernel.exception.SystemException { 710 return getPersistence() 711 .fetchByParentCategoryId_Last(parentCategoryId, 712 orderByComparator); 713 } 714 715 /** 716 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. 717 * 718 * @param categoryId the primary key of the current asset category 719 * @param parentCategoryId the parent category ID 720 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 721 * @return the previous, current, and next asset category 722 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 723 * @throws SystemException if a system exception occurred 724 */ 725 public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext( 726 long categoryId, long parentCategoryId, 727 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 728 throws com.liferay.portal.kernel.exception.SystemException, 729 com.liferay.portlet.asset.NoSuchCategoryException { 730 return getPersistence() 731 .findByParentCategoryId_PrevAndNext(categoryId, 732 parentCategoryId, orderByComparator); 733 } 734 735 /** 736 * Returns all the asset categories where vocabularyId = ?. 737 * 738 * @param vocabularyId the vocabulary ID 739 * @return the matching asset categories 740 * @throws SystemException if a system exception occurred 741 */ 742 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 743 long vocabularyId) 744 throws com.liferay.portal.kernel.exception.SystemException { 745 return getPersistence().findByVocabularyId(vocabularyId); 746 } 747 748 /** 749 * Returns a range of all the asset categories where vocabularyId = ?. 750 * 751 * <p> 752 * 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. 753 * </p> 754 * 755 * @param vocabularyId the vocabulary ID 756 * @param start the lower bound of the range of asset categories 757 * @param end the upper bound of the range of asset categories (not inclusive) 758 * @return the range of matching asset categories 759 * @throws SystemException if a system exception occurred 760 */ 761 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 762 long vocabularyId, int start, int end) 763 throws com.liferay.portal.kernel.exception.SystemException { 764 return getPersistence().findByVocabularyId(vocabularyId, start, end); 765 } 766 767 /** 768 * Returns an ordered range of all the asset categories where vocabularyId = ?. 769 * 770 * <p> 771 * 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. 772 * </p> 773 * 774 * @param vocabularyId the vocabulary ID 775 * @param start the lower bound of the range of asset categories 776 * @param end the upper bound of the range of asset categories (not inclusive) 777 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 778 * @return the ordered range of matching asset categories 779 * @throws SystemException if a system exception occurred 780 */ 781 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 782 long vocabularyId, int start, int end, 783 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 784 throws com.liferay.portal.kernel.exception.SystemException { 785 return getPersistence() 786 .findByVocabularyId(vocabularyId, start, end, 787 orderByComparator); 788 } 789 790 /** 791 * Returns the first asset category in the ordered set where vocabularyId = ?. 792 * 793 * @param vocabularyId the vocabulary ID 794 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 795 * @return the first matching asset category 796 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 797 * @throws SystemException if a system exception occurred 798 */ 799 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First( 800 long vocabularyId, 801 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 802 throws com.liferay.portal.kernel.exception.SystemException, 803 com.liferay.portlet.asset.NoSuchCategoryException { 804 return getPersistence() 805 .findByVocabularyId_First(vocabularyId, orderByComparator); 806 } 807 808 /** 809 * Returns the first asset category in the ordered set where vocabularyId = ?. 810 * 811 * @param vocabularyId the vocabulary ID 812 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 813 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 814 * @throws SystemException if a system exception occurred 815 */ 816 public static com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_First( 817 long vocabularyId, 818 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 819 throws com.liferay.portal.kernel.exception.SystemException { 820 return getPersistence() 821 .fetchByVocabularyId_First(vocabularyId, orderByComparator); 822 } 823 824 /** 825 * Returns the last asset category in the ordered set where vocabularyId = ?. 826 * 827 * @param vocabularyId the vocabulary ID 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the last matching asset category 830 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 831 * @throws SystemException if a system exception occurred 832 */ 833 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last( 834 long vocabularyId, 835 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 836 throws com.liferay.portal.kernel.exception.SystemException, 837 com.liferay.portlet.asset.NoSuchCategoryException { 838 return getPersistence() 839 .findByVocabularyId_Last(vocabularyId, orderByComparator); 840 } 841 842 /** 843 * Returns the last asset category in the ordered set where vocabularyId = ?. 844 * 845 * @param vocabularyId the vocabulary ID 846 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 847 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 848 * @throws SystemException if a system exception occurred 849 */ 850 public static com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_Last( 851 long vocabularyId, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException { 854 return getPersistence() 855 .fetchByVocabularyId_Last(vocabularyId, orderByComparator); 856 } 857 858 /** 859 * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. 860 * 861 * @param categoryId the primary key of the current asset category 862 * @param vocabularyId the vocabulary ID 863 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 864 * @return the previous, current, and next asset category 865 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 866 * @throws SystemException if a system exception occurred 867 */ 868 public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext( 869 long categoryId, long vocabularyId, 870 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 871 throws com.liferay.portal.kernel.exception.SystemException, 872 com.liferay.portlet.asset.NoSuchCategoryException { 873 return getPersistence() 874 .findByVocabularyId_PrevAndNext(categoryId, vocabularyId, 875 orderByComparator); 876 } 877 878 /** 879 * Returns all the asset categories where groupId = ? and vocabularyId = ?. 880 * 881 * @param groupId the group ID 882 * @param vocabularyId the vocabulary ID 883 * @return the matching asset categories 884 * @throws SystemException if a system exception occurred 885 */ 886 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 887 long groupId, long vocabularyId) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return getPersistence().findByG_V(groupId, vocabularyId); 890 } 891 892 /** 893 * Returns a range of all the asset categories where groupId = ? and vocabularyId = ?. 894 * 895 * <p> 896 * 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. 897 * </p> 898 * 899 * @param groupId the group ID 900 * @param vocabularyId the vocabulary ID 901 * @param start the lower bound of the range of asset categories 902 * @param end the upper bound of the range of asset categories (not inclusive) 903 * @return the range of matching asset categories 904 * @throws SystemException if a system exception occurred 905 */ 906 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 907 long groupId, long vocabularyId, int start, int end) 908 throws com.liferay.portal.kernel.exception.SystemException { 909 return getPersistence().findByG_V(groupId, vocabularyId, start, end); 910 } 911 912 /** 913 * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?. 914 * 915 * <p> 916 * 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. 917 * </p> 918 * 919 * @param groupId the group ID 920 * @param vocabularyId the vocabulary ID 921 * @param start the lower bound of the range of asset categories 922 * @param end the upper bound of the range of asset categories (not inclusive) 923 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 924 * @return the ordered range of matching asset categories 925 * @throws SystemException if a system exception occurred 926 */ 927 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 928 long groupId, long vocabularyId, int start, int end, 929 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence() 932 .findByG_V(groupId, vocabularyId, start, end, 933 orderByComparator); 934 } 935 936 /** 937 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 938 * 939 * @param groupId the group ID 940 * @param vocabularyId the vocabulary ID 941 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 942 * @return the first matching asset category 943 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 944 * @throws SystemException if a system exception occurred 945 */ 946 public static com.liferay.portlet.asset.model.AssetCategory findByG_V_First( 947 long groupId, long vocabularyId, 948 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 949 throws com.liferay.portal.kernel.exception.SystemException, 950 com.liferay.portlet.asset.NoSuchCategoryException { 951 return getPersistence() 952 .findByG_V_First(groupId, vocabularyId, orderByComparator); 953 } 954 955 /** 956 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 957 * 958 * @param groupId the group ID 959 * @param vocabularyId the vocabulary ID 960 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 961 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 962 * @throws SystemException if a system exception occurred 963 */ 964 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_V_First( 965 long groupId, long vocabularyId, 966 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 967 throws com.liferay.portal.kernel.exception.SystemException { 968 return getPersistence() 969 .fetchByG_V_First(groupId, vocabularyId, orderByComparator); 970 } 971 972 /** 973 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 974 * 975 * @param groupId the group ID 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 findByG_V_Last( 983 long groupId, 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 .findByG_V_Last(groupId, vocabularyId, orderByComparator); 989 } 990 991 /** 992 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 993 * 994 * @param groupId the group ID 995 * @param vocabularyId the vocabulary ID 996 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 997 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 998 * @throws SystemException if a system exception occurred 999 */ 1000 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_V_Last( 1001 long groupId, long vocabularyId, 1002 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1003 throws com.liferay.portal.kernel.exception.SystemException { 1004 return getPersistence() 1005 .fetchByG_V_Last(groupId, vocabularyId, orderByComparator); 1006 } 1007 1008 /** 1009 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?. 1010 * 1011 * @param categoryId the primary key of the current asset category 1012 * @param groupId the group ID 1013 * @param vocabularyId the vocabulary ID 1014 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1015 * @return the previous, current, and next asset category 1016 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1017 * @throws SystemException if a system exception occurred 1018 */ 1019 public static com.liferay.portlet.asset.model.AssetCategory[] findByG_V_PrevAndNext( 1020 long categoryId, long groupId, long vocabularyId, 1021 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1022 throws com.liferay.portal.kernel.exception.SystemException, 1023 com.liferay.portlet.asset.NoSuchCategoryException { 1024 return getPersistence() 1025 .findByG_V_PrevAndNext(categoryId, groupId, vocabularyId, 1026 orderByComparator); 1027 } 1028 1029 /** 1030 * Returns all the asset categories where groupId = ? and vocabularyId = any ?. 1031 * 1032 * <p> 1033 * 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. 1034 * </p> 1035 * 1036 * @param groupId the group ID 1037 * @param vocabularyIds the vocabulary IDs 1038 * @return the matching asset categories 1039 * @throws SystemException if a system exception occurred 1040 */ 1041 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1042 long groupId, long[] vocabularyIds) 1043 throws com.liferay.portal.kernel.exception.SystemException { 1044 return getPersistence().findByG_V(groupId, vocabularyIds); 1045 } 1046 1047 /** 1048 * Returns a range of all the asset categories where groupId = ? and vocabularyId = any ?. 1049 * 1050 * <p> 1051 * 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. 1052 * </p> 1053 * 1054 * @param groupId the group ID 1055 * @param vocabularyIds the vocabulary IDs 1056 * @param start the lower bound of the range of asset categories 1057 * @param end the upper bound of the range of asset categories (not inclusive) 1058 * @return the range of matching asset categories 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1062 long groupId, long[] vocabularyIds, int start, int end) 1063 throws com.liferay.portal.kernel.exception.SystemException { 1064 return getPersistence().findByG_V(groupId, vocabularyIds, start, end); 1065 } 1066 1067 /** 1068 * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = any ?. 1069 * 1070 * <p> 1071 * 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. 1072 * </p> 1073 * 1074 * @param groupId the group ID 1075 * @param vocabularyIds the vocabulary IDs 1076 * @param start the lower bound of the range of asset categories 1077 * @param end the upper bound of the range of asset categories (not inclusive) 1078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1079 * @return the ordered range of matching asset categories 1080 * @throws SystemException if a system exception occurred 1081 */ 1082 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1083 long groupId, long[] vocabularyIds, int start, int end, 1084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1085 throws com.liferay.portal.kernel.exception.SystemException { 1086 return getPersistence() 1087 .findByG_V(groupId, vocabularyIds, start, end, 1088 orderByComparator); 1089 } 1090 1091 /** 1092 * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1093 * 1094 * @param groupId the group ID 1095 * @param vocabularyId the vocabulary ID 1096 * @return the matching asset categories that the user has permission to view 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1100 long groupId, long vocabularyId) 1101 throws com.liferay.portal.kernel.exception.SystemException { 1102 return getPersistence().filterFindByG_V(groupId, vocabularyId); 1103 } 1104 1105 /** 1106 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1107 * 1108 * <p> 1109 * 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. 1110 * </p> 1111 * 1112 * @param groupId the group ID 1113 * @param vocabularyId the vocabulary ID 1114 * @param start the lower bound of the range of asset categories 1115 * @param end the upper bound of the range of asset categories (not inclusive) 1116 * @return the range of matching asset categories that the user has permission to view 1117 * @throws SystemException if a system exception occurred 1118 */ 1119 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1120 long groupId, long vocabularyId, int start, int end) 1121 throws com.liferay.portal.kernel.exception.SystemException { 1122 return getPersistence() 1123 .filterFindByG_V(groupId, vocabularyId, start, end); 1124 } 1125 1126 /** 1127 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?. 1128 * 1129 * <p> 1130 * 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. 1131 * </p> 1132 * 1133 * @param groupId the group ID 1134 * @param vocabularyId the vocabulary ID 1135 * @param start the lower bound of the range of asset categories 1136 * @param end the upper bound of the range of asset categories (not inclusive) 1137 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1138 * @return the ordered range of matching asset categories that the user has permission to view 1139 * @throws SystemException if a system exception occurred 1140 */ 1141 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1142 long groupId, long vocabularyId, int start, int end, 1143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1144 throws com.liferay.portal.kernel.exception.SystemException { 1145 return getPersistence() 1146 .filterFindByG_V(groupId, vocabularyId, start, end, 1147 orderByComparator); 1148 } 1149 1150 /** 1151 * 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 = ?. 1152 * 1153 * @param categoryId the primary key of the current asset category 1154 * @param groupId the group ID 1155 * @param vocabularyId the vocabulary ID 1156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1157 * @return the previous, current, and next asset category 1158 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1159 * @throws SystemException if a system exception occurred 1160 */ 1161 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_V_PrevAndNext( 1162 long categoryId, long groupId, long vocabularyId, 1163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1164 throws com.liferay.portal.kernel.exception.SystemException, 1165 com.liferay.portlet.asset.NoSuchCategoryException { 1166 return getPersistence() 1167 .filterFindByG_V_PrevAndNext(categoryId, groupId, 1168 vocabularyId, orderByComparator); 1169 } 1170 1171 /** 1172 * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1173 * 1174 * @param groupId the group ID 1175 * @param vocabularyIds the vocabulary IDs 1176 * @return the matching asset categories that the user has permission to view 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1180 long groupId, long[] vocabularyIds) 1181 throws com.liferay.portal.kernel.exception.SystemException { 1182 return getPersistence().filterFindByG_V(groupId, vocabularyIds); 1183 } 1184 1185 /** 1186 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1187 * 1188 * <p> 1189 * 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. 1190 * </p> 1191 * 1192 * @param groupId the group ID 1193 * @param vocabularyIds the vocabulary IDs 1194 * @param start the lower bound of the range of asset categories 1195 * @param end the upper bound of the range of asset categories (not inclusive) 1196 * @return the range of matching asset categories that the user has permission to view 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1200 long groupId, long[] vocabularyIds, int start, int end) 1201 throws com.liferay.portal.kernel.exception.SystemException { 1202 return getPersistence() 1203 .filterFindByG_V(groupId, vocabularyIds, start, end); 1204 } 1205 1206 /** 1207 * Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1208 * 1209 * <p> 1210 * 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. 1211 * </p> 1212 * 1213 * @param groupId the group ID 1214 * @param vocabularyIds the vocabulary IDs 1215 * @param start the lower bound of the range of asset categories 1216 * @param end the upper bound of the range of asset categories (not inclusive) 1217 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1218 * @return the ordered range of matching asset categories that the user has permission to view 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1222 long groupId, long[] vocabularyIds, int start, int end, 1223 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1224 throws com.liferay.portal.kernel.exception.SystemException { 1225 return getPersistence() 1226 .filterFindByG_V(groupId, vocabularyIds, start, end, 1227 orderByComparator); 1228 } 1229 1230 /** 1231 * Returns all the asset categories where parentCategoryId = ? and name = ?. 1232 * 1233 * @param parentCategoryId the parent category ID 1234 * @param name the name 1235 * @return the matching asset categories 1236 * @throws SystemException if a system exception occurred 1237 */ 1238 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1239 long parentCategoryId, java.lang.String name) 1240 throws com.liferay.portal.kernel.exception.SystemException { 1241 return getPersistence().findByP_N(parentCategoryId, name); 1242 } 1243 1244 /** 1245 * Returns a range of all the asset categories where parentCategoryId = ? and name = ?. 1246 * 1247 * <p> 1248 * 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. 1249 * </p> 1250 * 1251 * @param parentCategoryId the parent category ID 1252 * @param name the name 1253 * @param start the lower bound of the range of asset categories 1254 * @param end the upper bound of the range of asset categories (not inclusive) 1255 * @return the range of matching asset categories 1256 * @throws SystemException if a system exception occurred 1257 */ 1258 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1259 long parentCategoryId, java.lang.String name, int start, int end) 1260 throws com.liferay.portal.kernel.exception.SystemException { 1261 return getPersistence().findByP_N(parentCategoryId, name, start, end); 1262 } 1263 1264 /** 1265 * Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?. 1266 * 1267 * <p> 1268 * 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. 1269 * </p> 1270 * 1271 * @param parentCategoryId the parent category ID 1272 * @param name the name 1273 * @param start the lower bound of the range of asset categories 1274 * @param end the upper bound of the range of asset categories (not inclusive) 1275 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1276 * @return the ordered range of matching asset categories 1277 * @throws SystemException if a system exception occurred 1278 */ 1279 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1280 long parentCategoryId, java.lang.String name, int start, int end, 1281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1282 throws com.liferay.portal.kernel.exception.SystemException { 1283 return getPersistence() 1284 .findByP_N(parentCategoryId, name, start, end, 1285 orderByComparator); 1286 } 1287 1288 /** 1289 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 1290 * 1291 * @param parentCategoryId the parent category ID 1292 * @param name the name 1293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1294 * @return the first matching asset category 1295 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First( 1299 long parentCategoryId, java.lang.String name, 1300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1301 throws com.liferay.portal.kernel.exception.SystemException, 1302 com.liferay.portlet.asset.NoSuchCategoryException { 1303 return getPersistence() 1304 .findByP_N_First(parentCategoryId, name, orderByComparator); 1305 } 1306 1307 /** 1308 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 1309 * 1310 * @param parentCategoryId the parent category ID 1311 * @param name the name 1312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1313 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1314 * @throws SystemException if a system exception occurred 1315 */ 1316 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_First( 1317 long parentCategoryId, java.lang.String name, 1318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1319 throws com.liferay.portal.kernel.exception.SystemException { 1320 return getPersistence() 1321 .fetchByP_N_First(parentCategoryId, name, orderByComparator); 1322 } 1323 1324 /** 1325 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 1326 * 1327 * @param parentCategoryId the parent category ID 1328 * @param name the name 1329 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1330 * @return the last matching asset category 1331 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last( 1335 long parentCategoryId, java.lang.String name, 1336 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1337 throws com.liferay.portal.kernel.exception.SystemException, 1338 com.liferay.portlet.asset.NoSuchCategoryException { 1339 return getPersistence() 1340 .findByP_N_Last(parentCategoryId, name, orderByComparator); 1341 } 1342 1343 /** 1344 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 1345 * 1346 * @param parentCategoryId the parent category ID 1347 * @param name the name 1348 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1349 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1350 * @throws SystemException if a system exception occurred 1351 */ 1352 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_Last( 1353 long parentCategoryId, java.lang.String name, 1354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1355 throws com.liferay.portal.kernel.exception.SystemException { 1356 return getPersistence() 1357 .fetchByP_N_Last(parentCategoryId, name, orderByComparator); 1358 } 1359 1360 /** 1361 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. 1362 * 1363 * @param categoryId the primary key of the current asset category 1364 * @param parentCategoryId the parent category ID 1365 * @param name the name 1366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1367 * @return the previous, current, and next asset category 1368 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1369 * @throws SystemException if a system exception occurred 1370 */ 1371 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext( 1372 long categoryId, long parentCategoryId, java.lang.String name, 1373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1374 throws com.liferay.portal.kernel.exception.SystemException, 1375 com.liferay.portlet.asset.NoSuchCategoryException { 1376 return getPersistence() 1377 .findByP_N_PrevAndNext(categoryId, parentCategoryId, name, 1378 orderByComparator); 1379 } 1380 1381 /** 1382 * Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1383 * 1384 * @param parentCategoryId the parent category ID 1385 * @param vocabularyId the vocabulary ID 1386 * @return the matching asset categories 1387 * @throws SystemException if a system exception occurred 1388 */ 1389 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1390 long parentCategoryId, long vocabularyId) 1391 throws com.liferay.portal.kernel.exception.SystemException { 1392 return getPersistence().findByP_V(parentCategoryId, vocabularyId); 1393 } 1394 1395 /** 1396 * Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1397 * 1398 * <p> 1399 * 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. 1400 * </p> 1401 * 1402 * @param parentCategoryId the parent category ID 1403 * @param vocabularyId the vocabulary ID 1404 * @param start the lower bound of the range of asset categories 1405 * @param end the upper bound of the range of asset categories (not inclusive) 1406 * @return the range of matching asset categories 1407 * @throws SystemException if a system exception occurred 1408 */ 1409 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1410 long parentCategoryId, long vocabularyId, int start, int end) 1411 throws com.liferay.portal.kernel.exception.SystemException { 1412 return getPersistence() 1413 .findByP_V(parentCategoryId, vocabularyId, start, end); 1414 } 1415 1416 /** 1417 * Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1418 * 1419 * <p> 1420 * 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. 1421 * </p> 1422 * 1423 * @param parentCategoryId the parent category ID 1424 * @param vocabularyId the vocabulary ID 1425 * @param start the lower bound of the range of asset categories 1426 * @param end the upper bound of the range of asset categories (not inclusive) 1427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1428 * @return the ordered range of matching asset categories 1429 * @throws SystemException if a system exception occurred 1430 */ 1431 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1432 long parentCategoryId, long vocabularyId, int start, int end, 1433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1434 throws com.liferay.portal.kernel.exception.SystemException { 1435 return getPersistence() 1436 .findByP_V(parentCategoryId, vocabularyId, start, end, 1437 orderByComparator); 1438 } 1439 1440 /** 1441 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1442 * 1443 * @param parentCategoryId the parent category ID 1444 * @param vocabularyId the vocabulary ID 1445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1446 * @return the first matching asset category 1447 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1448 * @throws SystemException if a system exception occurred 1449 */ 1450 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_First( 1451 long parentCategoryId, long vocabularyId, 1452 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1453 throws com.liferay.portal.kernel.exception.SystemException, 1454 com.liferay.portlet.asset.NoSuchCategoryException { 1455 return getPersistence() 1456 .findByP_V_First(parentCategoryId, vocabularyId, 1457 orderByComparator); 1458 } 1459 1460 /** 1461 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1462 * 1463 * @param parentCategoryId the parent category ID 1464 * @param vocabularyId the vocabulary ID 1465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1466 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1467 * @throws SystemException if a system exception occurred 1468 */ 1469 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_V_First( 1470 long parentCategoryId, long vocabularyId, 1471 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1472 throws com.liferay.portal.kernel.exception.SystemException { 1473 return getPersistence() 1474 .fetchByP_V_First(parentCategoryId, vocabularyId, 1475 orderByComparator); 1476 } 1477 1478 /** 1479 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1480 * 1481 * @param parentCategoryId the parent category ID 1482 * @param vocabularyId the vocabulary ID 1483 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1484 * @return the last matching asset category 1485 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1486 * @throws SystemException if a system exception occurred 1487 */ 1488 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last( 1489 long parentCategoryId, long vocabularyId, 1490 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1491 throws com.liferay.portal.kernel.exception.SystemException, 1492 com.liferay.portlet.asset.NoSuchCategoryException { 1493 return getPersistence() 1494 .findByP_V_Last(parentCategoryId, vocabularyId, 1495 orderByComparator); 1496 } 1497 1498 /** 1499 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1500 * 1501 * @param parentCategoryId the parent category ID 1502 * @param vocabularyId the vocabulary ID 1503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1504 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1505 * @throws SystemException if a system exception occurred 1506 */ 1507 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_V_Last( 1508 long parentCategoryId, long vocabularyId, 1509 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1510 throws com.liferay.portal.kernel.exception.SystemException { 1511 return getPersistence() 1512 .fetchByP_V_Last(parentCategoryId, vocabularyId, 1513 orderByComparator); 1514 } 1515 1516 /** 1517 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1518 * 1519 * @param categoryId the primary key of the current asset category 1520 * @param parentCategoryId the parent category ID 1521 * @param vocabularyId the vocabulary ID 1522 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1523 * @return the previous, current, and next asset category 1524 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1525 * @throws SystemException if a system exception occurred 1526 */ 1527 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext( 1528 long categoryId, long parentCategoryId, long vocabularyId, 1529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1530 throws com.liferay.portal.kernel.exception.SystemException, 1531 com.liferay.portlet.asset.NoSuchCategoryException { 1532 return getPersistence() 1533 .findByP_V_PrevAndNext(categoryId, parentCategoryId, 1534 vocabularyId, orderByComparator); 1535 } 1536 1537 /** 1538 * Returns all the asset categories where name = ? and vocabularyId = ?. 1539 * 1540 * @param name the name 1541 * @param vocabularyId the vocabulary ID 1542 * @return the matching asset categories 1543 * @throws SystemException if a system exception occurred 1544 */ 1545 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1546 java.lang.String name, long vocabularyId) 1547 throws com.liferay.portal.kernel.exception.SystemException { 1548 return getPersistence().findByN_V(name, vocabularyId); 1549 } 1550 1551 /** 1552 * Returns a range of all the asset categories where name = ? and vocabularyId = ?. 1553 * 1554 * <p> 1555 * 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. 1556 * </p> 1557 * 1558 * @param name the name 1559 * @param vocabularyId the vocabulary ID 1560 * @param start the lower bound of the range of asset categories 1561 * @param end the upper bound of the range of asset categories (not inclusive) 1562 * @return the range of matching asset categories 1563 * @throws SystemException if a system exception occurred 1564 */ 1565 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1566 java.lang.String name, long vocabularyId, int start, int end) 1567 throws com.liferay.portal.kernel.exception.SystemException { 1568 return getPersistence().findByN_V(name, vocabularyId, start, end); 1569 } 1570 1571 /** 1572 * Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?. 1573 * 1574 * <p> 1575 * 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. 1576 * </p> 1577 * 1578 * @param name the name 1579 * @param vocabularyId the vocabulary ID 1580 * @param start the lower bound of the range of asset categories 1581 * @param end the upper bound of the range of asset categories (not inclusive) 1582 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1583 * @return the ordered range of matching asset categories 1584 * @throws SystemException if a system exception occurred 1585 */ 1586 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1587 java.lang.String name, long vocabularyId, int start, int end, 1588 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1589 throws com.liferay.portal.kernel.exception.SystemException { 1590 return getPersistence() 1591 .findByN_V(name, vocabularyId, start, end, orderByComparator); 1592 } 1593 1594 /** 1595 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1596 * 1597 * @param name the name 1598 * @param vocabularyId the vocabulary ID 1599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1600 * @return the first matching asset category 1601 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1602 * @throws SystemException if a system exception occurred 1603 */ 1604 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First( 1605 java.lang.String name, long vocabularyId, 1606 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1607 throws com.liferay.portal.kernel.exception.SystemException, 1608 com.liferay.portlet.asset.NoSuchCategoryException { 1609 return getPersistence() 1610 .findByN_V_First(name, vocabularyId, orderByComparator); 1611 } 1612 1613 /** 1614 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1615 * 1616 * @param name the name 1617 * @param vocabularyId the vocabulary ID 1618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1619 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1620 * @throws SystemException if a system exception occurred 1621 */ 1622 public static com.liferay.portlet.asset.model.AssetCategory fetchByN_V_First( 1623 java.lang.String name, long vocabularyId, 1624 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1625 throws com.liferay.portal.kernel.exception.SystemException { 1626 return getPersistence() 1627 .fetchByN_V_First(name, vocabularyId, orderByComparator); 1628 } 1629 1630 /** 1631 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1632 * 1633 * @param name the name 1634 * @param vocabularyId the vocabulary ID 1635 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1636 * @return the last matching asset category 1637 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1638 * @throws SystemException if a system exception occurred 1639 */ 1640 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last( 1641 java.lang.String name, long vocabularyId, 1642 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1643 throws com.liferay.portal.kernel.exception.SystemException, 1644 com.liferay.portlet.asset.NoSuchCategoryException { 1645 return getPersistence() 1646 .findByN_V_Last(name, vocabularyId, orderByComparator); 1647 } 1648 1649 /** 1650 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1651 * 1652 * @param name the name 1653 * @param vocabularyId the vocabulary ID 1654 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1655 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1656 * @throws SystemException if a system exception occurred 1657 */ 1658 public static com.liferay.portlet.asset.model.AssetCategory fetchByN_V_Last( 1659 java.lang.String name, long vocabularyId, 1660 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1661 throws com.liferay.portal.kernel.exception.SystemException { 1662 return getPersistence() 1663 .fetchByN_V_Last(name, vocabularyId, orderByComparator); 1664 } 1665 1666 /** 1667 * Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. 1668 * 1669 * @param categoryId the primary key of the current asset category 1670 * @param name the name 1671 * @param vocabularyId the vocabulary ID 1672 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1673 * @return the previous, current, and next asset category 1674 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1675 * @throws SystemException if a system exception occurred 1676 */ 1677 public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext( 1678 long categoryId, java.lang.String name, long vocabularyId, 1679 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1680 throws com.liferay.portal.kernel.exception.SystemException, 1681 com.liferay.portlet.asset.NoSuchCategoryException { 1682 return getPersistence() 1683 .findByN_V_PrevAndNext(categoryId, name, vocabularyId, 1684 orderByComparator); 1685 } 1686 1687 /** 1688 * Returns all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1689 * 1690 * @param groupId the group ID 1691 * @param parentCategoryId the parent category ID 1692 * @param vocabularyId the vocabulary ID 1693 * @return the matching asset categories 1694 * @throws SystemException if a system exception occurred 1695 */ 1696 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_V( 1697 long groupId, long parentCategoryId, long vocabularyId) 1698 throws com.liferay.portal.kernel.exception.SystemException { 1699 return getPersistence() 1700 .findByG_P_V(groupId, parentCategoryId, vocabularyId); 1701 } 1702 1703 /** 1704 * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1705 * 1706 * <p> 1707 * 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. 1708 * </p> 1709 * 1710 * @param groupId the group ID 1711 * @param parentCategoryId the parent category ID 1712 * @param vocabularyId the vocabulary ID 1713 * @param start the lower bound of the range of asset categories 1714 * @param end the upper bound of the range of asset categories (not inclusive) 1715 * @return the range of matching asset categories 1716 * @throws SystemException if a system exception occurred 1717 */ 1718 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_V( 1719 long groupId, long parentCategoryId, long vocabularyId, int start, 1720 int end) throws com.liferay.portal.kernel.exception.SystemException { 1721 return getPersistence() 1722 .findByG_P_V(groupId, parentCategoryId, vocabularyId, start, 1723 end); 1724 } 1725 1726 /** 1727 * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1728 * 1729 * <p> 1730 * 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. 1731 * </p> 1732 * 1733 * @param groupId the group ID 1734 * @param parentCategoryId the parent category ID 1735 * @param vocabularyId the vocabulary ID 1736 * @param start the lower bound of the range of asset categories 1737 * @param end the upper bound of the range of asset categories (not inclusive) 1738 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1739 * @return the ordered range of matching asset categories 1740 * @throws SystemException if a system exception occurred 1741 */ 1742 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_V( 1743 long groupId, long parentCategoryId, long vocabularyId, int start, 1744 int end, 1745 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1746 throws com.liferay.portal.kernel.exception.SystemException { 1747 return getPersistence() 1748 .findByG_P_V(groupId, parentCategoryId, vocabularyId, start, 1749 end, orderByComparator); 1750 } 1751 1752 /** 1753 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1754 * 1755 * @param groupId the group ID 1756 * @param parentCategoryId the parent category ID 1757 * @param vocabularyId the vocabulary ID 1758 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1759 * @return the first matching asset category 1760 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1761 * @throws SystemException if a system exception occurred 1762 */ 1763 public static com.liferay.portlet.asset.model.AssetCategory findByG_P_V_First( 1764 long groupId, long parentCategoryId, long vocabularyId, 1765 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1766 throws com.liferay.portal.kernel.exception.SystemException, 1767 com.liferay.portlet.asset.NoSuchCategoryException { 1768 return getPersistence() 1769 .findByG_P_V_First(groupId, parentCategoryId, vocabularyId, 1770 orderByComparator); 1771 } 1772 1773 /** 1774 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1775 * 1776 * @param groupId the group ID 1777 * @param parentCategoryId the parent category ID 1778 * @param vocabularyId the vocabulary ID 1779 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1780 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1781 * @throws SystemException if a system exception occurred 1782 */ 1783 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_V_First( 1784 long groupId, long parentCategoryId, long vocabularyId, 1785 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1786 throws com.liferay.portal.kernel.exception.SystemException { 1787 return getPersistence() 1788 .fetchByG_P_V_First(groupId, parentCategoryId, vocabularyId, 1789 orderByComparator); 1790 } 1791 1792 /** 1793 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1794 * 1795 * @param groupId the group ID 1796 * @param parentCategoryId the parent category ID 1797 * @param vocabularyId the vocabulary ID 1798 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1799 * @return the last matching asset category 1800 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1801 * @throws SystemException if a system exception occurred 1802 */ 1803 public static com.liferay.portlet.asset.model.AssetCategory findByG_P_V_Last( 1804 long groupId, long parentCategoryId, long vocabularyId, 1805 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1806 throws com.liferay.portal.kernel.exception.SystemException, 1807 com.liferay.portlet.asset.NoSuchCategoryException { 1808 return getPersistence() 1809 .findByG_P_V_Last(groupId, parentCategoryId, vocabularyId, 1810 orderByComparator); 1811 } 1812 1813 /** 1814 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1815 * 1816 * @param groupId the group ID 1817 * @param parentCategoryId the parent category ID 1818 * @param vocabularyId the vocabulary ID 1819 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1820 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1821 * @throws SystemException if a system exception occurred 1822 */ 1823 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_V_Last( 1824 long groupId, long parentCategoryId, long vocabularyId, 1825 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1826 throws com.liferay.portal.kernel.exception.SystemException { 1827 return getPersistence() 1828 .fetchByG_P_V_Last(groupId, parentCategoryId, vocabularyId, 1829 orderByComparator); 1830 } 1831 1832 /** 1833 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1834 * 1835 * @param categoryId the primary key of the current asset category 1836 * @param groupId the group ID 1837 * @param parentCategoryId the parent category ID 1838 * @param vocabularyId the vocabulary ID 1839 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1840 * @return the previous, current, and next asset category 1841 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1842 * @throws SystemException if a system exception occurred 1843 */ 1844 public static com.liferay.portlet.asset.model.AssetCategory[] findByG_P_V_PrevAndNext( 1845 long categoryId, long groupId, long parentCategoryId, 1846 long vocabularyId, 1847 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1848 throws com.liferay.portal.kernel.exception.SystemException, 1849 com.liferay.portlet.asset.NoSuchCategoryException { 1850 return getPersistence() 1851 .findByG_P_V_PrevAndNext(categoryId, groupId, 1852 parentCategoryId, vocabularyId, orderByComparator); 1853 } 1854 1855 /** 1856 * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1857 * 1858 * @param groupId the group ID 1859 * @param parentCategoryId the parent category ID 1860 * @param vocabularyId the vocabulary ID 1861 * @return the matching asset categories that the user has permission to view 1862 * @throws SystemException if a system exception occurred 1863 */ 1864 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_V( 1865 long groupId, long parentCategoryId, long vocabularyId) 1866 throws com.liferay.portal.kernel.exception.SystemException { 1867 return getPersistence() 1868 .filterFindByG_P_V(groupId, parentCategoryId, vocabularyId); 1869 } 1870 1871 /** 1872 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1873 * 1874 * <p> 1875 * 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. 1876 * </p> 1877 * 1878 * @param groupId the group ID 1879 * @param parentCategoryId the parent category ID 1880 * @param vocabularyId the vocabulary ID 1881 * @param start the lower bound of the range of asset categories 1882 * @param end the upper bound of the range of asset categories (not inclusive) 1883 * @return the range of matching asset categories that the user has permission to view 1884 * @throws SystemException if a system exception occurred 1885 */ 1886 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_V( 1887 long groupId, long parentCategoryId, long vocabularyId, int start, 1888 int end) throws com.liferay.portal.kernel.exception.SystemException { 1889 return getPersistence() 1890 .filterFindByG_P_V(groupId, parentCategoryId, vocabularyId, 1891 start, end); 1892 } 1893 1894 /** 1895 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 1896 * 1897 * <p> 1898 * 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. 1899 * </p> 1900 * 1901 * @param groupId the group ID 1902 * @param parentCategoryId the parent category ID 1903 * @param vocabularyId the vocabulary ID 1904 * @param start the lower bound of the range of asset categories 1905 * @param end the upper bound of the range of asset categories (not inclusive) 1906 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1907 * @return the ordered range of matching asset categories that the user has permission to view 1908 * @throws SystemException if a system exception occurred 1909 */ 1910 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_V( 1911 long groupId, long parentCategoryId, long vocabularyId, int start, 1912 int end, 1913 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1914 throws com.liferay.portal.kernel.exception.SystemException { 1915 return getPersistence() 1916 .filterFindByG_P_V(groupId, parentCategoryId, vocabularyId, 1917 start, end, orderByComparator); 1918 } 1919 1920 /** 1921 * 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 vocabularyId = ?. 1922 * 1923 * @param categoryId the primary key of the current asset category 1924 * @param groupId the group ID 1925 * @param parentCategoryId the parent category ID 1926 * @param vocabularyId the vocabulary ID 1927 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1928 * @return the previous, current, and next asset category 1929 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1930 * @throws SystemException if a system exception occurred 1931 */ 1932 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_P_V_PrevAndNext( 1933 long categoryId, long groupId, long parentCategoryId, 1934 long vocabularyId, 1935 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1936 throws com.liferay.portal.kernel.exception.SystemException, 1937 com.liferay.portlet.asset.NoSuchCategoryException { 1938 return getPersistence() 1939 .filterFindByG_P_V_PrevAndNext(categoryId, groupId, 1940 parentCategoryId, vocabularyId, orderByComparator); 1941 } 1942 1943 /** 1944 * Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 1945 * 1946 * @param groupId the group ID 1947 * @param name the name 1948 * @param vocabularyId the vocabulary ID 1949 * @return the matching asset categories 1950 * @throws SystemException if a system exception occurred 1951 */ 1952 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1953 long groupId, java.lang.String name, long vocabularyId) 1954 throws com.liferay.portal.kernel.exception.SystemException { 1955 return getPersistence().findByG_LikeN_V(groupId, name, vocabularyId); 1956 } 1957 1958 /** 1959 * Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 1960 * 1961 * <p> 1962 * 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. 1963 * </p> 1964 * 1965 * @param groupId the group ID 1966 * @param name the name 1967 * @param vocabularyId the vocabulary ID 1968 * @param start the lower bound of the range of asset categories 1969 * @param end the upper bound of the range of asset categories (not inclusive) 1970 * @return the range of matching asset categories 1971 * @throws SystemException if a system exception occurred 1972 */ 1973 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1974 long groupId, java.lang.String name, long vocabularyId, int start, 1975 int end) throws com.liferay.portal.kernel.exception.SystemException { 1976 return getPersistence() 1977 .findByG_LikeN_V(groupId, name, vocabularyId, start, end); 1978 } 1979 1980 /** 1981 * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 1982 * 1983 * <p> 1984 * 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. 1985 * </p> 1986 * 1987 * @param groupId the group ID 1988 * @param name the name 1989 * @param vocabularyId the vocabulary ID 1990 * @param start the lower bound of the range of asset categories 1991 * @param end the upper bound of the range of asset categories (not inclusive) 1992 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1993 * @return the ordered range of matching asset categories 1994 * @throws SystemException if a system exception occurred 1995 */ 1996 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1997 long groupId, java.lang.String name, long vocabularyId, int start, 1998 int end, 1999 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2000 throws com.liferay.portal.kernel.exception.SystemException { 2001 return getPersistence() 2002 .findByG_LikeN_V(groupId, name, vocabularyId, start, end, 2003 orderByComparator); 2004 } 2005 2006 /** 2007 * Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 2008 * 2009 * @param groupId the group ID 2010 * @param name the name 2011 * @param vocabularyId the vocabulary ID 2012 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2013 * @return the first matching asset category 2014 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2015 * @throws SystemException if a system exception occurred 2016 */ 2017 public static com.liferay.portlet.asset.model.AssetCategory findByG_LikeN_V_First( 2018 long groupId, java.lang.String name, long vocabularyId, 2019 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2020 throws com.liferay.portal.kernel.exception.SystemException, 2021 com.liferay.portlet.asset.NoSuchCategoryException { 2022 return getPersistence() 2023 .findByG_LikeN_V_First(groupId, name, vocabularyId, 2024 orderByComparator); 2025 } 2026 2027 /** 2028 * Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 2029 * 2030 * @param groupId the group ID 2031 * @param name the name 2032 * @param vocabularyId the vocabulary ID 2033 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2034 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 2035 * @throws SystemException if a system exception occurred 2036 */ 2037 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_LikeN_V_First( 2038 long groupId, java.lang.String name, long vocabularyId, 2039 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2040 throws com.liferay.portal.kernel.exception.SystemException { 2041 return getPersistence() 2042 .fetchByG_LikeN_V_First(groupId, name, vocabularyId, 2043 orderByComparator); 2044 } 2045 2046 /** 2047 * Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 2048 * 2049 * @param groupId the group ID 2050 * @param name the name 2051 * @param vocabularyId the vocabulary ID 2052 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2053 * @return the last matching asset category 2054 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2055 * @throws SystemException if a system exception occurred 2056 */ 2057 public static com.liferay.portlet.asset.model.AssetCategory findByG_LikeN_V_Last( 2058 long groupId, java.lang.String name, long vocabularyId, 2059 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2060 throws com.liferay.portal.kernel.exception.SystemException, 2061 com.liferay.portlet.asset.NoSuchCategoryException { 2062 return getPersistence() 2063 .findByG_LikeN_V_Last(groupId, name, vocabularyId, 2064 orderByComparator); 2065 } 2066 2067 /** 2068 * Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 2069 * 2070 * @param groupId the group ID 2071 * @param name the name 2072 * @param vocabularyId the vocabulary ID 2073 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2074 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 2075 * @throws SystemException if a system exception occurred 2076 */ 2077 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_LikeN_V_Last( 2078 long groupId, java.lang.String name, long vocabularyId, 2079 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2080 throws com.liferay.portal.kernel.exception.SystemException { 2081 return getPersistence() 2082 .fetchByG_LikeN_V_Last(groupId, name, vocabularyId, 2083 orderByComparator); 2084 } 2085 2086 /** 2087 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 2088 * 2089 * @param categoryId the primary key of the current asset category 2090 * @param groupId the group ID 2091 * @param name the name 2092 * @param vocabularyId the vocabulary ID 2093 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2094 * @return the previous, current, and next asset category 2095 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2096 * @throws SystemException if a system exception occurred 2097 */ 2098 public static com.liferay.portlet.asset.model.AssetCategory[] findByG_LikeN_V_PrevAndNext( 2099 long categoryId, long groupId, java.lang.String name, 2100 long vocabularyId, 2101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2102 throws com.liferay.portal.kernel.exception.SystemException, 2103 com.liferay.portlet.asset.NoSuchCategoryException { 2104 return getPersistence() 2105 .findByG_LikeN_V_PrevAndNext(categoryId, groupId, name, 2106 vocabularyId, orderByComparator); 2107 } 2108 2109 /** 2110 * Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 2111 * 2112 * <p> 2113 * 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. 2114 * </p> 2115 * 2116 * @param groupId the group ID 2117 * @param name the name 2118 * @param vocabularyIds the vocabulary IDs 2119 * @return the matching asset categories 2120 * @throws SystemException if a system exception occurred 2121 */ 2122 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 2123 long groupId, java.lang.String name, long[] vocabularyIds) 2124 throws com.liferay.portal.kernel.exception.SystemException { 2125 return getPersistence().findByG_LikeN_V(groupId, name, vocabularyIds); 2126 } 2127 2128 /** 2129 * Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 2130 * 2131 * <p> 2132 * 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. 2133 * </p> 2134 * 2135 * @param groupId the group ID 2136 * @param name the name 2137 * @param vocabularyIds the vocabulary IDs 2138 * @param start the lower bound of the range of asset categories 2139 * @param end the upper bound of the range of asset categories (not inclusive) 2140 * @return the range of matching asset categories 2141 * @throws SystemException if a system exception occurred 2142 */ 2143 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 2144 long groupId, java.lang.String name, long[] vocabularyIds, int start, 2145 int end) throws com.liferay.portal.kernel.exception.SystemException { 2146 return getPersistence() 2147 .findByG_LikeN_V(groupId, name, vocabularyIds, start, end); 2148 } 2149 2150 /** 2151 * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 2152 * 2153 * <p> 2154 * 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. 2155 * </p> 2156 * 2157 * @param groupId the group ID 2158 * @param name the name 2159 * @param vocabularyIds the vocabulary IDs 2160 * @param start the lower bound of the range of asset categories 2161 * @param end the upper bound of the range of asset categories (not inclusive) 2162 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2163 * @return the ordered range of matching asset categories 2164 * @throws SystemException if a system exception occurred 2165 */ 2166 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 2167 long groupId, java.lang.String name, long[] vocabularyIds, int start, 2168 int end, 2169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2170 throws com.liferay.portal.kernel.exception.SystemException { 2171 return getPersistence() 2172 .findByG_LikeN_V(groupId, name, vocabularyIds, start, end, 2173 orderByComparator); 2174 } 2175 2176 /** 2177 * Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 2178 * 2179 * @param groupId the group ID 2180 * @param name the name 2181 * @param vocabularyId the vocabulary ID 2182 * @return the matching asset categories that the user has permission to view 2183 * @throws SystemException if a system exception occurred 2184 */ 2185 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 2186 long groupId, java.lang.String name, long vocabularyId) 2187 throws com.liferay.portal.kernel.exception.SystemException { 2188 return getPersistence() 2189 .filterFindByG_LikeN_V(groupId, name, vocabularyId); 2190 } 2191 2192 /** 2193 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 2194 * 2195 * <p> 2196 * 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. 2197 * </p> 2198 * 2199 * @param groupId the group ID 2200 * @param name the name 2201 * @param vocabularyId the vocabulary ID 2202 * @param start the lower bound of the range of asset categories 2203 * @param end the upper bound of the range of asset categories (not inclusive) 2204 * @return the range of matching asset categories that the user has permission to view 2205 * @throws SystemException if a system exception occurred 2206 */ 2207 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 2208 long groupId, java.lang.String name, long vocabularyId, int start, 2209 int end) throws com.liferay.portal.kernel.exception.SystemException { 2210 return getPersistence() 2211 .filterFindByG_LikeN_V(groupId, name, vocabularyId, start, 2212 end); 2213 } 2214 2215 /** 2216 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and name LIKE ? and vocabularyId = ?. 2217 * 2218 * <p> 2219 * 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. 2220 * </p> 2221 * 2222 * @param groupId the group ID 2223 * @param name the name 2224 * @param vocabularyId the vocabulary ID 2225 * @param start the lower bound of the range of asset categories 2226 * @param end the upper bound of the range of asset categories (not inclusive) 2227 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2228 * @return the ordered range of matching asset categories that the user has permission to view 2229 * @throws SystemException if a system exception occurred 2230 */ 2231 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 2232 long groupId, java.lang.String name, long vocabularyId, int start, 2233 int end, 2234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2235 throws com.liferay.portal.kernel.exception.SystemException { 2236 return getPersistence() 2237 .filterFindByG_LikeN_V(groupId, name, vocabularyId, start, 2238 end, orderByComparator); 2239 } 2240 2241 /** 2242 * 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 name LIKE ? and vocabularyId = ?. 2243 * 2244 * @param categoryId the primary key of the current asset category 2245 * @param groupId the group ID 2246 * @param name the name 2247 * @param vocabularyId the vocabulary ID 2248 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2249 * @return the previous, current, and next asset category 2250 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2251 * @throws SystemException if a system exception occurred 2252 */ 2253 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_LikeN_V_PrevAndNext( 2254 long categoryId, long groupId, java.lang.String name, 2255 long vocabularyId, 2256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2257 throws com.liferay.portal.kernel.exception.SystemException, 2258 com.liferay.portlet.asset.NoSuchCategoryException { 2259 return getPersistence() 2260 .filterFindByG_LikeN_V_PrevAndNext(categoryId, groupId, 2261 name, vocabularyId, orderByComparator); 2262 } 2263 2264 /** 2265 * Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 2266 * 2267 * @param groupId the group ID 2268 * @param name the name 2269 * @param vocabularyIds the vocabulary IDs 2270 * @return the matching asset categories that the user has permission to view 2271 * @throws SystemException if a system exception occurred 2272 */ 2273 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 2274 long groupId, java.lang.String name, long[] vocabularyIds) 2275 throws com.liferay.portal.kernel.exception.SystemException { 2276 return getPersistence() 2277 .filterFindByG_LikeN_V(groupId, name, vocabularyIds); 2278 } 2279 2280 /** 2281 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 2282 * 2283 * <p> 2284 * 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. 2285 * </p> 2286 * 2287 * @param groupId the group ID 2288 * @param name the name 2289 * @param vocabularyIds the vocabulary IDs 2290 * @param start the lower bound of the range of asset categories 2291 * @param end the upper bound of the range of asset categories (not inclusive) 2292 * @return the range of matching asset categories that the user has permission to view 2293 * @throws SystemException if a system exception occurred 2294 */ 2295 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 2296 long groupId, java.lang.String name, long[] vocabularyIds, int start, 2297 int end) throws com.liferay.portal.kernel.exception.SystemException { 2298 return getPersistence() 2299 .filterFindByG_LikeN_V(groupId, name, vocabularyIds, start, 2300 end); 2301 } 2302 2303 /** 2304 * Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 2305 * 2306 * <p> 2307 * 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. 2308 * </p> 2309 * 2310 * @param groupId the group ID 2311 * @param name the name 2312 * @param vocabularyIds the vocabulary IDs 2313 * @param start the lower bound of the range of asset categories 2314 * @param end the upper bound of the range of asset categories (not inclusive) 2315 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2316 * @return the ordered range of matching asset categories that the user has permission to view 2317 * @throws SystemException if a system exception occurred 2318 */ 2319 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 2320 long groupId, java.lang.String name, long[] vocabularyIds, int start, 2321 int end, 2322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2323 throws com.liferay.portal.kernel.exception.SystemException { 2324 return getPersistence() 2325 .filterFindByG_LikeN_V(groupId, name, vocabularyIds, start, 2326 end, orderByComparator); 2327 } 2328 2329 /** 2330 * 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. 2331 * 2332 * @param parentCategoryId the parent category ID 2333 * @param name the name 2334 * @param vocabularyId the vocabulary ID 2335 * @return the matching asset category 2336 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2337 * @throws SystemException if a system exception occurred 2338 */ 2339 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_V( 2340 long parentCategoryId, java.lang.String name, long vocabularyId) 2341 throws com.liferay.portal.kernel.exception.SystemException, 2342 com.liferay.portlet.asset.NoSuchCategoryException { 2343 return getPersistence().findByP_N_V(parentCategoryId, name, vocabularyId); 2344 } 2345 2346 /** 2347 * 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. 2348 * 2349 * @param parentCategoryId the parent category ID 2350 * @param name the name 2351 * @param vocabularyId the vocabulary ID 2352 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 2353 * @throws SystemException if a system exception occurred 2354 */ 2355 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 2356 long parentCategoryId, java.lang.String name, long vocabularyId) 2357 throws com.liferay.portal.kernel.exception.SystemException { 2358 return getPersistence() 2359 .fetchByP_N_V(parentCategoryId, name, vocabularyId); 2360 } 2361 2362 /** 2363 * 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. 2364 * 2365 * @param parentCategoryId the parent category ID 2366 * @param name the name 2367 * @param vocabularyId the vocabulary ID 2368 * @param retrieveFromCache whether to use the finder cache 2369 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 2370 * @throws SystemException if a system exception occurred 2371 */ 2372 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 2373 long parentCategoryId, java.lang.String name, long vocabularyId, 2374 boolean retrieveFromCache) 2375 throws com.liferay.portal.kernel.exception.SystemException { 2376 return getPersistence() 2377 .fetchByP_N_V(parentCategoryId, name, vocabularyId, 2378 retrieveFromCache); 2379 } 2380 2381 /** 2382 * Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2383 * 2384 * @param groupId the group ID 2385 * @param parentCategoryId the parent category ID 2386 * @param name the name 2387 * @param vocabularyId the vocabulary ID 2388 * @return the matching asset categories 2389 * @throws SystemException if a system exception occurred 2390 */ 2391 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N_V( 2392 long groupId, long parentCategoryId, java.lang.String name, 2393 long vocabularyId) 2394 throws com.liferay.portal.kernel.exception.SystemException { 2395 return getPersistence() 2396 .findByG_P_N_V(groupId, parentCategoryId, name, vocabularyId); 2397 } 2398 2399 /** 2400 * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2401 * 2402 * <p> 2403 * 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. 2404 * </p> 2405 * 2406 * @param groupId the group ID 2407 * @param parentCategoryId the parent category ID 2408 * @param name the name 2409 * @param vocabularyId the vocabulary ID 2410 * @param start the lower bound of the range of asset categories 2411 * @param end the upper bound of the range of asset categories (not inclusive) 2412 * @return the range of matching asset categories 2413 * @throws SystemException if a system exception occurred 2414 */ 2415 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N_V( 2416 long groupId, long parentCategoryId, java.lang.String name, 2417 long vocabularyId, int start, int end) 2418 throws com.liferay.portal.kernel.exception.SystemException { 2419 return getPersistence() 2420 .findByG_P_N_V(groupId, parentCategoryId, name, 2421 vocabularyId, start, end); 2422 } 2423 2424 /** 2425 * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2426 * 2427 * <p> 2428 * 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. 2429 * </p> 2430 * 2431 * @param groupId the group ID 2432 * @param parentCategoryId the parent category ID 2433 * @param name the name 2434 * @param vocabularyId the vocabulary ID 2435 * @param start the lower bound of the range of asset categories 2436 * @param end the upper bound of the range of asset categories (not inclusive) 2437 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2438 * @return the ordered range of matching asset categories 2439 * @throws SystemException if a system exception occurred 2440 */ 2441 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N_V( 2442 long groupId, long parentCategoryId, java.lang.String name, 2443 long vocabularyId, int start, int end, 2444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2445 throws com.liferay.portal.kernel.exception.SystemException { 2446 return getPersistence() 2447 .findByG_P_N_V(groupId, parentCategoryId, name, 2448 vocabularyId, start, end, orderByComparator); 2449 } 2450 2451 /** 2452 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2453 * 2454 * @param groupId the group ID 2455 * @param parentCategoryId the parent category ID 2456 * @param name the name 2457 * @param vocabularyId the vocabulary ID 2458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2459 * @return the first matching asset category 2460 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2461 * @throws SystemException if a system exception occurred 2462 */ 2463 public static com.liferay.portlet.asset.model.AssetCategory findByG_P_N_V_First( 2464 long groupId, long parentCategoryId, java.lang.String name, 2465 long vocabularyId, 2466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2467 throws com.liferay.portal.kernel.exception.SystemException, 2468 com.liferay.portlet.asset.NoSuchCategoryException { 2469 return getPersistence() 2470 .findByG_P_N_V_First(groupId, parentCategoryId, name, 2471 vocabularyId, orderByComparator); 2472 } 2473 2474 /** 2475 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2476 * 2477 * @param groupId the group ID 2478 * @param parentCategoryId the parent category ID 2479 * @param name the name 2480 * @param vocabularyId the vocabulary ID 2481 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2482 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 2483 * @throws SystemException if a system exception occurred 2484 */ 2485 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_V_First( 2486 long groupId, long parentCategoryId, java.lang.String name, 2487 long vocabularyId, 2488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2489 throws com.liferay.portal.kernel.exception.SystemException { 2490 return getPersistence() 2491 .fetchByG_P_N_V_First(groupId, parentCategoryId, name, 2492 vocabularyId, orderByComparator); 2493 } 2494 2495 /** 2496 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2497 * 2498 * @param groupId the group ID 2499 * @param parentCategoryId the parent category ID 2500 * @param name the name 2501 * @param vocabularyId the vocabulary ID 2502 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2503 * @return the last matching asset category 2504 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2505 * @throws SystemException if a system exception occurred 2506 */ 2507 public static com.liferay.portlet.asset.model.AssetCategory findByG_P_N_V_Last( 2508 long groupId, long parentCategoryId, java.lang.String name, 2509 long vocabularyId, 2510 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2511 throws com.liferay.portal.kernel.exception.SystemException, 2512 com.liferay.portlet.asset.NoSuchCategoryException { 2513 return getPersistence() 2514 .findByG_P_N_V_Last(groupId, parentCategoryId, name, 2515 vocabularyId, orderByComparator); 2516 } 2517 2518 /** 2519 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2520 * 2521 * @param groupId the group ID 2522 * @param parentCategoryId the parent category ID 2523 * @param name the name 2524 * @param vocabularyId the vocabulary ID 2525 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2526 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 2527 * @throws SystemException if a system exception occurred 2528 */ 2529 public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_V_Last( 2530 long groupId, long parentCategoryId, java.lang.String name, 2531 long vocabularyId, 2532 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2533 throws com.liferay.portal.kernel.exception.SystemException { 2534 return getPersistence() 2535 .fetchByG_P_N_V_Last(groupId, parentCategoryId, name, 2536 vocabularyId, orderByComparator); 2537 } 2538 2539 /** 2540 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2541 * 2542 * @param categoryId the primary key of the current asset category 2543 * @param groupId the group ID 2544 * @param parentCategoryId the parent category ID 2545 * @param name the name 2546 * @param vocabularyId the vocabulary ID 2547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2548 * @return the previous, current, and next asset category 2549 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2550 * @throws SystemException if a system exception occurred 2551 */ 2552 public static com.liferay.portlet.asset.model.AssetCategory[] findByG_P_N_V_PrevAndNext( 2553 long categoryId, long groupId, long parentCategoryId, 2554 java.lang.String name, long vocabularyId, 2555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2556 throws com.liferay.portal.kernel.exception.SystemException, 2557 com.liferay.portlet.asset.NoSuchCategoryException { 2558 return getPersistence() 2559 .findByG_P_N_V_PrevAndNext(categoryId, groupId, 2560 parentCategoryId, name, vocabularyId, orderByComparator); 2561 } 2562 2563 /** 2564 * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2565 * 2566 * @param groupId the group ID 2567 * @param parentCategoryId the parent category ID 2568 * @param name the name 2569 * @param vocabularyId the vocabulary ID 2570 * @return the matching asset categories that the user has permission to view 2571 * @throws SystemException if a system exception occurred 2572 */ 2573 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N_V( 2574 long groupId, long parentCategoryId, java.lang.String name, 2575 long vocabularyId) 2576 throws com.liferay.portal.kernel.exception.SystemException { 2577 return getPersistence() 2578 .filterFindByG_P_N_V(groupId, parentCategoryId, name, 2579 vocabularyId); 2580 } 2581 2582 /** 2583 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2584 * 2585 * <p> 2586 * 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. 2587 * </p> 2588 * 2589 * @param groupId the group ID 2590 * @param parentCategoryId the parent category ID 2591 * @param name the name 2592 * @param vocabularyId the vocabulary ID 2593 * @param start the lower bound of the range of asset categories 2594 * @param end the upper bound of the range of asset categories (not inclusive) 2595 * @return the range of matching asset categories that the user has permission to view 2596 * @throws SystemException if a system exception occurred 2597 */ 2598 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N_V( 2599 long groupId, long parentCategoryId, java.lang.String name, 2600 long vocabularyId, int start, int end) 2601 throws com.liferay.portal.kernel.exception.SystemException { 2602 return getPersistence() 2603 .filterFindByG_P_N_V(groupId, parentCategoryId, name, 2604 vocabularyId, start, end); 2605 } 2606 2607 /** 2608 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2609 * 2610 * <p> 2611 * 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. 2612 * </p> 2613 * 2614 * @param groupId the group ID 2615 * @param parentCategoryId the parent category ID 2616 * @param name the name 2617 * @param vocabularyId the vocabulary ID 2618 * @param start the lower bound of the range of asset categories 2619 * @param end the upper bound of the range of asset categories (not inclusive) 2620 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2621 * @return the ordered range of matching asset categories that the user has permission to view 2622 * @throws SystemException if a system exception occurred 2623 */ 2624 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N_V( 2625 long groupId, long parentCategoryId, java.lang.String name, 2626 long vocabularyId, int start, int end, 2627 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2628 throws com.liferay.portal.kernel.exception.SystemException { 2629 return getPersistence() 2630 .filterFindByG_P_N_V(groupId, parentCategoryId, name, 2631 vocabularyId, start, end, orderByComparator); 2632 } 2633 2634 /** 2635 * 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 = ? and vocabularyId = ?. 2636 * 2637 * @param categoryId the primary key of the current asset category 2638 * @param groupId the group ID 2639 * @param parentCategoryId the parent category ID 2640 * @param name the name 2641 * @param vocabularyId the vocabulary ID 2642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2643 * @return the previous, current, and next asset category 2644 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2645 * @throws SystemException if a system exception occurred 2646 */ 2647 public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_P_N_V_PrevAndNext( 2648 long categoryId, long groupId, long parentCategoryId, 2649 java.lang.String name, long vocabularyId, 2650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2651 throws com.liferay.portal.kernel.exception.SystemException, 2652 com.liferay.portlet.asset.NoSuchCategoryException { 2653 return getPersistence() 2654 .filterFindByG_P_N_V_PrevAndNext(categoryId, groupId, 2655 parentCategoryId, name, vocabularyId, orderByComparator); 2656 } 2657 2658 /** 2659 * Returns all the asset categories. 2660 * 2661 * @return the asset categories 2662 * @throws SystemException if a system exception occurred 2663 */ 2664 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll() 2665 throws com.liferay.portal.kernel.exception.SystemException { 2666 return getPersistence().findAll(); 2667 } 2668 2669 /** 2670 * Returns a range of all the asset categories. 2671 * 2672 * <p> 2673 * 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. 2674 * </p> 2675 * 2676 * @param start the lower bound of the range of asset categories 2677 * @param end the upper bound of the range of asset categories (not inclusive) 2678 * @return the range of asset categories 2679 * @throws SystemException if a system exception occurred 2680 */ 2681 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 2682 int start, int end) 2683 throws com.liferay.portal.kernel.exception.SystemException { 2684 return getPersistence().findAll(start, end); 2685 } 2686 2687 /** 2688 * Returns an ordered range of all the asset categories. 2689 * 2690 * <p> 2691 * 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. 2692 * </p> 2693 * 2694 * @param start the lower bound of the range of asset categories 2695 * @param end the upper bound of the range of asset categories (not inclusive) 2696 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2697 * @return the ordered range of asset categories 2698 * @throws SystemException if a system exception occurred 2699 */ 2700 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 2701 int start, int end, 2702 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2703 throws com.liferay.portal.kernel.exception.SystemException { 2704 return getPersistence().findAll(start, end, orderByComparator); 2705 } 2706 2707 /** 2708 * Removes all the asset categories where uuid = ? from the database. 2709 * 2710 * @param uuid the uuid 2711 * @throws SystemException if a system exception occurred 2712 */ 2713 public static void removeByUuid(java.lang.String uuid) 2714 throws com.liferay.portal.kernel.exception.SystemException { 2715 getPersistence().removeByUuid(uuid); 2716 } 2717 2718 /** 2719 * Removes the asset category where uuid = ? and groupId = ? from the database. 2720 * 2721 * @param uuid the uuid 2722 * @param groupId the group ID 2723 * @return the asset category that was removed 2724 * @throws SystemException if a system exception occurred 2725 */ 2726 public static com.liferay.portlet.asset.model.AssetCategory removeByUUID_G( 2727 java.lang.String uuid, long groupId) 2728 throws com.liferay.portal.kernel.exception.SystemException, 2729 com.liferay.portlet.asset.NoSuchCategoryException { 2730 return getPersistence().removeByUUID_G(uuid, groupId); 2731 } 2732 2733 /** 2734 * Removes all the asset categories where groupId = ? from the database. 2735 * 2736 * @param groupId the group ID 2737 * @throws SystemException if a system exception occurred 2738 */ 2739 public static void removeByGroupId(long groupId) 2740 throws com.liferay.portal.kernel.exception.SystemException { 2741 getPersistence().removeByGroupId(groupId); 2742 } 2743 2744 /** 2745 * Removes all the asset categories where parentCategoryId = ? from the database. 2746 * 2747 * @param parentCategoryId the parent category ID 2748 * @throws SystemException if a system exception occurred 2749 */ 2750 public static void removeByParentCategoryId(long parentCategoryId) 2751 throws com.liferay.portal.kernel.exception.SystemException { 2752 getPersistence().removeByParentCategoryId(parentCategoryId); 2753 } 2754 2755 /** 2756 * Removes all the asset categories where vocabularyId = ? from the database. 2757 * 2758 * @param vocabularyId the vocabulary ID 2759 * @throws SystemException if a system exception occurred 2760 */ 2761 public static void removeByVocabularyId(long vocabularyId) 2762 throws com.liferay.portal.kernel.exception.SystemException { 2763 getPersistence().removeByVocabularyId(vocabularyId); 2764 } 2765 2766 /** 2767 * Removes all the asset categories where groupId = ? and vocabularyId = ? from the database. 2768 * 2769 * @param groupId the group ID 2770 * @param vocabularyId the vocabulary ID 2771 * @throws SystemException if a system exception occurred 2772 */ 2773 public static void removeByG_V(long groupId, long vocabularyId) 2774 throws com.liferay.portal.kernel.exception.SystemException { 2775 getPersistence().removeByG_V(groupId, vocabularyId); 2776 } 2777 2778 /** 2779 * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. 2780 * 2781 * @param parentCategoryId the parent category ID 2782 * @param name the name 2783 * @throws SystemException if a system exception occurred 2784 */ 2785 public static void removeByP_N(long parentCategoryId, java.lang.String name) 2786 throws com.liferay.portal.kernel.exception.SystemException { 2787 getPersistence().removeByP_N(parentCategoryId, name); 2788 } 2789 2790 /** 2791 * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. 2792 * 2793 * @param parentCategoryId the parent category ID 2794 * @param vocabularyId the vocabulary ID 2795 * @throws SystemException if a system exception occurred 2796 */ 2797 public static void removeByP_V(long parentCategoryId, long vocabularyId) 2798 throws com.liferay.portal.kernel.exception.SystemException { 2799 getPersistence().removeByP_V(parentCategoryId, vocabularyId); 2800 } 2801 2802 /** 2803 * Removes all the asset categories where name = ? and vocabularyId = ? from the database. 2804 * 2805 * @param name the name 2806 * @param vocabularyId the vocabulary ID 2807 * @throws SystemException if a system exception occurred 2808 */ 2809 public static void removeByN_V(java.lang.String name, long vocabularyId) 2810 throws com.liferay.portal.kernel.exception.SystemException { 2811 getPersistence().removeByN_V(name, vocabularyId); 2812 } 2813 2814 /** 2815 * Removes all the asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ? from the database. 2816 * 2817 * @param groupId the group ID 2818 * @param parentCategoryId the parent category ID 2819 * @param vocabularyId the vocabulary ID 2820 * @throws SystemException if a system exception occurred 2821 */ 2822 public static void removeByG_P_V(long groupId, long parentCategoryId, 2823 long vocabularyId) 2824 throws com.liferay.portal.kernel.exception.SystemException { 2825 getPersistence().removeByG_P_V(groupId, parentCategoryId, vocabularyId); 2826 } 2827 2828 /** 2829 * Removes all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ? from the database. 2830 * 2831 * @param groupId the group ID 2832 * @param name the name 2833 * @param vocabularyId the vocabulary ID 2834 * @throws SystemException if a system exception occurred 2835 */ 2836 public static void removeByG_LikeN_V(long groupId, java.lang.String name, 2837 long vocabularyId) 2838 throws com.liferay.portal.kernel.exception.SystemException { 2839 getPersistence().removeByG_LikeN_V(groupId, name, vocabularyId); 2840 } 2841 2842 /** 2843 * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 2844 * 2845 * @param parentCategoryId the parent category ID 2846 * @param name the name 2847 * @param vocabularyId the vocabulary ID 2848 * @return the asset category that was removed 2849 * @throws SystemException if a system exception occurred 2850 */ 2851 public static com.liferay.portlet.asset.model.AssetCategory removeByP_N_V( 2852 long parentCategoryId, java.lang.String name, long vocabularyId) 2853 throws com.liferay.portal.kernel.exception.SystemException, 2854 com.liferay.portlet.asset.NoSuchCategoryException { 2855 return getPersistence() 2856 .removeByP_N_V(parentCategoryId, name, vocabularyId); 2857 } 2858 2859 /** 2860 * Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 2861 * 2862 * @param groupId the group ID 2863 * @param parentCategoryId the parent category ID 2864 * @param name the name 2865 * @param vocabularyId the vocabulary ID 2866 * @throws SystemException if a system exception occurred 2867 */ 2868 public static void removeByG_P_N_V(long groupId, long parentCategoryId, 2869 java.lang.String name, long vocabularyId) 2870 throws com.liferay.portal.kernel.exception.SystemException { 2871 getPersistence() 2872 .removeByG_P_N_V(groupId, parentCategoryId, name, vocabularyId); 2873 } 2874 2875 /** 2876 * Removes all the asset categories from the database. 2877 * 2878 * @throws SystemException if a system exception occurred 2879 */ 2880 public static void removeAll() 2881 throws com.liferay.portal.kernel.exception.SystemException { 2882 getPersistence().removeAll(); 2883 } 2884 2885 /** 2886 * Returns the number of asset categories where uuid = ?. 2887 * 2888 * @param uuid the uuid 2889 * @return the number of matching asset categories 2890 * @throws SystemException if a system exception occurred 2891 */ 2892 public static int countByUuid(java.lang.String uuid) 2893 throws com.liferay.portal.kernel.exception.SystemException { 2894 return getPersistence().countByUuid(uuid); 2895 } 2896 2897 /** 2898 * Returns the number of asset categories where uuid = ? and groupId = ?. 2899 * 2900 * @param uuid the uuid 2901 * @param groupId the group ID 2902 * @return the number of matching asset categories 2903 * @throws SystemException if a system exception occurred 2904 */ 2905 public static int countByUUID_G(java.lang.String uuid, long groupId) 2906 throws com.liferay.portal.kernel.exception.SystemException { 2907 return getPersistence().countByUUID_G(uuid, groupId); 2908 } 2909 2910 /** 2911 * Returns the number of asset categories where groupId = ?. 2912 * 2913 * @param groupId the group ID 2914 * @return the number of matching asset categories 2915 * @throws SystemException if a system exception occurred 2916 */ 2917 public static int countByGroupId(long groupId) 2918 throws com.liferay.portal.kernel.exception.SystemException { 2919 return getPersistence().countByGroupId(groupId); 2920 } 2921 2922 /** 2923 * Returns the number of asset categories that the user has permission to view where groupId = ?. 2924 * 2925 * @param groupId the group ID 2926 * @return the number of matching asset categories that the user has permission to view 2927 * @throws SystemException if a system exception occurred 2928 */ 2929 public static int filterCountByGroupId(long groupId) 2930 throws com.liferay.portal.kernel.exception.SystemException { 2931 return getPersistence().filterCountByGroupId(groupId); 2932 } 2933 2934 /** 2935 * Returns the number of asset categories where parentCategoryId = ?. 2936 * 2937 * @param parentCategoryId the parent category ID 2938 * @return the number of matching asset categories 2939 * @throws SystemException if a system exception occurred 2940 */ 2941 public static int countByParentCategoryId(long parentCategoryId) 2942 throws com.liferay.portal.kernel.exception.SystemException { 2943 return getPersistence().countByParentCategoryId(parentCategoryId); 2944 } 2945 2946 /** 2947 * Returns the number of asset categories where vocabularyId = ?. 2948 * 2949 * @param vocabularyId the vocabulary ID 2950 * @return the number of matching asset categories 2951 * @throws SystemException if a system exception occurred 2952 */ 2953 public static int countByVocabularyId(long vocabularyId) 2954 throws com.liferay.portal.kernel.exception.SystemException { 2955 return getPersistence().countByVocabularyId(vocabularyId); 2956 } 2957 2958 /** 2959 * Returns the number of asset categories where groupId = ? and vocabularyId = ?. 2960 * 2961 * @param groupId the group ID 2962 * @param vocabularyId the vocabulary ID 2963 * @return the number of matching asset categories 2964 * @throws SystemException if a system exception occurred 2965 */ 2966 public static int countByG_V(long groupId, long vocabularyId) 2967 throws com.liferay.portal.kernel.exception.SystemException { 2968 return getPersistence().countByG_V(groupId, vocabularyId); 2969 } 2970 2971 /** 2972 * Returns the number of asset categories where groupId = ? and vocabularyId = any ?. 2973 * 2974 * @param groupId the group ID 2975 * @param vocabularyIds the vocabulary IDs 2976 * @return the number of matching asset categories 2977 * @throws SystemException if a system exception occurred 2978 */ 2979 public static int countByG_V(long groupId, long[] vocabularyIds) 2980 throws com.liferay.portal.kernel.exception.SystemException { 2981 return getPersistence().countByG_V(groupId, vocabularyIds); 2982 } 2983 2984 /** 2985 * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 2986 * 2987 * @param groupId the group ID 2988 * @param vocabularyId the vocabulary ID 2989 * @return the number of matching asset categories that the user has permission to view 2990 * @throws SystemException if a system exception occurred 2991 */ 2992 public static int filterCountByG_V(long groupId, long vocabularyId) 2993 throws com.liferay.portal.kernel.exception.SystemException { 2994 return getPersistence().filterCountByG_V(groupId, vocabularyId); 2995 } 2996 2997 /** 2998 * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 2999 * 3000 * @param groupId the group ID 3001 * @param vocabularyIds the vocabulary IDs 3002 * @return the number of matching asset categories that the user has permission to view 3003 * @throws SystemException if a system exception occurred 3004 */ 3005 public static int filterCountByG_V(long groupId, long[] vocabularyIds) 3006 throws com.liferay.portal.kernel.exception.SystemException { 3007 return getPersistence().filterCountByG_V(groupId, vocabularyIds); 3008 } 3009 3010 /** 3011 * Returns the number of asset categories where parentCategoryId = ? and name = ?. 3012 * 3013 * @param parentCategoryId the parent category ID 3014 * @param name the name 3015 * @return the number of matching asset categories 3016 * @throws SystemException if a system exception occurred 3017 */ 3018 public static int countByP_N(long parentCategoryId, java.lang.String name) 3019 throws com.liferay.portal.kernel.exception.SystemException { 3020 return getPersistence().countByP_N(parentCategoryId, name); 3021 } 3022 3023 /** 3024 * Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?. 3025 * 3026 * @param parentCategoryId the parent category ID 3027 * @param vocabularyId the vocabulary ID 3028 * @return the number of matching asset categories 3029 * @throws SystemException if a system exception occurred 3030 */ 3031 public static int countByP_V(long parentCategoryId, long vocabularyId) 3032 throws com.liferay.portal.kernel.exception.SystemException { 3033 return getPersistence().countByP_V(parentCategoryId, vocabularyId); 3034 } 3035 3036 /** 3037 * Returns the number of asset categories where name = ? and vocabularyId = ?. 3038 * 3039 * @param name the name 3040 * @param vocabularyId the vocabulary ID 3041 * @return the number of matching asset categories 3042 * @throws SystemException if a system exception occurred 3043 */ 3044 public static int countByN_V(java.lang.String name, long vocabularyId) 3045 throws com.liferay.portal.kernel.exception.SystemException { 3046 return getPersistence().countByN_V(name, vocabularyId); 3047 } 3048 3049 /** 3050 * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 3051 * 3052 * @param groupId the group ID 3053 * @param parentCategoryId the parent category ID 3054 * @param vocabularyId the vocabulary ID 3055 * @return the number of matching asset categories 3056 * @throws SystemException if a system exception occurred 3057 */ 3058 public static int countByG_P_V(long groupId, long parentCategoryId, 3059 long vocabularyId) 3060 throws com.liferay.portal.kernel.exception.SystemException { 3061 return getPersistence() 3062 .countByG_P_V(groupId, parentCategoryId, vocabularyId); 3063 } 3064 3065 /** 3066 * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and vocabularyId = ?. 3067 * 3068 * @param groupId the group ID 3069 * @param parentCategoryId the parent category ID 3070 * @param vocabularyId the vocabulary ID 3071 * @return the number of matching asset categories that the user has permission to view 3072 * @throws SystemException if a system exception occurred 3073 */ 3074 public static int filterCountByG_P_V(long groupId, long parentCategoryId, 3075 long vocabularyId) 3076 throws com.liferay.portal.kernel.exception.SystemException { 3077 return getPersistence() 3078 .filterCountByG_P_V(groupId, parentCategoryId, vocabularyId); 3079 } 3080 3081 /** 3082 * Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 3083 * 3084 * @param groupId the group ID 3085 * @param name the name 3086 * @param vocabularyId the vocabulary ID 3087 * @return the number of matching asset categories 3088 * @throws SystemException if a system exception occurred 3089 */ 3090 public static int countByG_LikeN_V(long groupId, java.lang.String name, 3091 long vocabularyId) 3092 throws com.liferay.portal.kernel.exception.SystemException { 3093 return getPersistence().countByG_LikeN_V(groupId, name, vocabularyId); 3094 } 3095 3096 /** 3097 * Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 3098 * 3099 * @param groupId the group ID 3100 * @param name the name 3101 * @param vocabularyIds the vocabulary IDs 3102 * @return the number of matching asset categories 3103 * @throws SystemException if a system exception occurred 3104 */ 3105 public static int countByG_LikeN_V(long groupId, java.lang.String name, 3106 long[] vocabularyIds) 3107 throws com.liferay.portal.kernel.exception.SystemException { 3108 return getPersistence().countByG_LikeN_V(groupId, name, vocabularyIds); 3109 } 3110 3111 /** 3112 * Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 3113 * 3114 * @param groupId the group ID 3115 * @param name the name 3116 * @param vocabularyId the vocabulary ID 3117 * @return the number of matching asset categories that the user has permission to view 3118 * @throws SystemException if a system exception occurred 3119 */ 3120 public static int filterCountByG_LikeN_V(long groupId, 3121 java.lang.String name, long vocabularyId) 3122 throws com.liferay.portal.kernel.exception.SystemException { 3123 return getPersistence() 3124 .filterCountByG_LikeN_V(groupId, name, vocabularyId); 3125 } 3126 3127 /** 3128 * Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 3129 * 3130 * @param groupId the group ID 3131 * @param name the name 3132 * @param vocabularyIds the vocabulary IDs 3133 * @return the number of matching asset categories that the user has permission to view 3134 * @throws SystemException if a system exception occurred 3135 */ 3136 public static int filterCountByG_LikeN_V(long groupId, 3137 java.lang.String name, long[] vocabularyIds) 3138 throws com.liferay.portal.kernel.exception.SystemException { 3139 return getPersistence() 3140 .filterCountByG_LikeN_V(groupId, name, vocabularyIds); 3141 } 3142 3143 /** 3144 * Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. 3145 * 3146 * @param parentCategoryId the parent category ID 3147 * @param name the name 3148 * @param vocabularyId the vocabulary ID 3149 * @return the number of matching asset categories 3150 * @throws SystemException if a system exception occurred 3151 */ 3152 public static int countByP_N_V(long parentCategoryId, 3153 java.lang.String name, long vocabularyId) 3154 throws com.liferay.portal.kernel.exception.SystemException { 3155 return getPersistence() 3156 .countByP_N_V(parentCategoryId, name, vocabularyId); 3157 } 3158 3159 /** 3160 * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 3161 * 3162 * @param groupId the group ID 3163 * @param parentCategoryId the parent category ID 3164 * @param name the name 3165 * @param vocabularyId the vocabulary ID 3166 * @return the number of matching asset categories 3167 * @throws SystemException if a system exception occurred 3168 */ 3169 public static int countByG_P_N_V(long groupId, long parentCategoryId, 3170 java.lang.String name, long vocabularyId) 3171 throws com.liferay.portal.kernel.exception.SystemException { 3172 return getPersistence() 3173 .countByG_P_N_V(groupId, parentCategoryId, name, vocabularyId); 3174 } 3175 3176 /** 3177 * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 3178 * 3179 * @param groupId the group ID 3180 * @param parentCategoryId the parent category ID 3181 * @param name the name 3182 * @param vocabularyId the vocabulary ID 3183 * @return the number of matching asset categories that the user has permission to view 3184 * @throws SystemException if a system exception occurred 3185 */ 3186 public static int filterCountByG_P_N_V(long groupId, long parentCategoryId, 3187 java.lang.String name, long vocabularyId) 3188 throws com.liferay.portal.kernel.exception.SystemException { 3189 return getPersistence() 3190 .filterCountByG_P_N_V(groupId, parentCategoryId, name, 3191 vocabularyId); 3192 } 3193 3194 /** 3195 * Returns the number of asset categories. 3196 * 3197 * @return the number of asset categories 3198 * @throws SystemException if a system exception occurred 3199 */ 3200 public static int countAll() 3201 throws com.liferay.portal.kernel.exception.SystemException { 3202 return getPersistence().countAll(); 3203 } 3204 3205 /** 3206 * Returns all the asset entries associated with the asset category. 3207 * 3208 * @param pk the primary key of the asset category 3209 * @return the asset entries associated with the asset category 3210 * @throws SystemException if a system exception occurred 3211 */ 3212 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 3213 long pk) throws com.liferay.portal.kernel.exception.SystemException { 3214 return getPersistence().getAssetEntries(pk); 3215 } 3216 3217 /** 3218 * Returns a range of all the asset entries associated with the asset category. 3219 * 3220 * <p> 3221 * 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. 3222 * </p> 3223 * 3224 * @param pk the primary key of the asset category 3225 * @param start the lower bound of the range of asset categories 3226 * @param end the upper bound of the range of asset categories (not inclusive) 3227 * @return the range of asset entries associated with the asset category 3228 * @throws SystemException if a system exception occurred 3229 */ 3230 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 3231 long pk, int start, int end) 3232 throws com.liferay.portal.kernel.exception.SystemException { 3233 return getPersistence().getAssetEntries(pk, start, end); 3234 } 3235 3236 /** 3237 * Returns an ordered range of all the asset entries associated with the asset category. 3238 * 3239 * <p> 3240 * 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. 3241 * </p> 3242 * 3243 * @param pk the primary key of the asset category 3244 * @param start the lower bound of the range of asset categories 3245 * @param end the upper bound of the range of asset categories (not inclusive) 3246 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3247 * @return the ordered range of asset entries associated with the asset category 3248 * @throws SystemException if a system exception occurred 3249 */ 3250 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 3251 long pk, int start, int end, 3252 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3253 throws com.liferay.portal.kernel.exception.SystemException { 3254 return getPersistence() 3255 .getAssetEntries(pk, start, end, orderByComparator); 3256 } 3257 3258 /** 3259 * Returns the number of asset entries associated with the asset category. 3260 * 3261 * @param pk the primary key of the asset category 3262 * @return the number of asset entries associated with the asset category 3263 * @throws SystemException if a system exception occurred 3264 */ 3265 public static int getAssetEntriesSize(long pk) 3266 throws com.liferay.portal.kernel.exception.SystemException { 3267 return getPersistence().getAssetEntriesSize(pk); 3268 } 3269 3270 /** 3271 * Returns <code>true</code> if the asset entry is associated with the asset category. 3272 * 3273 * @param pk the primary key of the asset category 3274 * @param assetEntryPK the primary key of the asset entry 3275 * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise 3276 * @throws SystemException if a system exception occurred 3277 */ 3278 public static boolean containsAssetEntry(long pk, long assetEntryPK) 3279 throws com.liferay.portal.kernel.exception.SystemException { 3280 return getPersistence().containsAssetEntry(pk, assetEntryPK); 3281 } 3282 3283 /** 3284 * Returns <code>true</code> if the asset category has any asset entries associated with it. 3285 * 3286 * @param pk the primary key of the asset category to check for associations with asset entries 3287 * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise 3288 * @throws SystemException if a system exception occurred 3289 */ 3290 public static boolean containsAssetEntries(long pk) 3291 throws com.liferay.portal.kernel.exception.SystemException { 3292 return getPersistence().containsAssetEntries(pk); 3293 } 3294 3295 /** 3296 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3297 * 3298 * @param pk the primary key of the asset category 3299 * @param assetEntryPK the primary key of the asset entry 3300 * @throws SystemException if a system exception occurred 3301 */ 3302 public static void addAssetEntry(long pk, long assetEntryPK) 3303 throws com.liferay.portal.kernel.exception.SystemException { 3304 getPersistence().addAssetEntry(pk, assetEntryPK); 3305 } 3306 3307 /** 3308 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3309 * 3310 * @param pk the primary key of the asset category 3311 * @param assetEntry the asset entry 3312 * @throws SystemException if a system exception occurred 3313 */ 3314 public static void addAssetEntry(long pk, 3315 com.liferay.portlet.asset.model.AssetEntry assetEntry) 3316 throws com.liferay.portal.kernel.exception.SystemException { 3317 getPersistence().addAssetEntry(pk, assetEntry); 3318 } 3319 3320 /** 3321 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3322 * 3323 * @param pk the primary key of the asset category 3324 * @param assetEntryPKs the primary keys of the asset entries 3325 * @throws SystemException if a system exception occurred 3326 */ 3327 public static void addAssetEntries(long pk, long[] assetEntryPKs) 3328 throws com.liferay.portal.kernel.exception.SystemException { 3329 getPersistence().addAssetEntries(pk, assetEntryPKs); 3330 } 3331 3332 /** 3333 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3334 * 3335 * @param pk the primary key of the asset category 3336 * @param assetEntries the asset entries 3337 * @throws SystemException if a system exception occurred 3338 */ 3339 public static void addAssetEntries(long pk, 3340 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 3341 throws com.liferay.portal.kernel.exception.SystemException { 3342 getPersistence().addAssetEntries(pk, assetEntries); 3343 } 3344 3345 /** 3346 * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3347 * 3348 * @param pk the primary key of the asset category to clear the associated asset entries from 3349 * @throws SystemException if a system exception occurred 3350 */ 3351 public static void clearAssetEntries(long pk) 3352 throws com.liferay.portal.kernel.exception.SystemException { 3353 getPersistence().clearAssetEntries(pk); 3354 } 3355 3356 /** 3357 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3358 * 3359 * @param pk the primary key of the asset category 3360 * @param assetEntryPK the primary key of the asset entry 3361 * @throws SystemException if a system exception occurred 3362 */ 3363 public static void removeAssetEntry(long pk, long assetEntryPK) 3364 throws com.liferay.portal.kernel.exception.SystemException { 3365 getPersistence().removeAssetEntry(pk, assetEntryPK); 3366 } 3367 3368 /** 3369 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3370 * 3371 * @param pk the primary key of the asset category 3372 * @param assetEntry the asset entry 3373 * @throws SystemException if a system exception occurred 3374 */ 3375 public static void removeAssetEntry(long pk, 3376 com.liferay.portlet.asset.model.AssetEntry assetEntry) 3377 throws com.liferay.portal.kernel.exception.SystemException { 3378 getPersistence().removeAssetEntry(pk, assetEntry); 3379 } 3380 3381 /** 3382 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3383 * 3384 * @param pk the primary key of the asset category 3385 * @param assetEntryPKs the primary keys of the asset entries 3386 * @throws SystemException if a system exception occurred 3387 */ 3388 public static void removeAssetEntries(long pk, long[] assetEntryPKs) 3389 throws com.liferay.portal.kernel.exception.SystemException { 3390 getPersistence().removeAssetEntries(pk, assetEntryPKs); 3391 } 3392 3393 /** 3394 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 3395 * 3396 * @param pk the primary key of the asset category 3397 * @param assetEntries the asset entries 3398 * @throws SystemException if a system exception occurred 3399 */ 3400 public static void removeAssetEntries(long pk, 3401 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 3402 throws com.liferay.portal.kernel.exception.SystemException { 3403 getPersistence().removeAssetEntries(pk, assetEntries); 3404 } 3405 3406 /** 3407 * 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. 3408 * 3409 * @param pk the primary key of the asset category 3410 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category 3411 * @throws SystemException if a system exception occurred 3412 */ 3413 public static void setAssetEntries(long pk, long[] assetEntryPKs) 3414 throws com.liferay.portal.kernel.exception.SystemException { 3415 getPersistence().setAssetEntries(pk, assetEntryPKs); 3416 } 3417 3418 /** 3419 * 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. 3420 * 3421 * @param pk the primary key of the asset category 3422 * @param assetEntries the asset entries to be associated with the asset category 3423 * @throws SystemException if a system exception occurred 3424 */ 3425 public static void setAssetEntries(long pk, 3426 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 3427 throws com.liferay.portal.kernel.exception.SystemException { 3428 getPersistence().setAssetEntries(pk, assetEntries); 3429 } 3430 3431 /** 3432 * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. 3433 * 3434 * <p> 3435 * 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. 3436 * </p> 3437 * 3438 * @param groupId the ID of the scope 3439 * @param force whether to force the rebuild even if the tree is not stale 3440 */ 3441 public static void rebuildTree(long groupId, boolean force) 3442 throws com.liferay.portal.kernel.exception.SystemException { 3443 getPersistence().rebuildTree(groupId, force); 3444 } 3445 3446 public static void setRebuildTreeEnabled(boolean rebuildTreeEnabled) { 3447 getPersistence().setRebuildTreeEnabled(rebuildTreeEnabled); 3448 } 3449 3450 public static AssetCategoryPersistence getPersistence() { 3451 if (_persistence == null) { 3452 _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName()); 3453 3454 ReferenceRegistry.registerReference(AssetCategoryUtil.class, 3455 "_persistence"); 3456 } 3457 3458 return _persistence; 3459 } 3460 3461 /** 3462 * @deprecated 3463 */ 3464 public void setPersistence(AssetCategoryPersistence persistence) { 3465 } 3466 3467 private static AssetCategoryPersistence _persistence; 3468 }