001 /** 002 * Copyright (c) 2000-2012 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.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.asset.model.AssetEntry; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the asset entry service. This utility wraps {@link AssetEntryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see AssetEntryPersistence 037 * @see AssetEntryPersistenceImpl 038 * @generated 039 */ 040 public class AssetEntryUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(AssetEntry assetEntry) { 058 getPersistence().clearCache(assetEntry); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<AssetEntry> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<AssetEntry> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<AssetEntry> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static AssetEntry update(AssetEntry assetEntry, boolean merge) 101 throws SystemException { 102 return getPersistence().update(assetEntry, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static AssetEntry update(AssetEntry assetEntry, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(assetEntry, merge, serviceContext); 111 } 112 113 /** 114 * Caches the asset entry in the entity cache if it is enabled. 115 * 116 * @param assetEntry the asset entry 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.asset.model.AssetEntry assetEntry) { 120 getPersistence().cacheResult(assetEntry); 121 } 122 123 /** 124 * Caches the asset entries in the entity cache if it is enabled. 125 * 126 * @param assetEntries the asset entries 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) { 130 getPersistence().cacheResult(assetEntries); 131 } 132 133 /** 134 * Creates a new asset entry with the primary key. Does not add the asset entry to the database. 135 * 136 * @param entryId the primary key for the new asset entry 137 * @return the new asset entry 138 */ 139 public static com.liferay.portlet.asset.model.AssetEntry create( 140 long entryId) { 141 return getPersistence().create(entryId); 142 } 143 144 /** 145 * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param entryId the primary key of the asset entry 148 * @return the asset entry that was removed 149 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.asset.model.AssetEntry remove( 153 long entryId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.asset.NoSuchEntryException { 156 return getPersistence().remove(entryId); 157 } 158 159 public static com.liferay.portlet.asset.model.AssetEntry updateImpl( 160 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(assetEntry, merge); 163 } 164 165 /** 166 * Returns the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 167 * 168 * @param entryId the primary key of the asset entry 169 * @return the asset entry 170 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey( 174 long entryId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.asset.NoSuchEntryException { 177 return getPersistence().findByPrimaryKey(entryId); 178 } 179 180 /** 181 * Returns the asset entry with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param entryId the primary key of the asset entry 184 * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey( 188 long entryId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(entryId); 191 } 192 193 /** 194 * Returns all the asset entries where companyId = ?. 195 * 196 * @param companyId the company ID 197 * @return the matching asset entries 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 201 long companyId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByCompanyId(companyId); 204 } 205 206 /** 207 * Returns a range of all the asset entries where companyId = ?. 208 * 209 * <p> 210 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 211 * </p> 212 * 213 * @param companyId the company ID 214 * @param start the lower bound of the range of asset entries 215 * @param end the upper bound of the range of asset entries (not inclusive) 216 * @return the range of matching asset entries 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 220 long companyId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByCompanyId(companyId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the asset entries where companyId = ?. 227 * 228 * <p> 229 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 230 * </p> 231 * 232 * @param companyId the company ID 233 * @param start the lower bound of the range of asset entries 234 * @param end the upper bound of the range of asset entries (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching asset entries 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 240 long companyId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByCompanyId(companyId, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first asset entry in the ordered set where companyId = ?. 249 * 250 * @param companyId the company ID 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching asset entry 253 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First( 257 long companyId, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.asset.NoSuchEntryException { 261 return getPersistence() 262 .findByCompanyId_First(companyId, orderByComparator); 263 } 264 265 /** 266 * Returns the first asset entry in the ordered set where companyId = ?. 267 * 268 * @param companyId the company ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_First( 274 long companyId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return getPersistence() 278 .fetchByCompanyId_First(companyId, orderByComparator); 279 } 280 281 /** 282 * Returns the last asset entry in the ordered set where companyId = ?. 283 * 284 * @param companyId the company ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching asset entry 287 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last( 291 long companyId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.asset.NoSuchEntryException { 295 return getPersistence() 296 .findByCompanyId_Last(companyId, orderByComparator); 297 } 298 299 /** 300 * Returns the last asset entry in the ordered set where companyId = ?. 301 * 302 * @param companyId the company ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 305 * @throws SystemException if a system exception occurred 306 */ 307 public static com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_Last( 308 long companyId, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException { 311 return getPersistence() 312 .fetchByCompanyId_Last(companyId, orderByComparator); 313 } 314 315 /** 316 * Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?. 317 * 318 * @param entryId the primary key of the current asset entry 319 * @param companyId the company ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the previous, current, and next asset entry 322 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext( 326 long entryId, long companyId, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.asset.NoSuchEntryException { 330 return getPersistence() 331 .findByCompanyId_PrevAndNext(entryId, companyId, 332 orderByComparator); 333 } 334 335 /** 336 * Returns all the asset entries where visible = ?. 337 * 338 * @param visible the visible 339 * @return the matching asset entries 340 * @throws SystemException if a system exception occurred 341 */ 342 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 343 boolean visible) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().findByVisible(visible); 346 } 347 348 /** 349 * Returns a range of all the asset entries where visible = ?. 350 * 351 * <p> 352 * 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. 353 * </p> 354 * 355 * @param visible the visible 356 * @param start the lower bound of the range of asset entries 357 * @param end the upper bound of the range of asset entries (not inclusive) 358 * @return the range of matching asset entries 359 * @throws SystemException if a system exception occurred 360 */ 361 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 362 boolean visible, int start, int end) 363 throws com.liferay.portal.kernel.exception.SystemException { 364 return getPersistence().findByVisible(visible, start, end); 365 } 366 367 /** 368 * Returns an ordered range of all the asset entries where visible = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param visible the visible 375 * @param start the lower bound of the range of asset entries 376 * @param end the upper bound of the range of asset entries (not inclusive) 377 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 378 * @return the ordered range of matching asset entries 379 * @throws SystemException if a system exception occurred 380 */ 381 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 382 boolean visible, int start, int end, 383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence() 386 .findByVisible(visible, start, end, orderByComparator); 387 } 388 389 /** 390 * Returns the first asset entry in the ordered set where visible = ?. 391 * 392 * @param visible the visible 393 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 394 * @return the first matching asset entry 395 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 396 * @throws SystemException if a system exception occurred 397 */ 398 public static com.liferay.portlet.asset.model.AssetEntry findByVisible_First( 399 boolean visible, 400 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 401 throws com.liferay.portal.kernel.exception.SystemException, 402 com.liferay.portlet.asset.NoSuchEntryException { 403 return getPersistence().findByVisible_First(visible, orderByComparator); 404 } 405 406 /** 407 * Returns the first asset entry in the ordered set where visible = ?. 408 * 409 * @param visible the visible 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public static com.liferay.portlet.asset.model.AssetEntry fetchByVisible_First( 415 boolean visible, 416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 417 throws com.liferay.portal.kernel.exception.SystemException { 418 return getPersistence().fetchByVisible_First(visible, orderByComparator); 419 } 420 421 /** 422 * Returns the last asset entry in the ordered set where visible = ?. 423 * 424 * @param visible the visible 425 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 426 * @return the last matching asset entry 427 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 428 * @throws SystemException if a system exception occurred 429 */ 430 public static com.liferay.portlet.asset.model.AssetEntry findByVisible_Last( 431 boolean visible, 432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 433 throws com.liferay.portal.kernel.exception.SystemException, 434 com.liferay.portlet.asset.NoSuchEntryException { 435 return getPersistence().findByVisible_Last(visible, orderByComparator); 436 } 437 438 /** 439 * Returns the last asset entry in the ordered set where visible = ?. 440 * 441 * @param visible the visible 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public static com.liferay.portlet.asset.model.AssetEntry fetchByVisible_Last( 447 boolean visible, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException { 450 return getPersistence().fetchByVisible_Last(visible, orderByComparator); 451 } 452 453 /** 454 * Returns the asset entries before and after the current asset entry in the ordered set where visible = ?. 455 * 456 * @param entryId the primary key of the current asset entry 457 * @param visible the visible 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the previous, current, and next asset entry 460 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext( 464 long entryId, boolean visible, 465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 466 throws com.liferay.portal.kernel.exception.SystemException, 467 com.liferay.portlet.asset.NoSuchEntryException { 468 return getPersistence() 469 .findByVisible_PrevAndNext(entryId, visible, 470 orderByComparator); 471 } 472 473 /** 474 * Returns all the asset entries where publishDate = ?. 475 * 476 * @param publishDate the publish date 477 * @return the matching asset entries 478 * @throws SystemException if a system exception occurred 479 */ 480 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 481 java.util.Date publishDate) 482 throws com.liferay.portal.kernel.exception.SystemException { 483 return getPersistence().findByPublishDate(publishDate); 484 } 485 486 /** 487 * Returns a range of all the asset entries where publishDate = ?. 488 * 489 * <p> 490 * 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. 491 * </p> 492 * 493 * @param publishDate the publish date 494 * @param start the lower bound of the range of asset entries 495 * @param end the upper bound of the range of asset entries (not inclusive) 496 * @return the range of matching asset entries 497 * @throws SystemException if a system exception occurred 498 */ 499 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 500 java.util.Date publishDate, int start, int end) 501 throws com.liferay.portal.kernel.exception.SystemException { 502 return getPersistence().findByPublishDate(publishDate, start, end); 503 } 504 505 /** 506 * Returns an ordered range of all the asset entries where publishDate = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param publishDate the publish date 513 * @param start the lower bound of the range of asset entries 514 * @param end the upper bound of the range of asset entries (not inclusive) 515 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 516 * @return the ordered range of matching asset entries 517 * @throws SystemException if a system exception occurred 518 */ 519 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 520 java.util.Date publishDate, int start, int end, 521 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence() 524 .findByPublishDate(publishDate, start, end, orderByComparator); 525 } 526 527 /** 528 * Returns the first asset entry in the ordered set where publishDate = ?. 529 * 530 * @param publishDate the publish date 531 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 532 * @return the first matching asset entry 533 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 534 * @throws SystemException if a system exception occurred 535 */ 536 public static com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First( 537 java.util.Date publishDate, 538 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 539 throws com.liferay.portal.kernel.exception.SystemException, 540 com.liferay.portlet.asset.NoSuchEntryException { 541 return getPersistence() 542 .findByPublishDate_First(publishDate, orderByComparator); 543 } 544 545 /** 546 * Returns the first asset entry in the ordered set where publishDate = ?. 547 * 548 * @param publishDate the publish date 549 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 550 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 551 * @throws SystemException if a system exception occurred 552 */ 553 public static com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_First( 554 java.util.Date publishDate, 555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 556 throws com.liferay.portal.kernel.exception.SystemException { 557 return getPersistence() 558 .fetchByPublishDate_First(publishDate, orderByComparator); 559 } 560 561 /** 562 * Returns the last asset entry in the ordered set where publishDate = ?. 563 * 564 * @param publishDate the publish date 565 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 566 * @return the last matching asset entry 567 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 568 * @throws SystemException if a system exception occurred 569 */ 570 public static com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last( 571 java.util.Date publishDate, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException, 574 com.liferay.portlet.asset.NoSuchEntryException { 575 return getPersistence() 576 .findByPublishDate_Last(publishDate, orderByComparator); 577 } 578 579 /** 580 * Returns the last asset entry in the ordered set where publishDate = ?. 581 * 582 * @param publishDate the publish date 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 584 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 585 * @throws SystemException if a system exception occurred 586 */ 587 public static com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_Last( 588 java.util.Date publishDate, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.kernel.exception.SystemException { 591 return getPersistence() 592 .fetchByPublishDate_Last(publishDate, orderByComparator); 593 } 594 595 /** 596 * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?. 597 * 598 * @param entryId the primary key of the current asset entry 599 * @param publishDate the publish date 600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 601 * @return the previous, current, and next asset entry 602 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public static com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext( 606 long entryId, java.util.Date publishDate, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException, 609 com.liferay.portlet.asset.NoSuchEntryException { 610 return getPersistence() 611 .findByPublishDate_PrevAndNext(entryId, publishDate, 612 orderByComparator); 613 } 614 615 /** 616 * Returns all the asset entries where expirationDate = ?. 617 * 618 * @param expirationDate the expiration date 619 * @return the matching asset entries 620 * @throws SystemException if a system exception occurred 621 */ 622 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 623 java.util.Date expirationDate) 624 throws com.liferay.portal.kernel.exception.SystemException { 625 return getPersistence().findByExpirationDate(expirationDate); 626 } 627 628 /** 629 * Returns a range of all the asset entries where expirationDate = ?. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param expirationDate the expiration date 636 * @param start the lower bound of the range of asset entries 637 * @param end the upper bound of the range of asset entries (not inclusive) 638 * @return the range of matching asset entries 639 * @throws SystemException if a system exception occurred 640 */ 641 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 642 java.util.Date expirationDate, int start, int end) 643 throws com.liferay.portal.kernel.exception.SystemException { 644 return getPersistence().findByExpirationDate(expirationDate, start, end); 645 } 646 647 /** 648 * Returns an ordered range of all the asset entries where expirationDate = ?. 649 * 650 * <p> 651 * 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. 652 * </p> 653 * 654 * @param expirationDate the expiration date 655 * @param start the lower bound of the range of asset entries 656 * @param end the upper bound of the range of asset entries (not inclusive) 657 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 658 * @return the ordered range of matching asset entries 659 * @throws SystemException if a system exception occurred 660 */ 661 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 662 java.util.Date expirationDate, int start, int end, 663 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 664 throws com.liferay.portal.kernel.exception.SystemException { 665 return getPersistence() 666 .findByExpirationDate(expirationDate, start, end, 667 orderByComparator); 668 } 669 670 /** 671 * Returns the first asset entry in the ordered set where expirationDate = ?. 672 * 673 * @param expirationDate the expiration date 674 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 675 * @return the first matching asset entry 676 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 677 * @throws SystemException if a system exception occurred 678 */ 679 public static com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First( 680 java.util.Date expirationDate, 681 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 682 throws com.liferay.portal.kernel.exception.SystemException, 683 com.liferay.portlet.asset.NoSuchEntryException { 684 return getPersistence() 685 .findByExpirationDate_First(expirationDate, orderByComparator); 686 } 687 688 /** 689 * Returns the first asset entry in the ordered set where expirationDate = ?. 690 * 691 * @param expirationDate the expiration date 692 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 693 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 694 * @throws SystemException if a system exception occurred 695 */ 696 public static com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_First( 697 java.util.Date expirationDate, 698 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 699 throws com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence() 701 .fetchByExpirationDate_First(expirationDate, 702 orderByComparator); 703 } 704 705 /** 706 * Returns the last asset entry in the ordered set where expirationDate = ?. 707 * 708 * @param expirationDate the expiration date 709 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 710 * @return the last matching asset entry 711 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 712 * @throws SystemException if a system exception occurred 713 */ 714 public static com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last( 715 java.util.Date expirationDate, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException, 718 com.liferay.portlet.asset.NoSuchEntryException { 719 return getPersistence() 720 .findByExpirationDate_Last(expirationDate, orderByComparator); 721 } 722 723 /** 724 * Returns the last asset entry in the ordered set where expirationDate = ?. 725 * 726 * @param expirationDate the expiration date 727 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 728 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 729 * @throws SystemException if a system exception occurred 730 */ 731 public static com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_Last( 732 java.util.Date expirationDate, 733 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 734 throws com.liferay.portal.kernel.exception.SystemException { 735 return getPersistence() 736 .fetchByExpirationDate_Last(expirationDate, orderByComparator); 737 } 738 739 /** 740 * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?. 741 * 742 * @param entryId the primary key of the current asset entry 743 * @param expirationDate the expiration date 744 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 745 * @return the previous, current, and next asset entry 746 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 747 * @throws SystemException if a system exception occurred 748 */ 749 public static com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext( 750 long entryId, java.util.Date expirationDate, 751 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 752 throws com.liferay.portal.kernel.exception.SystemException, 753 com.liferay.portlet.asset.NoSuchEntryException { 754 return getPersistence() 755 .findByExpirationDate_PrevAndNext(entryId, expirationDate, 756 orderByComparator); 757 } 758 759 /** 760 * Returns the asset entry where groupId = ? and classUuid = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 761 * 762 * @param groupId the group ID 763 * @param classUuid the class uuid 764 * @return the matching asset entry 765 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 766 * @throws SystemException if a system exception occurred 767 */ 768 public static com.liferay.portlet.asset.model.AssetEntry findByG_CU( 769 long groupId, java.lang.String classUuid) 770 throws com.liferay.portal.kernel.exception.SystemException, 771 com.liferay.portlet.asset.NoSuchEntryException { 772 return getPersistence().findByG_CU(groupId, classUuid); 773 } 774 775 /** 776 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 777 * 778 * @param groupId the group ID 779 * @param classUuid the class uuid 780 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 781 * @throws SystemException if a system exception occurred 782 */ 783 public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 784 long groupId, java.lang.String classUuid) 785 throws com.liferay.portal.kernel.exception.SystemException { 786 return getPersistence().fetchByG_CU(groupId, classUuid); 787 } 788 789 /** 790 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 791 * 792 * @param groupId the group ID 793 * @param classUuid the class uuid 794 * @param retrieveFromCache whether to use the finder cache 795 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 796 * @throws SystemException if a system exception occurred 797 */ 798 public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 799 long groupId, java.lang.String classUuid, boolean retrieveFromCache) 800 throws com.liferay.portal.kernel.exception.SystemException { 801 return getPersistence() 802 .fetchByG_CU(groupId, classUuid, retrieveFromCache); 803 } 804 805 /** 806 * Returns the asset entry where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 807 * 808 * @param classNameId the class name ID 809 * @param classPK the class p k 810 * @return the matching asset entry 811 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 812 * @throws SystemException if a system exception occurred 813 */ 814 public static com.liferay.portlet.asset.model.AssetEntry findByC_C( 815 long classNameId, long classPK) 816 throws com.liferay.portal.kernel.exception.SystemException, 817 com.liferay.portlet.asset.NoSuchEntryException { 818 return getPersistence().findByC_C(classNameId, classPK); 819 } 820 821 /** 822 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 823 * 824 * @param classNameId the class name ID 825 * @param classPK the class p k 826 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 827 * @throws SystemException if a system exception occurred 828 */ 829 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 830 long classNameId, long classPK) 831 throws com.liferay.portal.kernel.exception.SystemException { 832 return getPersistence().fetchByC_C(classNameId, classPK); 833 } 834 835 /** 836 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 837 * 838 * @param classNameId the class name ID 839 * @param classPK the class p k 840 * @param retrieveFromCache whether to use the finder cache 841 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 842 * @throws SystemException if a system exception occurred 843 */ 844 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 845 long classNameId, long classPK, boolean retrieveFromCache) 846 throws com.liferay.portal.kernel.exception.SystemException { 847 return getPersistence() 848 .fetchByC_C(classNameId, classPK, retrieveFromCache); 849 } 850 851 /** 852 * Returns all the asset entries. 853 * 854 * @return the asset entries 855 * @throws SystemException if a system exception occurred 856 */ 857 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll() 858 throws com.liferay.portal.kernel.exception.SystemException { 859 return getPersistence().findAll(); 860 } 861 862 /** 863 * Returns a range of all the asset entries. 864 * 865 * <p> 866 * 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. 867 * </p> 868 * 869 * @param start the lower bound of the range of asset entries 870 * @param end the upper bound of the range of asset entries (not inclusive) 871 * @return the range of asset entries 872 * @throws SystemException if a system exception occurred 873 */ 874 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 875 int start, int end) 876 throws com.liferay.portal.kernel.exception.SystemException { 877 return getPersistence().findAll(start, end); 878 } 879 880 /** 881 * Returns an ordered range of all the asset entries. 882 * 883 * <p> 884 * 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. 885 * </p> 886 * 887 * @param start the lower bound of the range of asset entries 888 * @param end the upper bound of the range of asset entries (not inclusive) 889 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 890 * @return the ordered range of asset entries 891 * @throws SystemException if a system exception occurred 892 */ 893 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 894 int start, int end, 895 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 896 throws com.liferay.portal.kernel.exception.SystemException { 897 return getPersistence().findAll(start, end, orderByComparator); 898 } 899 900 /** 901 * Removes all the asset entries where companyId = ? from the database. 902 * 903 * @param companyId the company ID 904 * @throws SystemException if a system exception occurred 905 */ 906 public static void removeByCompanyId(long companyId) 907 throws com.liferay.portal.kernel.exception.SystemException { 908 getPersistence().removeByCompanyId(companyId); 909 } 910 911 /** 912 * Removes all the asset entries where visible = ? from the database. 913 * 914 * @param visible the visible 915 * @throws SystemException if a system exception occurred 916 */ 917 public static void removeByVisible(boolean visible) 918 throws com.liferay.portal.kernel.exception.SystemException { 919 getPersistence().removeByVisible(visible); 920 } 921 922 /** 923 * Removes all the asset entries where publishDate = ? from the database. 924 * 925 * @param publishDate the publish date 926 * @throws SystemException if a system exception occurred 927 */ 928 public static void removeByPublishDate(java.util.Date publishDate) 929 throws com.liferay.portal.kernel.exception.SystemException { 930 getPersistence().removeByPublishDate(publishDate); 931 } 932 933 /** 934 * Removes all the asset entries where expirationDate = ? from the database. 935 * 936 * @param expirationDate the expiration date 937 * @throws SystemException if a system exception occurred 938 */ 939 public static void removeByExpirationDate(java.util.Date expirationDate) 940 throws com.liferay.portal.kernel.exception.SystemException { 941 getPersistence().removeByExpirationDate(expirationDate); 942 } 943 944 /** 945 * Removes the asset entry where groupId = ? and classUuid = ? from the database. 946 * 947 * @param groupId the group ID 948 * @param classUuid the class uuid 949 * @return the asset entry that was removed 950 * @throws SystemException if a system exception occurred 951 */ 952 public static com.liferay.portlet.asset.model.AssetEntry removeByG_CU( 953 long groupId, java.lang.String classUuid) 954 throws com.liferay.portal.kernel.exception.SystemException, 955 com.liferay.portlet.asset.NoSuchEntryException { 956 return getPersistence().removeByG_CU(groupId, classUuid); 957 } 958 959 /** 960 * Removes the asset entry where classNameId = ? and classPK = ? from the database. 961 * 962 * @param classNameId the class name ID 963 * @param classPK the class p k 964 * @return the asset entry that was removed 965 * @throws SystemException if a system exception occurred 966 */ 967 public static com.liferay.portlet.asset.model.AssetEntry removeByC_C( 968 long classNameId, long classPK) 969 throws com.liferay.portal.kernel.exception.SystemException, 970 com.liferay.portlet.asset.NoSuchEntryException { 971 return getPersistence().removeByC_C(classNameId, classPK); 972 } 973 974 /** 975 * Removes all the asset entries from the database. 976 * 977 * @throws SystemException if a system exception occurred 978 */ 979 public static void removeAll() 980 throws com.liferay.portal.kernel.exception.SystemException { 981 getPersistence().removeAll(); 982 } 983 984 /** 985 * Returns the number of asset entries where companyId = ?. 986 * 987 * @param companyId the company ID 988 * @return the number of matching asset entries 989 * @throws SystemException if a system exception occurred 990 */ 991 public static int countByCompanyId(long companyId) 992 throws com.liferay.portal.kernel.exception.SystemException { 993 return getPersistence().countByCompanyId(companyId); 994 } 995 996 /** 997 * Returns the number of asset entries where visible = ?. 998 * 999 * @param visible the visible 1000 * @return the number of matching asset entries 1001 * @throws SystemException if a system exception occurred 1002 */ 1003 public static int countByVisible(boolean visible) 1004 throws com.liferay.portal.kernel.exception.SystemException { 1005 return getPersistence().countByVisible(visible); 1006 } 1007 1008 /** 1009 * Returns the number of asset entries where publishDate = ?. 1010 * 1011 * @param publishDate the publish date 1012 * @return the number of matching asset entries 1013 * @throws SystemException if a system exception occurred 1014 */ 1015 public static int countByPublishDate(java.util.Date publishDate) 1016 throws com.liferay.portal.kernel.exception.SystemException { 1017 return getPersistence().countByPublishDate(publishDate); 1018 } 1019 1020 /** 1021 * Returns the number of asset entries where expirationDate = ?. 1022 * 1023 * @param expirationDate the expiration date 1024 * @return the number of matching asset entries 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public static int countByExpirationDate(java.util.Date expirationDate) 1028 throws com.liferay.portal.kernel.exception.SystemException { 1029 return getPersistence().countByExpirationDate(expirationDate); 1030 } 1031 1032 /** 1033 * Returns the number of asset entries where groupId = ? and classUuid = ?. 1034 * 1035 * @param groupId the group ID 1036 * @param classUuid the class uuid 1037 * @return the number of matching asset entries 1038 * @throws SystemException if a system exception occurred 1039 */ 1040 public static int countByG_CU(long groupId, java.lang.String classUuid) 1041 throws com.liferay.portal.kernel.exception.SystemException { 1042 return getPersistence().countByG_CU(groupId, classUuid); 1043 } 1044 1045 /** 1046 * Returns the number of asset entries where classNameId = ? and classPK = ?. 1047 * 1048 * @param classNameId the class name ID 1049 * @param classPK the class p k 1050 * @return the number of matching asset entries 1051 * @throws SystemException if a system exception occurred 1052 */ 1053 public static int countByC_C(long classNameId, long classPK) 1054 throws com.liferay.portal.kernel.exception.SystemException { 1055 return getPersistence().countByC_C(classNameId, classPK); 1056 } 1057 1058 /** 1059 * Returns the number of asset entries. 1060 * 1061 * @return the number of asset entries 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public static int countAll() 1065 throws com.liferay.portal.kernel.exception.SystemException { 1066 return getPersistence().countAll(); 1067 } 1068 1069 /** 1070 * Returns all the asset categories associated with the asset entry. 1071 * 1072 * @param pk the primary key of the asset entry 1073 * @return the asset categories associated with the asset entry 1074 * @throws SystemException if a system exception occurred 1075 */ 1076 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 1077 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1078 return getPersistence().getAssetCategories(pk); 1079 } 1080 1081 /** 1082 * Returns a range of all the asset categories associated with the asset entry. 1083 * 1084 * <p> 1085 * 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. 1086 * </p> 1087 * 1088 * @param pk the primary key of the asset entry 1089 * @param start the lower bound of the range of asset entries 1090 * @param end the upper bound of the range of asset entries (not inclusive) 1091 * @return the range of asset categories associated with the asset entry 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 1095 long pk, int start, int end) 1096 throws com.liferay.portal.kernel.exception.SystemException { 1097 return getPersistence().getAssetCategories(pk, start, end); 1098 } 1099 1100 /** 1101 * Returns an ordered range of all the asset categories associated with the asset entry. 1102 * 1103 * <p> 1104 * 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. 1105 * </p> 1106 * 1107 * @param pk the primary key of the asset entry 1108 * @param start the lower bound of the range of asset entries 1109 * @param end the upper bound of the range of asset entries (not inclusive) 1110 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1111 * @return the ordered range of asset categories associated with the asset entry 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 1115 long pk, int start, int end, 1116 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1117 throws com.liferay.portal.kernel.exception.SystemException { 1118 return getPersistence() 1119 .getAssetCategories(pk, start, end, orderByComparator); 1120 } 1121 1122 /** 1123 * Returns the number of asset categories associated with the asset entry. 1124 * 1125 * @param pk the primary key of the asset entry 1126 * @return the number of asset categories associated with the asset entry 1127 * @throws SystemException if a system exception occurred 1128 */ 1129 public static int getAssetCategoriesSize(long pk) 1130 throws com.liferay.portal.kernel.exception.SystemException { 1131 return getPersistence().getAssetCategoriesSize(pk); 1132 } 1133 1134 /** 1135 * Returns <code>true</code> if the asset category is associated with the asset entry. 1136 * 1137 * @param pk the primary key of the asset entry 1138 * @param assetCategoryPK the primary key of the asset category 1139 * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public static boolean containsAssetCategory(long pk, long assetCategoryPK) 1143 throws com.liferay.portal.kernel.exception.SystemException { 1144 return getPersistence().containsAssetCategory(pk, assetCategoryPK); 1145 } 1146 1147 /** 1148 * Returns <code>true</code> if the asset entry has any asset categories associated with it. 1149 * 1150 * @param pk the primary key of the asset entry to check for associations with asset categories 1151 * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise 1152 * @throws SystemException if a system exception occurred 1153 */ 1154 public static boolean containsAssetCategories(long pk) 1155 throws com.liferay.portal.kernel.exception.SystemException { 1156 return getPersistence().containsAssetCategories(pk); 1157 } 1158 1159 /** 1160 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1161 * 1162 * @param pk the primary key of the asset entry 1163 * @param assetCategoryPK the primary key of the asset category 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public static void addAssetCategory(long pk, long assetCategoryPK) 1167 throws com.liferay.portal.kernel.exception.SystemException { 1168 getPersistence().addAssetCategory(pk, assetCategoryPK); 1169 } 1170 1171 /** 1172 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1173 * 1174 * @param pk the primary key of the asset entry 1175 * @param assetCategory the asset category 1176 * @throws SystemException if a system exception occurred 1177 */ 1178 public static void addAssetCategory(long pk, 1179 com.liferay.portlet.asset.model.AssetCategory assetCategory) 1180 throws com.liferay.portal.kernel.exception.SystemException { 1181 getPersistence().addAssetCategory(pk, assetCategory); 1182 } 1183 1184 /** 1185 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1186 * 1187 * @param pk the primary key of the asset entry 1188 * @param assetCategoryPKs the primary keys of the asset categories 1189 * @throws SystemException if a system exception occurred 1190 */ 1191 public static void addAssetCategories(long pk, long[] assetCategoryPKs) 1192 throws com.liferay.portal.kernel.exception.SystemException { 1193 getPersistence().addAssetCategories(pk, assetCategoryPKs); 1194 } 1195 1196 /** 1197 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1198 * 1199 * @param pk the primary key of the asset entry 1200 * @param assetCategories the asset categories 1201 * @throws SystemException if a system exception occurred 1202 */ 1203 public static void addAssetCategories(long pk, 1204 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 1205 throws com.liferay.portal.kernel.exception.SystemException { 1206 getPersistence().addAssetCategories(pk, assetCategories); 1207 } 1208 1209 /** 1210 * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1211 * 1212 * @param pk the primary key of the asset entry to clear the associated asset categories from 1213 * @throws SystemException if a system exception occurred 1214 */ 1215 public static void clearAssetCategories(long pk) 1216 throws com.liferay.portal.kernel.exception.SystemException { 1217 getPersistence().clearAssetCategories(pk); 1218 } 1219 1220 /** 1221 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1222 * 1223 * @param pk the primary key of the asset entry 1224 * @param assetCategoryPK the primary key of the asset category 1225 * @throws SystemException if a system exception occurred 1226 */ 1227 public static void removeAssetCategory(long pk, long assetCategoryPK) 1228 throws com.liferay.portal.kernel.exception.SystemException { 1229 getPersistence().removeAssetCategory(pk, assetCategoryPK); 1230 } 1231 1232 /** 1233 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1234 * 1235 * @param pk the primary key of the asset entry 1236 * @param assetCategory the asset category 1237 * @throws SystemException if a system exception occurred 1238 */ 1239 public static void removeAssetCategory(long pk, 1240 com.liferay.portlet.asset.model.AssetCategory assetCategory) 1241 throws com.liferay.portal.kernel.exception.SystemException { 1242 getPersistence().removeAssetCategory(pk, assetCategory); 1243 } 1244 1245 /** 1246 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1247 * 1248 * @param pk the primary key of the asset entry 1249 * @param assetCategoryPKs the primary keys of the asset categories 1250 * @throws SystemException if a system exception occurred 1251 */ 1252 public static void removeAssetCategories(long pk, long[] assetCategoryPKs) 1253 throws com.liferay.portal.kernel.exception.SystemException { 1254 getPersistence().removeAssetCategories(pk, assetCategoryPKs); 1255 } 1256 1257 /** 1258 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1259 * 1260 * @param pk the primary key of the asset entry 1261 * @param assetCategories the asset categories 1262 * @throws SystemException if a system exception occurred 1263 */ 1264 public static void removeAssetCategories(long pk, 1265 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 1266 throws com.liferay.portal.kernel.exception.SystemException { 1267 getPersistence().removeAssetCategories(pk, assetCategories); 1268 } 1269 1270 /** 1271 * 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. 1272 * 1273 * @param pk the primary key of the asset entry 1274 * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public static void setAssetCategories(long pk, long[] assetCategoryPKs) 1278 throws com.liferay.portal.kernel.exception.SystemException { 1279 getPersistence().setAssetCategories(pk, assetCategoryPKs); 1280 } 1281 1282 /** 1283 * 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. 1284 * 1285 * @param pk the primary key of the asset entry 1286 * @param assetCategories the asset categories to be associated with the asset entry 1287 * @throws SystemException if a system exception occurred 1288 */ 1289 public static void setAssetCategories(long pk, 1290 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 1291 throws com.liferay.portal.kernel.exception.SystemException { 1292 getPersistence().setAssetCategories(pk, assetCategories); 1293 } 1294 1295 /** 1296 * Returns all the asset tags associated with the asset entry. 1297 * 1298 * @param pk the primary key of the asset entry 1299 * @return the asset tags associated with the asset entry 1300 * @throws SystemException if a system exception occurred 1301 */ 1302 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 1303 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1304 return getPersistence().getAssetTags(pk); 1305 } 1306 1307 /** 1308 * Returns a range of all the asset tags associated with the asset entry. 1309 * 1310 * <p> 1311 * 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. 1312 * </p> 1313 * 1314 * @param pk the primary key of the asset entry 1315 * @param start the lower bound of the range of asset entries 1316 * @param end the upper bound of the range of asset entries (not inclusive) 1317 * @return the range of asset tags associated with the asset entry 1318 * @throws SystemException if a system exception occurred 1319 */ 1320 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 1321 long pk, int start, int end) 1322 throws com.liferay.portal.kernel.exception.SystemException { 1323 return getPersistence().getAssetTags(pk, start, end); 1324 } 1325 1326 /** 1327 * Returns an ordered range of all the asset tags associated with the asset entry. 1328 * 1329 * <p> 1330 * 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. 1331 * </p> 1332 * 1333 * @param pk the primary key of the asset entry 1334 * @param start the lower bound of the range of asset entries 1335 * @param end the upper bound of the range of asset entries (not inclusive) 1336 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1337 * @return the ordered range of asset tags associated with the asset entry 1338 * @throws SystemException if a system exception occurred 1339 */ 1340 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 1341 long pk, int start, int end, 1342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1343 throws com.liferay.portal.kernel.exception.SystemException { 1344 return getPersistence().getAssetTags(pk, start, end, orderByComparator); 1345 } 1346 1347 /** 1348 * Returns the number of asset tags associated with the asset entry. 1349 * 1350 * @param pk the primary key of the asset entry 1351 * @return the number of asset tags associated with the asset entry 1352 * @throws SystemException if a system exception occurred 1353 */ 1354 public static int getAssetTagsSize(long pk) 1355 throws com.liferay.portal.kernel.exception.SystemException { 1356 return getPersistence().getAssetTagsSize(pk); 1357 } 1358 1359 /** 1360 * Returns <code>true</code> if the asset tag is associated with the asset entry. 1361 * 1362 * @param pk the primary key of the asset entry 1363 * @param assetTagPK the primary key of the asset tag 1364 * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise 1365 * @throws SystemException if a system exception occurred 1366 */ 1367 public static boolean containsAssetTag(long pk, long assetTagPK) 1368 throws com.liferay.portal.kernel.exception.SystemException { 1369 return getPersistence().containsAssetTag(pk, assetTagPK); 1370 } 1371 1372 /** 1373 * Returns <code>true</code> if the asset entry has any asset tags associated with it. 1374 * 1375 * @param pk the primary key of the asset entry to check for associations with asset tags 1376 * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise 1377 * @throws SystemException if a system exception occurred 1378 */ 1379 public static boolean containsAssetTags(long pk) 1380 throws com.liferay.portal.kernel.exception.SystemException { 1381 return getPersistence().containsAssetTags(pk); 1382 } 1383 1384 /** 1385 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1386 * 1387 * @param pk the primary key of the asset entry 1388 * @param assetTagPK the primary key of the asset tag 1389 * @throws SystemException if a system exception occurred 1390 */ 1391 public static void addAssetTag(long pk, long assetTagPK) 1392 throws com.liferay.portal.kernel.exception.SystemException { 1393 getPersistence().addAssetTag(pk, assetTagPK); 1394 } 1395 1396 /** 1397 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1398 * 1399 * @param pk the primary key of the asset entry 1400 * @param assetTag the asset tag 1401 * @throws SystemException if a system exception occurred 1402 */ 1403 public static void addAssetTag(long pk, 1404 com.liferay.portlet.asset.model.AssetTag assetTag) 1405 throws com.liferay.portal.kernel.exception.SystemException { 1406 getPersistence().addAssetTag(pk, assetTag); 1407 } 1408 1409 /** 1410 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1411 * 1412 * @param pk the primary key of the asset entry 1413 * @param assetTagPKs the primary keys of the asset tags 1414 * @throws SystemException if a system exception occurred 1415 */ 1416 public static void addAssetTags(long pk, long[] assetTagPKs) 1417 throws com.liferay.portal.kernel.exception.SystemException { 1418 getPersistence().addAssetTags(pk, assetTagPKs); 1419 } 1420 1421 /** 1422 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1423 * 1424 * @param pk the primary key of the asset entry 1425 * @param assetTags the asset tags 1426 * @throws SystemException if a system exception occurred 1427 */ 1428 public static void addAssetTags(long pk, 1429 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1430 throws com.liferay.portal.kernel.exception.SystemException { 1431 getPersistence().addAssetTags(pk, assetTags); 1432 } 1433 1434 /** 1435 * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1436 * 1437 * @param pk the primary key of the asset entry to clear the associated asset tags from 1438 * @throws SystemException if a system exception occurred 1439 */ 1440 public static void clearAssetTags(long pk) 1441 throws com.liferay.portal.kernel.exception.SystemException { 1442 getPersistence().clearAssetTags(pk); 1443 } 1444 1445 /** 1446 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1447 * 1448 * @param pk the primary key of the asset entry 1449 * @param assetTagPK the primary key of the asset tag 1450 * @throws SystemException if a system exception occurred 1451 */ 1452 public static void removeAssetTag(long pk, long assetTagPK) 1453 throws com.liferay.portal.kernel.exception.SystemException { 1454 getPersistence().removeAssetTag(pk, assetTagPK); 1455 } 1456 1457 /** 1458 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1459 * 1460 * @param pk the primary key of the asset entry 1461 * @param assetTag the asset tag 1462 * @throws SystemException if a system exception occurred 1463 */ 1464 public static void removeAssetTag(long pk, 1465 com.liferay.portlet.asset.model.AssetTag assetTag) 1466 throws com.liferay.portal.kernel.exception.SystemException { 1467 getPersistence().removeAssetTag(pk, assetTag); 1468 } 1469 1470 /** 1471 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1472 * 1473 * @param pk the primary key of the asset entry 1474 * @param assetTagPKs the primary keys of the asset tags 1475 * @throws SystemException if a system exception occurred 1476 */ 1477 public static void removeAssetTags(long pk, long[] assetTagPKs) 1478 throws com.liferay.portal.kernel.exception.SystemException { 1479 getPersistence().removeAssetTags(pk, assetTagPKs); 1480 } 1481 1482 /** 1483 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1484 * 1485 * @param pk the primary key of the asset entry 1486 * @param assetTags the asset tags 1487 * @throws SystemException if a system exception occurred 1488 */ 1489 public static void removeAssetTags(long pk, 1490 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1491 throws com.liferay.portal.kernel.exception.SystemException { 1492 getPersistence().removeAssetTags(pk, assetTags); 1493 } 1494 1495 /** 1496 * 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. 1497 * 1498 * @param pk the primary key of the asset entry 1499 * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry 1500 * @throws SystemException if a system exception occurred 1501 */ 1502 public static void setAssetTags(long pk, long[] assetTagPKs) 1503 throws com.liferay.portal.kernel.exception.SystemException { 1504 getPersistence().setAssetTags(pk, assetTagPKs); 1505 } 1506 1507 /** 1508 * 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. 1509 * 1510 * @param pk the primary key of the asset entry 1511 * @param assetTags the asset tags to be associated with the asset entry 1512 * @throws SystemException if a system exception occurred 1513 */ 1514 public static void setAssetTags(long pk, 1515 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1516 throws com.liferay.portal.kernel.exception.SystemException { 1517 getPersistence().setAssetTags(pk, assetTags); 1518 } 1519 1520 public static AssetEntryPersistence getPersistence() { 1521 if (_persistence == null) { 1522 _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName()); 1523 1524 ReferenceRegistry.registerReference(AssetEntryUtil.class, 1525 "_persistence"); 1526 } 1527 1528 return _persistence; 1529 } 1530 1531 /** 1532 * @deprecated 1533 */ 1534 public void setPersistence(AssetEntryPersistence persistence) { 1535 } 1536 1537 private static AssetEntryPersistence _persistence; 1538 }