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