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