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