001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.asset.model.AssetEntry; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the asset entry service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see AssetEntryPersistence 036 * @see AssetEntryPersistenceImpl 037 * @generated 038 */ 039 public class AssetEntryUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(AssetEntry assetEntry) { 051 getPersistence().clearCache(assetEntry); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<AssetEntry> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<AssetEntry> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<AssetEntry> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static AssetEntry remove(AssetEntry assetEntry) 094 throws SystemException { 095 return getPersistence().remove(assetEntry); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static AssetEntry update(AssetEntry assetEntry, boolean merge) 102 throws SystemException { 103 return getPersistence().update(assetEntry, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static AssetEntry update(AssetEntry assetEntry, boolean merge, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(assetEntry, merge, serviceContext); 112 } 113 114 /** 115 * Caches the asset entry in the entity cache if it is enabled. 116 * 117 * @param assetEntry the asset entry to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.asset.model.AssetEntry assetEntry) { 121 getPersistence().cacheResult(assetEntry); 122 } 123 124 /** 125 * Caches the asset entries in the entity cache if it is enabled. 126 * 127 * @param assetEntries the asset entries to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) { 131 getPersistence().cacheResult(assetEntries); 132 } 133 134 /** 135 * Creates a new asset entry with the primary key. 136 * 137 * @param entryId the primary key for the new asset entry 138 * @return the new asset entry 139 */ 140 public static com.liferay.portlet.asset.model.AssetEntry create( 141 long entryId) { 142 return getPersistence().create(entryId); 143 } 144 145 /** 146 * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param entryId the primary key of the asset entry to remove 149 * @return the asset entry that was removed 150 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.asset.model.AssetEntry remove( 154 long entryId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.asset.NoSuchEntryException { 157 return getPersistence().remove(entryId); 158 } 159 160 public static com.liferay.portlet.asset.model.AssetEntry updateImpl( 161 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(assetEntry, merge); 164 } 165 166 /** 167 * Finds the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 168 * 169 * @param entryId the primary key of the asset entry to find 170 * @return the asset entry 171 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey( 175 long entryId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.asset.NoSuchEntryException { 178 return getPersistence().findByPrimaryKey(entryId); 179 } 180 181 /** 182 * Finds the asset entry with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param entryId the primary key of the asset entry to find 185 * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey( 189 long entryId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(entryId); 192 } 193 194 /** 195 * Finds all the asset entries where companyId = ?. 196 * 197 * @param companyId the company id to search with 198 * @return the matching asset entries 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 202 long companyId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByCompanyId(companyId); 205 } 206 207 /** 208 * Finds a range of all the asset entries where companyId = ?. 209 * 210 * <p> 211 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 212 * </p> 213 * 214 * @param companyId the company id to search with 215 * @param start the lower bound of the range of asset entries to return 216 * @param end the upper bound of the range of asset entries to return (not inclusive) 217 * @return the range of matching asset entries 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 221 long companyId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByCompanyId(companyId, start, end); 224 } 225 226 /** 227 * Finds an ordered range of all the asset entries where companyId = ?. 228 * 229 * <p> 230 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 231 * </p> 232 * 233 * @param companyId the company id to search with 234 * @param start the lower bound of the range of asset entries to return 235 * @param end the upper bound of the range of asset entries to return (not inclusive) 236 * @param orderByComparator the comparator to order the results by 237 * @return the ordered range of matching asset entries 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 241 long companyId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByCompanyId(companyId, start, end, orderByComparator); 246 } 247 248 /** 249 * Finds the first asset entry in the ordered set where companyId = ?. 250 * 251 * <p> 252 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 253 * </p> 254 * 255 * @param companyId the company id to search with 256 * @param orderByComparator the comparator to order the set by 257 * @return the first matching asset entry 258 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First( 262 long companyId, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.asset.NoSuchEntryException { 266 return getPersistence() 267 .findByCompanyId_First(companyId, orderByComparator); 268 } 269 270 /** 271 * Finds the last asset entry in the ordered set where companyId = ?. 272 * 273 * <p> 274 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 275 * </p> 276 * 277 * @param companyId the company id to search with 278 * @param orderByComparator the comparator to order the set by 279 * @return the last matching asset entry 280 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last( 284 long companyId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.kernel.exception.SystemException, 287 com.liferay.portlet.asset.NoSuchEntryException { 288 return getPersistence() 289 .findByCompanyId_Last(companyId, orderByComparator); 290 } 291 292 /** 293 * Finds the asset entries before and after the current asset entry in the ordered set where companyId = ?. 294 * 295 * <p> 296 * 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. 297 * </p> 298 * 299 * @param entryId the primary key of the current asset entry 300 * @param companyId the company id to search with 301 * @param orderByComparator the comparator to order the set by 302 * @return the previous, current, and next asset entry 303 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext( 307 long entryId, long companyId, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException, 310 com.liferay.portlet.asset.NoSuchEntryException { 311 return getPersistence() 312 .findByCompanyId_PrevAndNext(entryId, companyId, 313 orderByComparator); 314 } 315 316 /** 317 * Finds the asset entry where groupId = ? and classUuid = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 318 * 319 * @param groupId the group id to search with 320 * @param classUuid the class uuid to search with 321 * @return the matching asset entry 322 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.asset.model.AssetEntry findByG_CU( 326 long groupId, java.lang.String classUuid) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.asset.NoSuchEntryException { 329 return getPersistence().findByG_CU(groupId, classUuid); 330 } 331 332 /** 333 * Finds the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 334 * 335 * @param groupId the group id to search with 336 * @param classUuid the class uuid to search with 337 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 338 * @throws SystemException if a system exception occurred 339 */ 340 public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 341 long groupId, java.lang.String classUuid) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 return getPersistence().fetchByG_CU(groupId, classUuid); 344 } 345 346 /** 347 * Finds the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 348 * 349 * @param groupId the group id to search with 350 * @param classUuid the class uuid to search with 351 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 355 long groupId, java.lang.String classUuid, boolean retrieveFromCache) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence() 358 .fetchByG_CU(groupId, classUuid, retrieveFromCache); 359 } 360 361 /** 362 * Finds the asset entry where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 363 * 364 * @param classNameId the class name id to search with 365 * @param classPK the class p k to search with 366 * @return the matching asset entry 367 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public static com.liferay.portlet.asset.model.AssetEntry findByC_C( 371 long classNameId, long classPK) 372 throws com.liferay.portal.kernel.exception.SystemException, 373 com.liferay.portlet.asset.NoSuchEntryException { 374 return getPersistence().findByC_C(classNameId, classPK); 375 } 376 377 /** 378 * Finds the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 379 * 380 * @param classNameId the class name id to search with 381 * @param classPK the class p k to search with 382 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 386 long classNameId, long classPK) 387 throws com.liferay.portal.kernel.exception.SystemException { 388 return getPersistence().fetchByC_C(classNameId, classPK); 389 } 390 391 /** 392 * Finds the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 393 * 394 * @param classNameId the class name id to search with 395 * @param classPK the class p k to search with 396 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 397 * @throws SystemException if a system exception occurred 398 */ 399 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 400 long classNameId, long classPK, boolean retrieveFromCache) 401 throws com.liferay.portal.kernel.exception.SystemException { 402 return getPersistence() 403 .fetchByC_C(classNameId, classPK, retrieveFromCache); 404 } 405 406 /** 407 * Finds all the asset entries. 408 * 409 * @return the asset entries 410 * @throws SystemException if a system exception occurred 411 */ 412 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll() 413 throws com.liferay.portal.kernel.exception.SystemException { 414 return getPersistence().findAll(); 415 } 416 417 /** 418 * Finds a range of all the asset entries. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param start the lower bound of the range of asset entries to return 425 * @param end the upper bound of the range of asset entries to return (not inclusive) 426 * @return the range of asset entries 427 * @throws SystemException if a system exception occurred 428 */ 429 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 430 int start, int end) 431 throws com.liferay.portal.kernel.exception.SystemException { 432 return getPersistence().findAll(start, end); 433 } 434 435 /** 436 * Finds an ordered range of all the asset entries. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param start the lower bound of the range of asset entries to return 443 * @param end the upper bound of the range of asset entries to return (not inclusive) 444 * @param orderByComparator the comparator to order the results by 445 * @return the ordered range of asset entries 446 * @throws SystemException if a system exception occurred 447 */ 448 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 449 int start, int end, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException { 452 return getPersistence().findAll(start, end, orderByComparator); 453 } 454 455 /** 456 * Removes all the asset entries where companyId = ? from the database. 457 * 458 * @param companyId the company id to search with 459 * @throws SystemException if a system exception occurred 460 */ 461 public static void removeByCompanyId(long companyId) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 getPersistence().removeByCompanyId(companyId); 464 } 465 466 /** 467 * Removes the asset entry where groupId = ? and classUuid = ? from the database. 468 * 469 * @param groupId the group id to search with 470 * @param classUuid the class uuid to search with 471 * @throws SystemException if a system exception occurred 472 */ 473 public static void removeByG_CU(long groupId, java.lang.String classUuid) 474 throws com.liferay.portal.kernel.exception.SystemException, 475 com.liferay.portlet.asset.NoSuchEntryException { 476 getPersistence().removeByG_CU(groupId, classUuid); 477 } 478 479 /** 480 * Removes the asset entry where classNameId = ? and classPK = ? from the database. 481 * 482 * @param classNameId the class name id to search with 483 * @param classPK the class p k to search with 484 * @throws SystemException if a system exception occurred 485 */ 486 public static void removeByC_C(long classNameId, long classPK) 487 throws com.liferay.portal.kernel.exception.SystemException, 488 com.liferay.portlet.asset.NoSuchEntryException { 489 getPersistence().removeByC_C(classNameId, classPK); 490 } 491 492 /** 493 * Removes all the asset entries from the database. 494 * 495 * @throws SystemException if a system exception occurred 496 */ 497 public static void removeAll() 498 throws com.liferay.portal.kernel.exception.SystemException { 499 getPersistence().removeAll(); 500 } 501 502 /** 503 * Counts all the asset entries where companyId = ?. 504 * 505 * @param companyId the company id to search with 506 * @return the number of matching asset entries 507 * @throws SystemException if a system exception occurred 508 */ 509 public static int countByCompanyId(long companyId) 510 throws com.liferay.portal.kernel.exception.SystemException { 511 return getPersistence().countByCompanyId(companyId); 512 } 513 514 /** 515 * Counts all the asset entries where groupId = ? and classUuid = ?. 516 * 517 * @param groupId the group id to search with 518 * @param classUuid the class uuid to search with 519 * @return the number of matching asset entries 520 * @throws SystemException if a system exception occurred 521 */ 522 public static int countByG_CU(long groupId, java.lang.String classUuid) 523 throws com.liferay.portal.kernel.exception.SystemException { 524 return getPersistence().countByG_CU(groupId, classUuid); 525 } 526 527 /** 528 * Counts all the asset entries where classNameId = ? and classPK = ?. 529 * 530 * @param classNameId the class name id to search with 531 * @param classPK the class p k to search with 532 * @return the number of matching asset entries 533 * @throws SystemException if a system exception occurred 534 */ 535 public static int countByC_C(long classNameId, long classPK) 536 throws com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence().countByC_C(classNameId, classPK); 538 } 539 540 /** 541 * Counts all the asset entries. 542 * 543 * @return the number of asset entries 544 * @throws SystemException if a system exception occurred 545 */ 546 public static int countAll() 547 throws com.liferay.portal.kernel.exception.SystemException { 548 return getPersistence().countAll(); 549 } 550 551 /** 552 * Gets all the asset categories associated with the asset entry. 553 * 554 * @param pk the primary key of the asset entry to get the associated asset categories for 555 * @return the asset categories associated with the asset entry 556 * @throws SystemException if a system exception occurred 557 */ 558 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 559 long pk) throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence().getAssetCategories(pk); 561 } 562 563 /** 564 * Gets a range of all the asset categories associated with the asset entry. 565 * 566 * <p> 567 * 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. 568 * </p> 569 * 570 * @param pk the primary key of the asset entry to get the associated asset categories for 571 * @param start the lower bound of the range of asset entries to return 572 * @param end the upper bound of the range of asset entries to return (not inclusive) 573 * @return the range of asset categories associated with the asset entry 574 * @throws SystemException if a system exception occurred 575 */ 576 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 577 long pk, int start, int end) 578 throws com.liferay.portal.kernel.exception.SystemException { 579 return getPersistence().getAssetCategories(pk, start, end); 580 } 581 582 /** 583 * Gets an ordered range of all the asset categories associated with the asset entry. 584 * 585 * <p> 586 * 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. 587 * </p> 588 * 589 * @param pk the primary key of the asset entry to get the associated asset categories for 590 * @param start the lower bound of the range of asset entries to return 591 * @param end the upper bound of the range of asset entries to return (not inclusive) 592 * @param orderByComparator the comparator to order the results by 593 * @return the ordered range of asset categories associated with the asset entry 594 * @throws SystemException if a system exception occurred 595 */ 596 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 597 long pk, int start, int end, 598 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 599 throws com.liferay.portal.kernel.exception.SystemException { 600 return getPersistence() 601 .getAssetCategories(pk, start, end, orderByComparator); 602 } 603 604 /** 605 * Gets the number of asset categories associated with the asset entry. 606 * 607 * @param pk the primary key of the asset entry to get the number of associated asset categories for 608 * @return the number of asset categories associated with the asset entry 609 * @throws SystemException if a system exception occurred 610 */ 611 public static int getAssetCategoriesSize(long pk) 612 throws com.liferay.portal.kernel.exception.SystemException { 613 return getPersistence().getAssetCategoriesSize(pk); 614 } 615 616 /** 617 * Determines whether the asset category is associated with the asset entry. 618 * 619 * @param pk the primary key of the asset entry 620 * @param assetCategoryPK the primary key of the asset category 621 * @return whether the asset category is associated with the asset entry 622 * @throws SystemException if a system exception occurred 623 */ 624 public static boolean containsAssetCategory(long pk, long assetCategoryPK) 625 throws com.liferay.portal.kernel.exception.SystemException { 626 return getPersistence().containsAssetCategory(pk, assetCategoryPK); 627 } 628 629 /** 630 * Determines whether the asset entry has any asset categories associated with it. 631 * 632 * @param pk the primary key of the asset entry to check for associations with asset categories 633 * @return whether the asset entry has any asset categories associated with it 634 * @throws SystemException if a system exception occurred 635 */ 636 public static boolean containsAssetCategories(long pk) 637 throws com.liferay.portal.kernel.exception.SystemException { 638 return getPersistence().containsAssetCategories(pk); 639 } 640 641 /** 642 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 643 * 644 * @param pk the primary key of the asset entry 645 * @param assetCategoryPK the primary key of the asset category 646 * @throws SystemException if a system exception occurred 647 */ 648 public static void addAssetCategory(long pk, long assetCategoryPK) 649 throws com.liferay.portal.kernel.exception.SystemException { 650 getPersistence().addAssetCategory(pk, assetCategoryPK); 651 } 652 653 /** 654 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 655 * 656 * @param pk the primary key of the asset entry 657 * @param assetCategory the asset category 658 * @throws SystemException if a system exception occurred 659 */ 660 public static void addAssetCategory(long pk, 661 com.liferay.portlet.asset.model.AssetCategory assetCategory) 662 throws com.liferay.portal.kernel.exception.SystemException { 663 getPersistence().addAssetCategory(pk, assetCategory); 664 } 665 666 /** 667 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 668 * 669 * @param pk the primary key of the asset entry 670 * @param assetCategoryPKs the primary keys of the asset categories 671 * @throws SystemException if a system exception occurred 672 */ 673 public static void addAssetCategories(long pk, long[] assetCategoryPKs) 674 throws com.liferay.portal.kernel.exception.SystemException { 675 getPersistence().addAssetCategories(pk, assetCategoryPKs); 676 } 677 678 /** 679 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 680 * 681 * @param pk the primary key of the asset entry 682 * @param assetCategories the asset categories 683 * @throws SystemException if a system exception occurred 684 */ 685 public static void addAssetCategories(long pk, 686 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 687 throws com.liferay.portal.kernel.exception.SystemException { 688 getPersistence().addAssetCategories(pk, assetCategories); 689 } 690 691 /** 692 * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 693 * 694 * @param pk the primary key of the asset entry to clear the associated asset categories from 695 * @throws SystemException if a system exception occurred 696 */ 697 public static void clearAssetCategories(long pk) 698 throws com.liferay.portal.kernel.exception.SystemException { 699 getPersistence().clearAssetCategories(pk); 700 } 701 702 /** 703 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 704 * 705 * @param pk the primary key of the asset entry 706 * @param assetCategoryPK the primary key of the asset category 707 * @throws SystemException if a system exception occurred 708 */ 709 public static void removeAssetCategory(long pk, long assetCategoryPK) 710 throws com.liferay.portal.kernel.exception.SystemException { 711 getPersistence().removeAssetCategory(pk, assetCategoryPK); 712 } 713 714 /** 715 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 716 * 717 * @param pk the primary key of the asset entry 718 * @param assetCategory the asset category 719 * @throws SystemException if a system exception occurred 720 */ 721 public static void removeAssetCategory(long pk, 722 com.liferay.portlet.asset.model.AssetCategory assetCategory) 723 throws com.liferay.portal.kernel.exception.SystemException { 724 getPersistence().removeAssetCategory(pk, assetCategory); 725 } 726 727 /** 728 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 729 * 730 * @param pk the primary key of the asset entry 731 * @param assetCategoryPKs the primary keys of the asset categories 732 * @throws SystemException if a system exception occurred 733 */ 734 public static void removeAssetCategories(long pk, long[] assetCategoryPKs) 735 throws com.liferay.portal.kernel.exception.SystemException { 736 getPersistence().removeAssetCategories(pk, assetCategoryPKs); 737 } 738 739 /** 740 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 741 * 742 * @param pk the primary key of the asset entry 743 * @param assetCategories the asset categories 744 * @throws SystemException if a system exception occurred 745 */ 746 public static void removeAssetCategories(long pk, 747 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 748 throws com.liferay.portal.kernel.exception.SystemException { 749 getPersistence().removeAssetCategories(pk, assetCategories); 750 } 751 752 /** 753 * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 754 * 755 * @param pk the primary key of the asset entry to set the associations for 756 * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry 757 * @throws SystemException if a system exception occurred 758 */ 759 public static void setAssetCategories(long pk, long[] assetCategoryPKs) 760 throws com.liferay.portal.kernel.exception.SystemException { 761 getPersistence().setAssetCategories(pk, assetCategoryPKs); 762 } 763 764 /** 765 * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 766 * 767 * @param pk the primary key of the asset entry to set the associations for 768 * @param assetCategories the asset categories to be associated with the asset entry 769 * @throws SystemException if a system exception occurred 770 */ 771 public static void setAssetCategories(long pk, 772 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 773 throws com.liferay.portal.kernel.exception.SystemException { 774 getPersistence().setAssetCategories(pk, assetCategories); 775 } 776 777 /** 778 * Gets all the asset tags associated with the asset entry. 779 * 780 * @param pk the primary key of the asset entry to get the associated asset tags for 781 * @return the asset tags associated with the asset entry 782 * @throws SystemException if a system exception occurred 783 */ 784 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 785 long pk) throws com.liferay.portal.kernel.exception.SystemException { 786 return getPersistence().getAssetTags(pk); 787 } 788 789 /** 790 * Gets a range of all the asset tags associated with the asset entry. 791 * 792 * <p> 793 * 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. 794 * </p> 795 * 796 * @param pk the primary key of the asset entry to get the associated asset tags for 797 * @param start the lower bound of the range of asset entries to return 798 * @param end the upper bound of the range of asset entries to return (not inclusive) 799 * @return the range of asset tags associated with the asset entry 800 * @throws SystemException if a system exception occurred 801 */ 802 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 803 long pk, int start, int end) 804 throws com.liferay.portal.kernel.exception.SystemException { 805 return getPersistence().getAssetTags(pk, start, end); 806 } 807 808 /** 809 * Gets an ordered range of all the asset tags associated with the asset entry. 810 * 811 * <p> 812 * 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. 813 * </p> 814 * 815 * @param pk the primary key of the asset entry to get the associated asset tags for 816 * @param start the lower bound of the range of asset entries to return 817 * @param end the upper bound of the range of asset entries to return (not inclusive) 818 * @param orderByComparator the comparator to order the results by 819 * @return the ordered range of asset tags associated with the asset entry 820 * @throws SystemException if a system exception occurred 821 */ 822 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 823 long pk, int start, int end, 824 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 825 throws com.liferay.portal.kernel.exception.SystemException { 826 return getPersistence().getAssetTags(pk, start, end, orderByComparator); 827 } 828 829 /** 830 * Gets the number of asset tags associated with the asset entry. 831 * 832 * @param pk the primary key of the asset entry to get the number of associated asset tags for 833 * @return the number of asset tags associated with the asset entry 834 * @throws SystemException if a system exception occurred 835 */ 836 public static int getAssetTagsSize(long pk) 837 throws com.liferay.portal.kernel.exception.SystemException { 838 return getPersistence().getAssetTagsSize(pk); 839 } 840 841 /** 842 * Determines whether the asset tag is associated with the asset entry. 843 * 844 * @param pk the primary key of the asset entry 845 * @param assetTagPK the primary key of the asset tag 846 * @return whether the asset tag is associated with the asset entry 847 * @throws SystemException if a system exception occurred 848 */ 849 public static boolean containsAssetTag(long pk, long assetTagPK) 850 throws com.liferay.portal.kernel.exception.SystemException { 851 return getPersistence().containsAssetTag(pk, assetTagPK); 852 } 853 854 /** 855 * Determines whether the asset entry has any asset tags associated with it. 856 * 857 * @param pk the primary key of the asset entry to check for associations with asset tags 858 * @return whether the asset entry has any asset tags associated with it 859 * @throws SystemException if a system exception occurred 860 */ 861 public static boolean containsAssetTags(long pk) 862 throws com.liferay.portal.kernel.exception.SystemException { 863 return getPersistence().containsAssetTags(pk); 864 } 865 866 /** 867 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 868 * 869 * @param pk the primary key of the asset entry 870 * @param assetTagPK the primary key of the asset tag 871 * @throws SystemException if a system exception occurred 872 */ 873 public static void addAssetTag(long pk, long assetTagPK) 874 throws com.liferay.portal.kernel.exception.SystemException { 875 getPersistence().addAssetTag(pk, assetTagPK); 876 } 877 878 /** 879 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 880 * 881 * @param pk the primary key of the asset entry 882 * @param assetTag the asset tag 883 * @throws SystemException if a system exception occurred 884 */ 885 public static void addAssetTag(long pk, 886 com.liferay.portlet.asset.model.AssetTag assetTag) 887 throws com.liferay.portal.kernel.exception.SystemException { 888 getPersistence().addAssetTag(pk, assetTag); 889 } 890 891 /** 892 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 893 * 894 * @param pk the primary key of the asset entry 895 * @param assetTagPKs the primary keys of the asset tags 896 * @throws SystemException if a system exception occurred 897 */ 898 public static void addAssetTags(long pk, long[] assetTagPKs) 899 throws com.liferay.portal.kernel.exception.SystemException { 900 getPersistence().addAssetTags(pk, assetTagPKs); 901 } 902 903 /** 904 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 905 * 906 * @param pk the primary key of the asset entry 907 * @param assetTags the asset tags 908 * @throws SystemException if a system exception occurred 909 */ 910 public static void addAssetTags(long pk, 911 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 912 throws com.liferay.portal.kernel.exception.SystemException { 913 getPersistence().addAssetTags(pk, assetTags); 914 } 915 916 /** 917 * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 918 * 919 * @param pk the primary key of the asset entry to clear the associated asset tags from 920 * @throws SystemException if a system exception occurred 921 */ 922 public static void clearAssetTags(long pk) 923 throws com.liferay.portal.kernel.exception.SystemException { 924 getPersistence().clearAssetTags(pk); 925 } 926 927 /** 928 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 929 * 930 * @param pk the primary key of the asset entry 931 * @param assetTagPK the primary key of the asset tag 932 * @throws SystemException if a system exception occurred 933 */ 934 public static void removeAssetTag(long pk, long assetTagPK) 935 throws com.liferay.portal.kernel.exception.SystemException { 936 getPersistence().removeAssetTag(pk, assetTagPK); 937 } 938 939 /** 940 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 941 * 942 * @param pk the primary key of the asset entry 943 * @param assetTag the asset tag 944 * @throws SystemException if a system exception occurred 945 */ 946 public static void removeAssetTag(long pk, 947 com.liferay.portlet.asset.model.AssetTag assetTag) 948 throws com.liferay.portal.kernel.exception.SystemException { 949 getPersistence().removeAssetTag(pk, assetTag); 950 } 951 952 /** 953 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 954 * 955 * @param pk the primary key of the asset entry 956 * @param assetTagPKs the primary keys of the asset tags 957 * @throws SystemException if a system exception occurred 958 */ 959 public static void removeAssetTags(long pk, long[] assetTagPKs) 960 throws com.liferay.portal.kernel.exception.SystemException { 961 getPersistence().removeAssetTags(pk, assetTagPKs); 962 } 963 964 /** 965 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 966 * 967 * @param pk the primary key of the asset entry 968 * @param assetTags the asset tags 969 * @throws SystemException if a system exception occurred 970 */ 971 public static void removeAssetTags(long pk, 972 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 973 throws com.liferay.portal.kernel.exception.SystemException { 974 getPersistence().removeAssetTags(pk, assetTags); 975 } 976 977 /** 978 * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 979 * 980 * @param pk the primary key of the asset entry to set the associations for 981 * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry 982 * @throws SystemException if a system exception occurred 983 */ 984 public static void setAssetTags(long pk, long[] assetTagPKs) 985 throws com.liferay.portal.kernel.exception.SystemException { 986 getPersistence().setAssetTags(pk, assetTagPKs); 987 } 988 989 /** 990 * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 991 * 992 * @param pk the primary key of the asset entry to set the associations for 993 * @param assetTags the asset tags to be associated with the asset entry 994 * @throws SystemException if a system exception occurred 995 */ 996 public static void setAssetTags(long pk, 997 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 998 throws com.liferay.portal.kernel.exception.SystemException { 999 getPersistence().setAssetTags(pk, assetTags); 1000 } 1001 1002 public static AssetEntryPersistence getPersistence() { 1003 if (_persistence == null) { 1004 _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName()); 1005 } 1006 1007 return _persistence; 1008 } 1009 1010 public void setPersistence(AssetEntryPersistence persistence) { 1011 _persistence = persistence; 1012 } 1013 1014 private static AssetEntryPersistence _persistence; 1015 }