001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.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.service.ServiceContext; 022 023 import com.liferay.portlet.asset.model.AssetCategory; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the asset category service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see AssetCategoryPersistence 036 * @see AssetCategoryPersistenceImpl 037 * @generated 038 */ 039 public class AssetCategoryUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(AssetCategory assetCategory) { 051 getPersistence().clearCache(assetCategory); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<AssetCategory> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<AssetCategory> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<AssetCategory> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static AssetCategory remove(AssetCategory assetCategory) 094 throws SystemException { 095 return getPersistence().remove(assetCategory); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static AssetCategory update(AssetCategory assetCategory, 102 boolean merge) throws SystemException { 103 return getPersistence().update(assetCategory, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static AssetCategory update(AssetCategory assetCategory, 110 boolean merge, ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(assetCategory, merge, serviceContext); 112 } 113 114 /** 115 * Caches the asset category in the entity cache if it is enabled. 116 * 117 * @param assetCategory the asset category to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.asset.model.AssetCategory assetCategory) { 121 getPersistence().cacheResult(assetCategory); 122 } 123 124 /** 125 * Caches the asset categories in the entity cache if it is enabled. 126 * 127 * @param assetCategories the asset categories to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) { 131 getPersistence().cacheResult(assetCategories); 132 } 133 134 /** 135 * Creates a new asset category with the primary key. 136 * 137 * @param categoryId the primary key for the new asset category 138 * @return the new asset category 139 */ 140 public static com.liferay.portlet.asset.model.AssetCategory create( 141 long categoryId) { 142 return getPersistence().create(categoryId); 143 } 144 145 /** 146 * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param categoryId the primary key of the asset category to remove 149 * @return the asset category that was removed 150 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.asset.model.AssetCategory remove( 154 long categoryId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.asset.NoSuchCategoryException { 157 return getPersistence().remove(categoryId); 158 } 159 160 public static com.liferay.portlet.asset.model.AssetCategory updateImpl( 161 com.liferay.portlet.asset.model.AssetCategory assetCategory, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(assetCategory, merge); 165 } 166 167 /** 168 * Finds the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 169 * 170 * @param categoryId the primary key of the asset category to find 171 * @return the asset category 172 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey( 176 long categoryId) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.asset.NoSuchCategoryException { 179 return getPersistence().findByPrimaryKey(categoryId); 180 } 181 182 /** 183 * Finds the asset category with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param categoryId the primary key of the asset category to find 186 * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey( 190 long categoryId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(categoryId); 193 } 194 195 /** 196 * Finds all the asset categories where uuid = ?. 197 * 198 * @param uuid the uuid to search with 199 * @return the matching asset categories 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 203 java.lang.String uuid) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return getPersistence().findByUuid(uuid); 206 } 207 208 /** 209 * Finds a range of all the asset categories where uuid = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param uuid the uuid to search with 216 * @param start the lower bound of the range of asset categories to return 217 * @param end the upper bound of the range of asset categories to return (not inclusive) 218 * @return the range of matching asset categories 219 * @throws SystemException if a system exception occurred 220 */ 221 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 222 java.lang.String uuid, int start, int end) 223 throws com.liferay.portal.kernel.exception.SystemException { 224 return getPersistence().findByUuid(uuid, start, end); 225 } 226 227 /** 228 * Finds an ordered range of all the asset categories where uuid = ?. 229 * 230 * <p> 231 * 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. 232 * </p> 233 * 234 * @param uuid the uuid to search with 235 * @param start the lower bound of the range of asset categories to return 236 * @param end the upper bound of the range of asset categories to return (not inclusive) 237 * @param orderByComparator the comparator to order the results by 238 * @return the ordered range of matching asset categories 239 * @throws SystemException if a system exception occurred 240 */ 241 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 242 java.lang.String uuid, int start, int end, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException { 245 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 246 } 247 248 /** 249 * Finds the first asset category in the ordered set where uuid = ?. 250 * 251 * <p> 252 * 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. 253 * </p> 254 * 255 * @param uuid the uuid to search with 256 * @param orderByComparator the comparator to order the set by 257 * @return the first matching asset category 258 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First( 262 java.lang.String uuid, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.asset.NoSuchCategoryException { 266 return getPersistence().findByUuid_First(uuid, orderByComparator); 267 } 268 269 /** 270 * Finds the last asset category in the ordered set where uuid = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param uuid the uuid to search with 277 * @param orderByComparator the comparator to order the set by 278 * @return the last matching asset category 279 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last( 283 java.lang.String uuid, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.asset.NoSuchCategoryException { 287 return getPersistence().findByUuid_Last(uuid, orderByComparator); 288 } 289 290 /** 291 * Finds the asset categories before and after the current asset category in the ordered set where uuid = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param categoryId the primary key of the current asset category 298 * @param uuid the uuid to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next asset category 301 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext( 305 long categoryId, java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.asset.NoSuchCategoryException { 309 return getPersistence() 310 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator); 311 } 312 313 /** 314 * Finds the asset category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 315 * 316 * @param uuid the uuid to search with 317 * @param groupId the group id to search with 318 * @return the matching asset category 319 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G( 323 java.lang.String uuid, long groupId) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.asset.NoSuchCategoryException { 326 return getPersistence().findByUUID_G(uuid, groupId); 327 } 328 329 /** 330 * Finds the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param uuid the uuid to search with 333 * @param groupId the group id to search with 334 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 338 java.lang.String uuid, long groupId) 339 throws com.liferay.portal.kernel.exception.SystemException { 340 return getPersistence().fetchByUUID_G(uuid, groupId); 341 } 342 343 /** 344 * Finds the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 345 * 346 * @param uuid the uuid to search with 347 * @param groupId the group id to search with 348 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 352 java.lang.String uuid, long groupId, boolean retrieveFromCache) 353 throws com.liferay.portal.kernel.exception.SystemException { 354 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 355 } 356 357 /** 358 * Finds all the asset categories where groupId = ?. 359 * 360 * @param groupId the group id to search with 361 * @return the matching asset categories 362 * @throws SystemException if a system exception occurred 363 */ 364 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 365 long groupId) 366 throws com.liferay.portal.kernel.exception.SystemException { 367 return getPersistence().findByGroupId(groupId); 368 } 369 370 /** 371 * Finds a range of all the asset categories where groupId = ?. 372 * 373 * <p> 374 * 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. 375 * </p> 376 * 377 * @param groupId the group id to search with 378 * @param start the lower bound of the range of asset categories to return 379 * @param end the upper bound of the range of asset categories to return (not inclusive) 380 * @return the range of matching asset categories 381 * @throws SystemException if a system exception occurred 382 */ 383 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 384 long groupId, int start, int end) 385 throws com.liferay.portal.kernel.exception.SystemException { 386 return getPersistence().findByGroupId(groupId, start, end); 387 } 388 389 /** 390 * Finds an ordered range of all the asset categories where groupId = ?. 391 * 392 * <p> 393 * 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. 394 * </p> 395 * 396 * @param groupId the group id to search with 397 * @param start the lower bound of the range of asset categories to return 398 * @param end the upper bound of the range of asset categories to return (not inclusive) 399 * @param orderByComparator the comparator to order the results by 400 * @return the ordered range of matching asset categories 401 * @throws SystemException if a system exception occurred 402 */ 403 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 404 long groupId, int start, int end, 405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 406 throws com.liferay.portal.kernel.exception.SystemException { 407 return getPersistence() 408 .findByGroupId(groupId, start, end, orderByComparator); 409 } 410 411 /** 412 * Finds the first asset category in the ordered set where groupId = ?. 413 * 414 * <p> 415 * 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. 416 * </p> 417 * 418 * @param groupId the group id to search with 419 * @param orderByComparator the comparator to order the set by 420 * @return the first matching asset category 421 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 422 * @throws SystemException if a system exception occurred 423 */ 424 public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_First( 425 long groupId, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException, 428 com.liferay.portlet.asset.NoSuchCategoryException { 429 return getPersistence().findByGroupId_First(groupId, orderByComparator); 430 } 431 432 /** 433 * Finds the last asset category in the ordered set where groupId = ?. 434 * 435 * <p> 436 * 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. 437 * </p> 438 * 439 * @param groupId the group id to search with 440 * @param orderByComparator the comparator to order the set by 441 * @return the last matching asset category 442 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last( 446 long groupId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.asset.NoSuchCategoryException { 450 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 451 } 452 453 /** 454 * Finds the asset categories before and after the current asset category in the ordered set where groupId = ?. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param categoryId the primary key of the current asset category 461 * @param groupId the group id to search with 462 * @param orderByComparator the comparator to order the set by 463 * @return the previous, current, and next asset category 464 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public static com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext( 468 long categoryId, long groupId, 469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 470 throws com.liferay.portal.kernel.exception.SystemException, 471 com.liferay.portlet.asset.NoSuchCategoryException { 472 return getPersistence() 473 .findByGroupId_PrevAndNext(categoryId, groupId, 474 orderByComparator); 475 } 476 477 /** 478 * Filters by the user's permissions and finds all the asset categories where groupId = ?. 479 * 480 * @param groupId the group id to search with 481 * @return the matching asset categories that the user has permission to view 482 * @throws SystemException if a system exception occurred 483 */ 484 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 485 long groupId) 486 throws com.liferay.portal.kernel.exception.SystemException { 487 return getPersistence().filterFindByGroupId(groupId); 488 } 489 490 /** 491 * Filters by the user's permissions and finds a range of all the asset categories where groupId = ?. 492 * 493 * <p> 494 * 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. 495 * </p> 496 * 497 * @param groupId the group id to search with 498 * @param start the lower bound of the range of asset categories to return 499 * @param end the upper bound of the range of asset categories to return (not inclusive) 500 * @return the range of matching asset categories that the user has permission to view 501 * @throws SystemException if a system exception occurred 502 */ 503 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 504 long groupId, int start, int end) 505 throws com.liferay.portal.kernel.exception.SystemException { 506 return getPersistence().filterFindByGroupId(groupId, start, end); 507 } 508 509 /** 510 * Filters by the user's permissions and finds an ordered range of all the asset categories where groupId = ?. 511 * 512 * <p> 513 * 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. 514 * </p> 515 * 516 * @param groupId the group id to search with 517 * @param start the lower bound of the range of asset categories to return 518 * @param end the upper bound of the range of asset categories to return (not inclusive) 519 * @param orderByComparator the comparator to order the results by 520 * @return the ordered range of matching asset categories that the user has permission to view 521 * @throws SystemException if a system exception occurred 522 */ 523 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 524 long groupId, int start, int end, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence() 528 .filterFindByGroupId(groupId, start, end, orderByComparator); 529 } 530 531 /** 532 * Finds all the asset categories where parentCategoryId = ?. 533 * 534 * @param parentCategoryId the parent category id to search with 535 * @return the matching asset categories 536 * @throws SystemException if a system exception occurred 537 */ 538 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 539 long parentCategoryId) 540 throws com.liferay.portal.kernel.exception.SystemException { 541 return getPersistence().findByParentCategoryId(parentCategoryId); 542 } 543 544 /** 545 * Finds a range of all the asset categories where parentCategoryId = ?. 546 * 547 * <p> 548 * 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. 549 * </p> 550 * 551 * @param parentCategoryId the parent category id to search with 552 * @param start the lower bound of the range of asset categories to return 553 * @param end the upper bound of the range of asset categories to return (not inclusive) 554 * @return the range of matching asset categories 555 * @throws SystemException if a system exception occurred 556 */ 557 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 558 long parentCategoryId, int start, int end) 559 throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence() 561 .findByParentCategoryId(parentCategoryId, start, end); 562 } 563 564 /** 565 * Finds an ordered range of all the asset categories where parentCategoryId = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param parentCategoryId the parent category id to search with 572 * @param start the lower bound of the range of asset categories to return 573 * @param end the upper bound of the range of asset categories to return (not inclusive) 574 * @param orderByComparator the comparator to order the results by 575 * @return the ordered range of matching asset categories 576 * @throws SystemException if a system exception occurred 577 */ 578 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 579 long parentCategoryId, int start, int end, 580 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 return getPersistence() 583 .findByParentCategoryId(parentCategoryId, start, end, 584 orderByComparator); 585 } 586 587 /** 588 * Finds the first asset category in the ordered set where parentCategoryId = ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param parentCategoryId the parent category id to search with 595 * @param orderByComparator the comparator to order the set by 596 * @return the first matching asset category 597 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 598 * @throws SystemException if a system exception occurred 599 */ 600 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First( 601 long parentCategoryId, 602 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 603 throws com.liferay.portal.kernel.exception.SystemException, 604 com.liferay.portlet.asset.NoSuchCategoryException { 605 return getPersistence() 606 .findByParentCategoryId_First(parentCategoryId, 607 orderByComparator); 608 } 609 610 /** 611 * Finds the last asset category in the ordered set where parentCategoryId = ?. 612 * 613 * <p> 614 * 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. 615 * </p> 616 * 617 * @param parentCategoryId the parent category id to search with 618 * @param orderByComparator the comparator to order the set by 619 * @return the last matching asset category 620 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last( 624 long parentCategoryId, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException, 627 com.liferay.portlet.asset.NoSuchCategoryException { 628 return getPersistence() 629 .findByParentCategoryId_Last(parentCategoryId, 630 orderByComparator); 631 } 632 633 /** 634 * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. 635 * 636 * <p> 637 * 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. 638 * </p> 639 * 640 * @param categoryId the primary key of the current asset category 641 * @param parentCategoryId the parent category id to search with 642 * @param orderByComparator the comparator to order the set by 643 * @return the previous, current, and next asset category 644 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext( 648 long categoryId, long parentCategoryId, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException, 651 com.liferay.portlet.asset.NoSuchCategoryException { 652 return getPersistence() 653 .findByParentCategoryId_PrevAndNext(categoryId, 654 parentCategoryId, orderByComparator); 655 } 656 657 /** 658 * Finds all the asset categories where vocabularyId = ?. 659 * 660 * @param vocabularyId the vocabulary id to search with 661 * @return the matching asset categories 662 * @throws SystemException if a system exception occurred 663 */ 664 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 665 long vocabularyId) 666 throws com.liferay.portal.kernel.exception.SystemException { 667 return getPersistence().findByVocabularyId(vocabularyId); 668 } 669 670 /** 671 * Finds a range of all the asset categories where vocabularyId = ?. 672 * 673 * <p> 674 * 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. 675 * </p> 676 * 677 * @param vocabularyId the vocabulary id to search with 678 * @param start the lower bound of the range of asset categories to return 679 * @param end the upper bound of the range of asset categories to return (not inclusive) 680 * @return the range of matching asset categories 681 * @throws SystemException if a system exception occurred 682 */ 683 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 684 long vocabularyId, int start, int end) 685 throws com.liferay.portal.kernel.exception.SystemException { 686 return getPersistence().findByVocabularyId(vocabularyId, start, end); 687 } 688 689 /** 690 * Finds an ordered range of all the asset categories where vocabularyId = ?. 691 * 692 * <p> 693 * 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. 694 * </p> 695 * 696 * @param vocabularyId the vocabulary id to search with 697 * @param start the lower bound of the range of asset categories to return 698 * @param end the upper bound of the range of asset categories to return (not inclusive) 699 * @param orderByComparator the comparator to order the results by 700 * @return the ordered range of matching asset categories 701 * @throws SystemException if a system exception occurred 702 */ 703 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 704 long vocabularyId, int start, int end, 705 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence() 708 .findByVocabularyId(vocabularyId, start, end, 709 orderByComparator); 710 } 711 712 /** 713 * Finds the first asset category in the ordered set where vocabularyId = ?. 714 * 715 * <p> 716 * 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. 717 * </p> 718 * 719 * @param vocabularyId the vocabulary id to search with 720 * @param orderByComparator the comparator to order the set by 721 * @return the first matching asset category 722 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 723 * @throws SystemException if a system exception occurred 724 */ 725 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First( 726 long vocabularyId, 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 .findByVocabularyId_First(vocabularyId, orderByComparator); 732 } 733 734 /** 735 * Finds the last asset category in the ordered set where vocabularyId = ?. 736 * 737 * <p> 738 * 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. 739 * </p> 740 * 741 * @param vocabularyId the vocabulary id to search with 742 * @param orderByComparator the comparator to order the set by 743 * @return the last matching asset category 744 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 745 * @throws SystemException if a system exception occurred 746 */ 747 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last( 748 long vocabularyId, 749 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 750 throws com.liferay.portal.kernel.exception.SystemException, 751 com.liferay.portlet.asset.NoSuchCategoryException { 752 return getPersistence() 753 .findByVocabularyId_Last(vocabularyId, orderByComparator); 754 } 755 756 /** 757 * Finds the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. 758 * 759 * <p> 760 * 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. 761 * </p> 762 * 763 * @param categoryId the primary key of the current asset category 764 * @param vocabularyId the vocabulary id to search with 765 * @param orderByComparator the comparator to order the set by 766 * @return the previous, current, and next asset category 767 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 768 * @throws SystemException if a system exception occurred 769 */ 770 public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext( 771 long categoryId, long vocabularyId, 772 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 773 throws com.liferay.portal.kernel.exception.SystemException, 774 com.liferay.portlet.asset.NoSuchCategoryException { 775 return getPersistence() 776 .findByVocabularyId_PrevAndNext(categoryId, vocabularyId, 777 orderByComparator); 778 } 779 780 /** 781 * Finds all the asset categories where parentCategoryId = ? and name = ?. 782 * 783 * @param parentCategoryId the parent category id to search with 784 * @param name the name to search with 785 * @return the matching asset categories 786 * @throws SystemException if a system exception occurred 787 */ 788 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 789 long parentCategoryId, java.lang.String name) 790 throws com.liferay.portal.kernel.exception.SystemException { 791 return getPersistence().findByP_N(parentCategoryId, name); 792 } 793 794 /** 795 * Finds a range of all the asset categories where parentCategoryId = ? and name = ?. 796 * 797 * <p> 798 * 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. 799 * </p> 800 * 801 * @param parentCategoryId the parent category id to search with 802 * @param name the name to search with 803 * @param start the lower bound of the range of asset categories to return 804 * @param end the upper bound of the range of asset categories to return (not inclusive) 805 * @return the range of matching asset categories 806 * @throws SystemException if a system exception occurred 807 */ 808 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 809 long parentCategoryId, java.lang.String name, int start, int end) 810 throws com.liferay.portal.kernel.exception.SystemException { 811 return getPersistence().findByP_N(parentCategoryId, name, start, end); 812 } 813 814 /** 815 * Finds an ordered range of all the asset categories where parentCategoryId = ? and name = ?. 816 * 817 * <p> 818 * 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. 819 * </p> 820 * 821 * @param parentCategoryId the parent category id to search with 822 * @param name the name to search with 823 * @param start the lower bound of the range of asset categories to return 824 * @param end the upper bound of the range of asset categories to return (not inclusive) 825 * @param orderByComparator the comparator to order the results by 826 * @return the ordered range of matching asset categories 827 * @throws SystemException if a system exception occurred 828 */ 829 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 830 long parentCategoryId, java.lang.String name, int start, int end, 831 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 832 throws com.liferay.portal.kernel.exception.SystemException { 833 return getPersistence() 834 .findByP_N(parentCategoryId, name, start, end, 835 orderByComparator); 836 } 837 838 /** 839 * Finds the first asset category in the ordered set where parentCategoryId = ? and name = ?. 840 * 841 * <p> 842 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 843 * </p> 844 * 845 * @param parentCategoryId the parent category id to search with 846 * @param name the name to search with 847 * @param orderByComparator the comparator to order the set by 848 * @return the first matching asset category 849 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 850 * @throws SystemException if a system exception occurred 851 */ 852 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First( 853 long parentCategoryId, java.lang.String name, 854 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 855 throws com.liferay.portal.kernel.exception.SystemException, 856 com.liferay.portlet.asset.NoSuchCategoryException { 857 return getPersistence() 858 .findByP_N_First(parentCategoryId, name, orderByComparator); 859 } 860 861 /** 862 * Finds the last asset category in the ordered set where parentCategoryId = ? and name = ?. 863 * 864 * <p> 865 * 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. 866 * </p> 867 * 868 * @param parentCategoryId the parent category id to search with 869 * @param name the name to search with 870 * @param orderByComparator the comparator to order the set by 871 * @return the last matching asset category 872 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 873 * @throws SystemException if a system exception occurred 874 */ 875 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last( 876 long parentCategoryId, java.lang.String name, 877 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 878 throws com.liferay.portal.kernel.exception.SystemException, 879 com.liferay.portlet.asset.NoSuchCategoryException { 880 return getPersistence() 881 .findByP_N_Last(parentCategoryId, name, orderByComparator); 882 } 883 884 /** 885 * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. 886 * 887 * <p> 888 * 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. 889 * </p> 890 * 891 * @param categoryId the primary key of the current asset category 892 * @param parentCategoryId the parent category id to search with 893 * @param name the name to search with 894 * @param orderByComparator the comparator to order the set by 895 * @return the previous, current, and next asset category 896 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 897 * @throws SystemException if a system exception occurred 898 */ 899 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext( 900 long categoryId, long parentCategoryId, java.lang.String name, 901 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 902 throws com.liferay.portal.kernel.exception.SystemException, 903 com.liferay.portlet.asset.NoSuchCategoryException { 904 return getPersistence() 905 .findByP_N_PrevAndNext(categoryId, parentCategoryId, name, 906 orderByComparator); 907 } 908 909 /** 910 * Finds all the asset categories where parentCategoryId = ? and vocabularyId = ?. 911 * 912 * @param parentCategoryId the parent category id to search with 913 * @param vocabularyId the vocabulary id to search with 914 * @return the matching asset categories 915 * @throws SystemException if a system exception occurred 916 */ 917 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 918 long parentCategoryId, long vocabularyId) 919 throws com.liferay.portal.kernel.exception.SystemException { 920 return getPersistence().findByP_V(parentCategoryId, vocabularyId); 921 } 922 923 /** 924 * Finds a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 925 * 926 * <p> 927 * 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. 928 * </p> 929 * 930 * @param parentCategoryId the parent category id to search with 931 * @param vocabularyId the vocabulary id to search with 932 * @param start the lower bound of the range of asset categories to return 933 * @param end the upper bound of the range of asset categories to return (not inclusive) 934 * @return the range of matching asset categories 935 * @throws SystemException if a system exception occurred 936 */ 937 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 938 long parentCategoryId, long vocabularyId, int start, int end) 939 throws com.liferay.portal.kernel.exception.SystemException { 940 return getPersistence() 941 .findByP_V(parentCategoryId, vocabularyId, start, end); 942 } 943 944 /** 945 * Finds an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 946 * 947 * <p> 948 * 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. 949 * </p> 950 * 951 * @param parentCategoryId the parent category id to search with 952 * @param vocabularyId the vocabulary id to search with 953 * @param start the lower bound of the range of asset categories to return 954 * @param end the upper bound of the range of asset categories to return (not inclusive) 955 * @param orderByComparator the comparator to order the results by 956 * @return the ordered range of matching asset categories 957 * @throws SystemException if a system exception occurred 958 */ 959 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 960 long parentCategoryId, long vocabularyId, int start, int end, 961 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 962 throws com.liferay.portal.kernel.exception.SystemException { 963 return getPersistence() 964 .findByP_V(parentCategoryId, vocabularyId, start, end, 965 orderByComparator); 966 } 967 968 /** 969 * Finds the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 970 * 971 * <p> 972 * 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. 973 * </p> 974 * 975 * @param parentCategoryId the parent category id to search with 976 * @param vocabularyId the vocabulary id to search with 977 * @param orderByComparator the comparator to order the set by 978 * @return the first 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 findByP_V_First( 983 long parentCategoryId, 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 .findByP_V_First(parentCategoryId, vocabularyId, 989 orderByComparator); 990 } 991 992 /** 993 * Finds the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 994 * 995 * <p> 996 * 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. 997 * </p> 998 * 999 * @param parentCategoryId the parent category id to search with 1000 * @param vocabularyId the vocabulary id to search with 1001 * @param orderByComparator the comparator to order the set by 1002 * @return the last matching asset category 1003 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1004 * @throws SystemException if a system exception occurred 1005 */ 1006 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last( 1007 long parentCategoryId, long vocabularyId, 1008 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1009 throws com.liferay.portal.kernel.exception.SystemException, 1010 com.liferay.portlet.asset.NoSuchCategoryException { 1011 return getPersistence() 1012 .findByP_V_Last(parentCategoryId, vocabularyId, 1013 orderByComparator); 1014 } 1015 1016 /** 1017 * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1018 * 1019 * <p> 1020 * 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. 1021 * </p> 1022 * 1023 * @param categoryId the primary key of the current asset category 1024 * @param parentCategoryId the parent category id to search with 1025 * @param vocabularyId the vocabulary id to search with 1026 * @param orderByComparator the comparator to order the set by 1027 * @return the previous, current, and next asset category 1028 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext( 1032 long categoryId, long parentCategoryId, long vocabularyId, 1033 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1034 throws com.liferay.portal.kernel.exception.SystemException, 1035 com.liferay.portlet.asset.NoSuchCategoryException { 1036 return getPersistence() 1037 .findByP_V_PrevAndNext(categoryId, parentCategoryId, 1038 vocabularyId, orderByComparator); 1039 } 1040 1041 /** 1042 * Finds all the asset categories where name = ? and vocabularyId = ?. 1043 * 1044 * @param name the name to search with 1045 * @param vocabularyId the vocabulary id to search with 1046 * @return the matching asset categories 1047 * @throws SystemException if a system exception occurred 1048 */ 1049 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1050 java.lang.String name, long vocabularyId) 1051 throws com.liferay.portal.kernel.exception.SystemException { 1052 return getPersistence().findByN_V(name, vocabularyId); 1053 } 1054 1055 /** 1056 * Finds a range of all the asset categories where name = ? and vocabularyId = ?. 1057 * 1058 * <p> 1059 * 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. 1060 * </p> 1061 * 1062 * @param name the name to search with 1063 * @param vocabularyId the vocabulary id to search with 1064 * @param start the lower bound of the range of asset categories to return 1065 * @param end the upper bound of the range of asset categories to return (not inclusive) 1066 * @return the range of matching asset categories 1067 * @throws SystemException if a system exception occurred 1068 */ 1069 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1070 java.lang.String name, long vocabularyId, int start, int end) 1071 throws com.liferay.portal.kernel.exception.SystemException { 1072 return getPersistence().findByN_V(name, vocabularyId, start, end); 1073 } 1074 1075 /** 1076 * Finds an ordered range of all the asset categories where name = ? and vocabularyId = ?. 1077 * 1078 * <p> 1079 * 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. 1080 * </p> 1081 * 1082 * @param name the name to search with 1083 * @param vocabularyId the vocabulary id to search with 1084 * @param start the lower bound of the range of asset categories to return 1085 * @param end the upper bound of the range of asset categories to return (not inclusive) 1086 * @param orderByComparator the comparator to order the results by 1087 * @return the ordered range of matching asset categories 1088 * @throws SystemException if a system exception occurred 1089 */ 1090 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1091 java.lang.String name, long vocabularyId, int start, int end, 1092 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1093 throws com.liferay.portal.kernel.exception.SystemException { 1094 return getPersistence() 1095 .findByN_V(name, vocabularyId, start, end, orderByComparator); 1096 } 1097 1098 /** 1099 * Finds the first asset category in the ordered set where name = ? and vocabularyId = ?. 1100 * 1101 * <p> 1102 * 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. 1103 * </p> 1104 * 1105 * @param name the name to search with 1106 * @param vocabularyId the vocabulary id to search with 1107 * @param orderByComparator the comparator to order the set by 1108 * @return the first matching asset category 1109 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1110 * @throws SystemException if a system exception occurred 1111 */ 1112 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First( 1113 java.lang.String name, long vocabularyId, 1114 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1115 throws com.liferay.portal.kernel.exception.SystemException, 1116 com.liferay.portlet.asset.NoSuchCategoryException { 1117 return getPersistence() 1118 .findByN_V_First(name, vocabularyId, orderByComparator); 1119 } 1120 1121 /** 1122 * Finds the last asset category in the ordered set where name = ? and vocabularyId = ?. 1123 * 1124 * <p> 1125 * 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. 1126 * </p> 1127 * 1128 * @param name the name to search with 1129 * @param vocabularyId the vocabulary id to search with 1130 * @param orderByComparator the comparator to order the set by 1131 * @return the last matching asset category 1132 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last( 1136 java.lang.String name, long vocabularyId, 1137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1138 throws com.liferay.portal.kernel.exception.SystemException, 1139 com.liferay.portlet.asset.NoSuchCategoryException { 1140 return getPersistence() 1141 .findByN_V_Last(name, vocabularyId, orderByComparator); 1142 } 1143 1144 /** 1145 * Finds the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. 1146 * 1147 * <p> 1148 * 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. 1149 * </p> 1150 * 1151 * @param categoryId the primary key of the current asset category 1152 * @param name the name to search with 1153 * @param vocabularyId the vocabulary id to search with 1154 * @param orderByComparator the comparator to order the set by 1155 * @return the previous, current, and next asset category 1156 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1157 * @throws SystemException if a system exception occurred 1158 */ 1159 public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext( 1160 long categoryId, java.lang.String name, long vocabularyId, 1161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1162 throws com.liferay.portal.kernel.exception.SystemException, 1163 com.liferay.portlet.asset.NoSuchCategoryException { 1164 return getPersistence() 1165 .findByN_V_PrevAndNext(categoryId, name, vocabularyId, 1166 orderByComparator); 1167 } 1168 1169 /** 1170 * Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 1171 * 1172 * @param parentCategoryId the parent category id to search with 1173 * @param name the name to search with 1174 * @param vocabularyId the vocabulary id to search with 1175 * @return the matching asset category 1176 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_V( 1180 long parentCategoryId, java.lang.String name, long vocabularyId) 1181 throws com.liferay.portal.kernel.exception.SystemException, 1182 com.liferay.portlet.asset.NoSuchCategoryException { 1183 return getPersistence().findByP_N_V(parentCategoryId, name, vocabularyId); 1184 } 1185 1186 /** 1187 * Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1188 * 1189 * @param parentCategoryId the parent category id to search with 1190 * @param name the name to search with 1191 * @param vocabularyId the vocabulary id to search with 1192 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 1193 * @throws SystemException if a system exception occurred 1194 */ 1195 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 1196 long parentCategoryId, java.lang.String name, long vocabularyId) 1197 throws com.liferay.portal.kernel.exception.SystemException { 1198 return getPersistence() 1199 .fetchByP_N_V(parentCategoryId, name, vocabularyId); 1200 } 1201 1202 /** 1203 * Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1204 * 1205 * @param parentCategoryId the parent category id to search with 1206 * @param name the name to search with 1207 * @param vocabularyId the vocabulary id to search with 1208 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 1212 long parentCategoryId, java.lang.String name, long vocabularyId, 1213 boolean retrieveFromCache) 1214 throws com.liferay.portal.kernel.exception.SystemException { 1215 return getPersistence() 1216 .fetchByP_N_V(parentCategoryId, name, vocabularyId, 1217 retrieveFromCache); 1218 } 1219 1220 /** 1221 * Finds all the asset categories. 1222 * 1223 * @return the asset categories 1224 * @throws SystemException if a system exception occurred 1225 */ 1226 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll() 1227 throws com.liferay.portal.kernel.exception.SystemException { 1228 return getPersistence().findAll(); 1229 } 1230 1231 /** 1232 * Finds a range of all the asset categories. 1233 * 1234 * <p> 1235 * 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. 1236 * </p> 1237 * 1238 * @param start the lower bound of the range of asset categories to return 1239 * @param end the upper bound of the range of asset categories to return (not inclusive) 1240 * @return the range of asset categories 1241 * @throws SystemException if a system exception occurred 1242 */ 1243 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 1244 int start, int end) 1245 throws com.liferay.portal.kernel.exception.SystemException { 1246 return getPersistence().findAll(start, end); 1247 } 1248 1249 /** 1250 * Finds an ordered range of all the asset categories. 1251 * 1252 * <p> 1253 * 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. 1254 * </p> 1255 * 1256 * @param start the lower bound of the range of asset categories to return 1257 * @param end the upper bound of the range of asset categories to return (not inclusive) 1258 * @param orderByComparator the comparator to order the results by 1259 * @return the ordered range of asset categories 1260 * @throws SystemException if a system exception occurred 1261 */ 1262 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 1263 int start, int end, 1264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1265 throws com.liferay.portal.kernel.exception.SystemException { 1266 return getPersistence().findAll(start, end, orderByComparator); 1267 } 1268 1269 /** 1270 * Removes all the asset categories where uuid = ? from the database. 1271 * 1272 * @param uuid the uuid to search with 1273 * @throws SystemException if a system exception occurred 1274 */ 1275 public static void removeByUuid(java.lang.String uuid) 1276 throws com.liferay.portal.kernel.exception.SystemException { 1277 getPersistence().removeByUuid(uuid); 1278 } 1279 1280 /** 1281 * Removes the asset category where uuid = ? and groupId = ? from the database. 1282 * 1283 * @param uuid the uuid to search with 1284 * @param groupId the group id to search with 1285 * @throws SystemException if a system exception occurred 1286 */ 1287 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1288 throws com.liferay.portal.kernel.exception.SystemException, 1289 com.liferay.portlet.asset.NoSuchCategoryException { 1290 getPersistence().removeByUUID_G(uuid, groupId); 1291 } 1292 1293 /** 1294 * Removes all the asset categories where groupId = ? from the database. 1295 * 1296 * @param groupId the group id to search with 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public static void removeByGroupId(long groupId) 1300 throws com.liferay.portal.kernel.exception.SystemException { 1301 getPersistence().removeByGroupId(groupId); 1302 } 1303 1304 /** 1305 * Removes all the asset categories where parentCategoryId = ? from the database. 1306 * 1307 * @param parentCategoryId the parent category id to search with 1308 * @throws SystemException if a system exception occurred 1309 */ 1310 public static void removeByParentCategoryId(long parentCategoryId) 1311 throws com.liferay.portal.kernel.exception.SystemException { 1312 getPersistence().removeByParentCategoryId(parentCategoryId); 1313 } 1314 1315 /** 1316 * Removes all the asset categories where vocabularyId = ? from the database. 1317 * 1318 * @param vocabularyId the vocabulary id to search with 1319 * @throws SystemException if a system exception occurred 1320 */ 1321 public static void removeByVocabularyId(long vocabularyId) 1322 throws com.liferay.portal.kernel.exception.SystemException { 1323 getPersistence().removeByVocabularyId(vocabularyId); 1324 } 1325 1326 /** 1327 * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. 1328 * 1329 * @param parentCategoryId the parent category id to search with 1330 * @param name the name to search with 1331 * @throws SystemException if a system exception occurred 1332 */ 1333 public static void removeByP_N(long parentCategoryId, java.lang.String name) 1334 throws com.liferay.portal.kernel.exception.SystemException { 1335 getPersistence().removeByP_N(parentCategoryId, name); 1336 } 1337 1338 /** 1339 * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. 1340 * 1341 * @param parentCategoryId the parent category id to search with 1342 * @param vocabularyId the vocabulary id to search with 1343 * @throws SystemException if a system exception occurred 1344 */ 1345 public static void removeByP_V(long parentCategoryId, long vocabularyId) 1346 throws com.liferay.portal.kernel.exception.SystemException { 1347 getPersistence().removeByP_V(parentCategoryId, vocabularyId); 1348 } 1349 1350 /** 1351 * Removes all the asset categories where name = ? and vocabularyId = ? from the database. 1352 * 1353 * @param name the name to search with 1354 * @param vocabularyId the vocabulary id to search with 1355 * @throws SystemException if a system exception occurred 1356 */ 1357 public static void removeByN_V(java.lang.String name, long vocabularyId) 1358 throws com.liferay.portal.kernel.exception.SystemException { 1359 getPersistence().removeByN_V(name, vocabularyId); 1360 } 1361 1362 /** 1363 * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 1364 * 1365 * @param parentCategoryId the parent category id to search with 1366 * @param name the name to search with 1367 * @param vocabularyId the vocabulary id to search with 1368 * @throws SystemException if a system exception occurred 1369 */ 1370 public static void removeByP_N_V(long parentCategoryId, 1371 java.lang.String name, long vocabularyId) 1372 throws com.liferay.portal.kernel.exception.SystemException, 1373 com.liferay.portlet.asset.NoSuchCategoryException { 1374 getPersistence().removeByP_N_V(parentCategoryId, name, vocabularyId); 1375 } 1376 1377 /** 1378 * Removes all the asset categories from the database. 1379 * 1380 * @throws SystemException if a system exception occurred 1381 */ 1382 public static void removeAll() 1383 throws com.liferay.portal.kernel.exception.SystemException { 1384 getPersistence().removeAll(); 1385 } 1386 1387 /** 1388 * Counts all the asset categories where uuid = ?. 1389 * 1390 * @param uuid the uuid to search with 1391 * @return the number of matching asset categories 1392 * @throws SystemException if a system exception occurred 1393 */ 1394 public static int countByUuid(java.lang.String uuid) 1395 throws com.liferay.portal.kernel.exception.SystemException { 1396 return getPersistence().countByUuid(uuid); 1397 } 1398 1399 /** 1400 * Counts all the asset categories where uuid = ? and groupId = ?. 1401 * 1402 * @param uuid the uuid to search with 1403 * @param groupId the group id to search with 1404 * @return the number of matching asset categories 1405 * @throws SystemException if a system exception occurred 1406 */ 1407 public static int countByUUID_G(java.lang.String uuid, long groupId) 1408 throws com.liferay.portal.kernel.exception.SystemException { 1409 return getPersistence().countByUUID_G(uuid, groupId); 1410 } 1411 1412 /** 1413 * Counts all the asset categories where groupId = ?. 1414 * 1415 * @param groupId the group id to search with 1416 * @return the number of matching asset categories 1417 * @throws SystemException if a system exception occurred 1418 */ 1419 public static int countByGroupId(long groupId) 1420 throws com.liferay.portal.kernel.exception.SystemException { 1421 return getPersistence().countByGroupId(groupId); 1422 } 1423 1424 /** 1425 * Filters by the user's permissions and counts all the asset categories where groupId = ?. 1426 * 1427 * @param groupId the group id to search with 1428 * @return the number of matching asset categories that the user has permission to view 1429 * @throws SystemException if a system exception occurred 1430 */ 1431 public static int filterCountByGroupId(long groupId) 1432 throws com.liferay.portal.kernel.exception.SystemException { 1433 return getPersistence().filterCountByGroupId(groupId); 1434 } 1435 1436 /** 1437 * Counts all the asset categories where parentCategoryId = ?. 1438 * 1439 * @param parentCategoryId the parent category id to search with 1440 * @return the number of matching asset categories 1441 * @throws SystemException if a system exception occurred 1442 */ 1443 public static int countByParentCategoryId(long parentCategoryId) 1444 throws com.liferay.portal.kernel.exception.SystemException { 1445 return getPersistence().countByParentCategoryId(parentCategoryId); 1446 } 1447 1448 /** 1449 * Counts all the asset categories where vocabularyId = ?. 1450 * 1451 * @param vocabularyId the vocabulary id to search with 1452 * @return the number of matching asset categories 1453 * @throws SystemException if a system exception occurred 1454 */ 1455 public static int countByVocabularyId(long vocabularyId) 1456 throws com.liferay.portal.kernel.exception.SystemException { 1457 return getPersistence().countByVocabularyId(vocabularyId); 1458 } 1459 1460 /** 1461 * Counts all the asset categories where parentCategoryId = ? and name = ?. 1462 * 1463 * @param parentCategoryId the parent category id to search with 1464 * @param name the name to search with 1465 * @return the number of matching asset categories 1466 * @throws SystemException if a system exception occurred 1467 */ 1468 public static int countByP_N(long parentCategoryId, java.lang.String name) 1469 throws com.liferay.portal.kernel.exception.SystemException { 1470 return getPersistence().countByP_N(parentCategoryId, name); 1471 } 1472 1473 /** 1474 * Counts all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1475 * 1476 * @param parentCategoryId the parent category id to search with 1477 * @param vocabularyId the vocabulary id to search with 1478 * @return the number of matching asset categories 1479 * @throws SystemException if a system exception occurred 1480 */ 1481 public static int countByP_V(long parentCategoryId, long vocabularyId) 1482 throws com.liferay.portal.kernel.exception.SystemException { 1483 return getPersistence().countByP_V(parentCategoryId, vocabularyId); 1484 } 1485 1486 /** 1487 * Counts all the asset categories where name = ? and vocabularyId = ?. 1488 * 1489 * @param name the name to search with 1490 * @param vocabularyId the vocabulary id to search with 1491 * @return the number of matching asset categories 1492 * @throws SystemException if a system exception occurred 1493 */ 1494 public static int countByN_V(java.lang.String name, long vocabularyId) 1495 throws com.liferay.portal.kernel.exception.SystemException { 1496 return getPersistence().countByN_V(name, vocabularyId); 1497 } 1498 1499 /** 1500 * Counts all the asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. 1501 * 1502 * @param parentCategoryId the parent category id to search with 1503 * @param name the name to search with 1504 * @param vocabularyId the vocabulary id to search with 1505 * @return the number of matching asset categories 1506 * @throws SystemException if a system exception occurred 1507 */ 1508 public static int countByP_N_V(long parentCategoryId, 1509 java.lang.String name, long vocabularyId) 1510 throws com.liferay.portal.kernel.exception.SystemException { 1511 return getPersistence() 1512 .countByP_N_V(parentCategoryId, name, vocabularyId); 1513 } 1514 1515 /** 1516 * Counts all the asset categories. 1517 * 1518 * @return the number of asset categories 1519 * @throws SystemException if a system exception occurred 1520 */ 1521 public static int countAll() 1522 throws com.liferay.portal.kernel.exception.SystemException { 1523 return getPersistence().countAll(); 1524 } 1525 1526 /** 1527 * Gets all the asset entries associated with the asset category. 1528 * 1529 * @param pk the primary key of the asset category to get the associated asset entries for 1530 * @return the asset entries associated with the asset category 1531 * @throws SystemException if a system exception occurred 1532 */ 1533 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1534 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1535 return getPersistence().getAssetEntries(pk); 1536 } 1537 1538 /** 1539 * Gets a range of all the asset entries associated with the asset category. 1540 * 1541 * <p> 1542 * 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. 1543 * </p> 1544 * 1545 * @param pk the primary key of the asset category to get the associated asset entries for 1546 * @param start the lower bound of the range of asset categories to return 1547 * @param end the upper bound of the range of asset categories to return (not inclusive) 1548 * @return the range of asset entries associated with the asset category 1549 * @throws SystemException if a system exception occurred 1550 */ 1551 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1552 long pk, int start, int end) 1553 throws com.liferay.portal.kernel.exception.SystemException { 1554 return getPersistence().getAssetEntries(pk, start, end); 1555 } 1556 1557 /** 1558 * Gets an ordered range of all the asset entries associated with the asset category. 1559 * 1560 * <p> 1561 * 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. 1562 * </p> 1563 * 1564 * @param pk the primary key of the asset category to get the associated asset entries for 1565 * @param start the lower bound of the range of asset categories to return 1566 * @param end the upper bound of the range of asset categories to return (not inclusive) 1567 * @param orderByComparator the comparator to order the results by 1568 * @return the ordered range of asset entries associated with the asset category 1569 * @throws SystemException if a system exception occurred 1570 */ 1571 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1572 long pk, int start, int end, 1573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1574 throws com.liferay.portal.kernel.exception.SystemException { 1575 return getPersistence() 1576 .getAssetEntries(pk, start, end, orderByComparator); 1577 } 1578 1579 /** 1580 * Gets the number of asset entries associated with the asset category. 1581 * 1582 * @param pk the primary key of the asset category to get the number of associated asset entries for 1583 * @return the number of asset entries associated with the asset category 1584 * @throws SystemException if a system exception occurred 1585 */ 1586 public static int getAssetEntriesSize(long pk) 1587 throws com.liferay.portal.kernel.exception.SystemException { 1588 return getPersistence().getAssetEntriesSize(pk); 1589 } 1590 1591 /** 1592 * Determines whether the asset entry is associated with the asset category. 1593 * 1594 * @param pk the primary key of the asset category 1595 * @param assetEntryPK the primary key of the asset entry 1596 * @return whether the asset entry is associated with the asset category 1597 * @throws SystemException if a system exception occurred 1598 */ 1599 public static boolean containsAssetEntry(long pk, long assetEntryPK) 1600 throws com.liferay.portal.kernel.exception.SystemException { 1601 return getPersistence().containsAssetEntry(pk, assetEntryPK); 1602 } 1603 1604 /** 1605 * Determines whether the asset category has any asset entries associated with it. 1606 * 1607 * @param pk the primary key of the asset category to check for associations with asset entries 1608 * @return whether the asset category has any asset entries associated with it 1609 * @throws SystemException if a system exception occurred 1610 */ 1611 public static boolean containsAssetEntries(long pk) 1612 throws com.liferay.portal.kernel.exception.SystemException { 1613 return getPersistence().containsAssetEntries(pk); 1614 } 1615 1616 /** 1617 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1618 * 1619 * @param pk the primary key of the asset category 1620 * @param assetEntryPK the primary key of the asset entry 1621 * @throws SystemException if a system exception occurred 1622 */ 1623 public static void addAssetEntry(long pk, long assetEntryPK) 1624 throws com.liferay.portal.kernel.exception.SystemException { 1625 getPersistence().addAssetEntry(pk, assetEntryPK); 1626 } 1627 1628 /** 1629 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1630 * 1631 * @param pk the primary key of the asset category 1632 * @param assetEntry the asset entry 1633 * @throws SystemException if a system exception occurred 1634 */ 1635 public static void addAssetEntry(long pk, 1636 com.liferay.portlet.asset.model.AssetEntry assetEntry) 1637 throws com.liferay.portal.kernel.exception.SystemException { 1638 getPersistence().addAssetEntry(pk, assetEntry); 1639 } 1640 1641 /** 1642 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1643 * 1644 * @param pk the primary key of the asset category 1645 * @param assetEntryPKs the primary keys of the asset entries 1646 * @throws SystemException if a system exception occurred 1647 */ 1648 public static void addAssetEntries(long pk, long[] assetEntryPKs) 1649 throws com.liferay.portal.kernel.exception.SystemException { 1650 getPersistence().addAssetEntries(pk, assetEntryPKs); 1651 } 1652 1653 /** 1654 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1655 * 1656 * @param pk the primary key of the asset category 1657 * @param assetEntries the asset entries 1658 * @throws SystemException if a system exception occurred 1659 */ 1660 public static void addAssetEntries(long pk, 1661 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1662 throws com.liferay.portal.kernel.exception.SystemException { 1663 getPersistence().addAssetEntries(pk, assetEntries); 1664 } 1665 1666 /** 1667 * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1668 * 1669 * @param pk the primary key of the asset category to clear the associated asset entries from 1670 * @throws SystemException if a system exception occurred 1671 */ 1672 public static void clearAssetEntries(long pk) 1673 throws com.liferay.portal.kernel.exception.SystemException { 1674 getPersistence().clearAssetEntries(pk); 1675 } 1676 1677 /** 1678 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1679 * 1680 * @param pk the primary key of the asset category 1681 * @param assetEntryPK the primary key of the asset entry 1682 * @throws SystemException if a system exception occurred 1683 */ 1684 public static void removeAssetEntry(long pk, long assetEntryPK) 1685 throws com.liferay.portal.kernel.exception.SystemException { 1686 getPersistence().removeAssetEntry(pk, assetEntryPK); 1687 } 1688 1689 /** 1690 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1691 * 1692 * @param pk the primary key of the asset category 1693 * @param assetEntry the asset entry 1694 * @throws SystemException if a system exception occurred 1695 */ 1696 public static void removeAssetEntry(long pk, 1697 com.liferay.portlet.asset.model.AssetEntry assetEntry) 1698 throws com.liferay.portal.kernel.exception.SystemException { 1699 getPersistence().removeAssetEntry(pk, assetEntry); 1700 } 1701 1702 /** 1703 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1704 * 1705 * @param pk the primary key of the asset category 1706 * @param assetEntryPKs the primary keys of the asset entries 1707 * @throws SystemException if a system exception occurred 1708 */ 1709 public static void removeAssetEntries(long pk, long[] assetEntryPKs) 1710 throws com.liferay.portal.kernel.exception.SystemException { 1711 getPersistence().removeAssetEntries(pk, assetEntryPKs); 1712 } 1713 1714 /** 1715 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1716 * 1717 * @param pk the primary key of the asset category 1718 * @param assetEntries the asset entries 1719 * @throws SystemException if a system exception occurred 1720 */ 1721 public static void removeAssetEntries(long pk, 1722 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1723 throws com.liferay.portal.kernel.exception.SystemException { 1724 getPersistence().removeAssetEntries(pk, assetEntries); 1725 } 1726 1727 /** 1728 * 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. 1729 * 1730 * @param pk the primary key of the asset category to set the associations for 1731 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category 1732 * @throws SystemException if a system exception occurred 1733 */ 1734 public static void setAssetEntries(long pk, long[] assetEntryPKs) 1735 throws com.liferay.portal.kernel.exception.SystemException { 1736 getPersistence().setAssetEntries(pk, assetEntryPKs); 1737 } 1738 1739 /** 1740 * 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. 1741 * 1742 * @param pk the primary key of the asset category to set the associations for 1743 * @param assetEntries the asset entries to be associated with the asset category 1744 * @throws SystemException if a system exception occurred 1745 */ 1746 public static void setAssetEntries(long pk, 1747 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1748 throws com.liferay.portal.kernel.exception.SystemException { 1749 getPersistence().setAssetEntries(pk, assetEntries); 1750 } 1751 1752 /** 1753 * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. 1754 * 1755 * <p> 1756 * 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. 1757 * </p> 1758 * 1759 * @param groupId the id of the scope to rebuild the tree for 1760 * @param force whether to force the rebuild even if the tree is not stale 1761 */ 1762 public static void rebuildTree(long groupId, boolean force) 1763 throws com.liferay.portal.kernel.exception.SystemException { 1764 getPersistence().rebuildTree(groupId, force); 1765 } 1766 1767 public static AssetCategoryPersistence getPersistence() { 1768 if (_persistence == null) { 1769 _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName()); 1770 } 1771 1772 return _persistence; 1773 } 1774 1775 public void setPersistence(AssetCategoryPersistence persistence) { 1776 _persistence = persistence; 1777 } 1778 1779 private static AssetCategoryPersistence _persistence; 1780 }