001 /** 002 * Copyright (c) 2000-2012 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 * <p> 155 * 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. 156 * </p> 157 * 158 * @param companyId the company ID 159 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 160 * @return the first matching asset entry 161 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 162 * @throws SystemException if a system exception occurred 163 */ 164 public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First( 165 long companyId, 166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 167 throws com.liferay.portal.kernel.exception.SystemException, 168 com.liferay.portlet.asset.NoSuchEntryException; 169 170 /** 171 * Returns the last asset entry in the ordered set where companyId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param companyId the company ID 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the last matching asset entry 180 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last( 184 long companyId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.kernel.exception.SystemException, 187 com.liferay.portlet.asset.NoSuchEntryException; 188 189 /** 190 * Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?. 191 * 192 * <p> 193 * 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. 194 * </p> 195 * 196 * @param entryId the primary key of the current asset entry 197 * @param companyId the company ID 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the previous, current, and next asset entry 200 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext( 204 long entryId, long companyId, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException, 207 com.liferay.portlet.asset.NoSuchEntryException; 208 209 /** 210 * Returns all the asset entries where visible = ?. 211 * 212 * @param visible the visible 213 * @return the matching asset entries 214 * @throws SystemException if a system exception occurred 215 */ 216 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 217 boolean visible) 218 throws com.liferay.portal.kernel.exception.SystemException; 219 220 /** 221 * Returns a range of all the asset entries where visible = ?. 222 * 223 * <p> 224 * 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. 225 * </p> 226 * 227 * @param visible the visible 228 * @param start the lower bound of the range of asset entries 229 * @param end the upper bound of the range of asset entries (not inclusive) 230 * @return the range of matching asset entries 231 * @throws SystemException if a system exception occurred 232 */ 233 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 234 boolean visible, int start, int end) 235 throws com.liferay.portal.kernel.exception.SystemException; 236 237 /** 238 * Returns an ordered range of all the asset entries where visible = ?. 239 * 240 * <p> 241 * 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. 242 * </p> 243 * 244 * @param visible the visible 245 * @param start the lower bound of the range of asset entries 246 * @param end the upper bound of the range of asset entries (not inclusive) 247 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 248 * @return the ordered range of matching asset entries 249 * @throws SystemException if a system exception occurred 250 */ 251 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 252 boolean visible, int start, int end, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Returns the first asset entry in the ordered set where visible = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param visible the visible 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the first matching asset entry 266 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public com.liferay.portlet.asset.model.AssetEntry findByVisible_First( 270 boolean visible, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.asset.NoSuchEntryException; 274 275 /** 276 * Returns the last asset entry in the ordered set where visible = ?. 277 * 278 * <p> 279 * 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. 280 * </p> 281 * 282 * @param visible the visible 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching asset entry 285 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public com.liferay.portlet.asset.model.AssetEntry findByVisible_Last( 289 boolean visible, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.asset.NoSuchEntryException; 293 294 /** 295 * Returns the asset entries before and after the current asset entry in the ordered set 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. 299 * </p> 300 * 301 * @param entryId the primary key of the current asset entry 302 * @param visible the visible 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the previous, current, and next asset entry 305 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext( 309 long entryId, boolean visible, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException, 312 com.liferay.portlet.asset.NoSuchEntryException; 313 314 /** 315 * Returns all the asset entries where publishDate = ?. 316 * 317 * @param publishDate the publish date 318 * @return the matching asset entries 319 * @throws SystemException if a system exception occurred 320 */ 321 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 322 java.util.Date publishDate) 323 throws com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Returns a range of all the asset entries where publishDate = ?. 327 * 328 * <p> 329 * 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. 330 * </p> 331 * 332 * @param publishDate the publish date 333 * @param start the lower bound of the range of asset entries 334 * @param end the upper bound of the range of asset entries (not inclusive) 335 * @return the range of matching asset entries 336 * @throws SystemException if a system exception occurred 337 */ 338 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 339 java.util.Date publishDate, int start, int end) 340 throws com.liferay.portal.kernel.exception.SystemException; 341 342 /** 343 * Returns an ordered range of all the asset entries where publishDate = ?. 344 * 345 * <p> 346 * 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. 347 * </p> 348 * 349 * @param publishDate the publish date 350 * @param start the lower bound of the range of asset entries 351 * @param end the upper bound of the range of asset entries (not inclusive) 352 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 353 * @return the ordered range of matching asset entries 354 * @throws SystemException if a system exception occurred 355 */ 356 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 357 java.util.Date publishDate, int start, int end, 358 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Returns the first asset entry in the ordered set where publishDate = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param publishDate the publish date 369 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 370 * @return the first matching asset entry 371 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First( 375 java.util.Date publishDate, 376 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 377 throws com.liferay.portal.kernel.exception.SystemException, 378 com.liferay.portlet.asset.NoSuchEntryException; 379 380 /** 381 * Returns the last asset entry in the ordered set where publishDate = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param publishDate the publish date 388 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 389 * @return the last matching asset entry 390 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last( 394 java.util.Date publishDate, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException, 397 com.liferay.portlet.asset.NoSuchEntryException; 398 399 /** 400 * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?. 401 * 402 * <p> 403 * 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. 404 * </p> 405 * 406 * @param entryId the primary key of the current asset entry 407 * @param publishDate the publish date 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the previous, current, and next asset entry 410 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext( 414 long entryId, java.util.Date publishDate, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.asset.NoSuchEntryException; 418 419 /** 420 * Returns all the asset entries where expirationDate = ?. 421 * 422 * @param expirationDate the expiration date 423 * @return the matching asset entries 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 427 java.util.Date expirationDate) 428 throws com.liferay.portal.kernel.exception.SystemException; 429 430 /** 431 * Returns a range of all the asset entries where expirationDate = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param expirationDate the expiration date 438 * @param start the lower bound of the range of asset entries 439 * @param end the upper bound of the range of asset entries (not inclusive) 440 * @return the range of matching asset entries 441 * @throws SystemException if a system exception occurred 442 */ 443 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 444 java.util.Date expirationDate, int start, int end) 445 throws com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Returns an ordered range of all the asset entries where expirationDate = ?. 449 * 450 * <p> 451 * 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. 452 * </p> 453 * 454 * @param expirationDate the expiration date 455 * @param start the lower bound of the range of asset entries 456 * @param end the upper bound of the range of asset entries (not inclusive) 457 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 458 * @return the ordered range of matching asset entries 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 462 java.util.Date expirationDate, int start, int end, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the first asset entry in the ordered set where expirationDate = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param expirationDate the expiration date 474 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 475 * @return the first matching asset entry 476 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 477 * @throws SystemException if a system exception occurred 478 */ 479 public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First( 480 java.util.Date expirationDate, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.asset.NoSuchEntryException; 484 485 /** 486 * Returns the last asset entry in the ordered set where expirationDate = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param expirationDate the expiration date 493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 494 * @return the last matching asset entry 495 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last( 499 java.util.Date expirationDate, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.kernel.exception.SystemException, 502 com.liferay.portlet.asset.NoSuchEntryException; 503 504 /** 505 * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param entryId the primary key of the current asset entry 512 * @param expirationDate the expiration date 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the previous, current, and next asset entry 515 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext( 519 long entryId, java.util.Date expirationDate, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException, 522 com.liferay.portlet.asset.NoSuchEntryException; 523 524 /** 525 * Returns the asset entry where groupId = ? and classUuid = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 526 * 527 * @param groupId the group ID 528 * @param classUuid the class uuid 529 * @return the matching asset entry 530 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 531 * @throws SystemException if a system exception occurred 532 */ 533 public com.liferay.portlet.asset.model.AssetEntry findByG_CU(long groupId, 534 java.lang.String classUuid) 535 throws com.liferay.portal.kernel.exception.SystemException, 536 com.liferay.portlet.asset.NoSuchEntryException; 537 538 /** 539 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 540 * 541 * @param groupId the group ID 542 * @param classUuid the class uuid 543 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 544 * @throws SystemException if a system exception occurred 545 */ 546 public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 547 long groupId, java.lang.String classUuid) 548 throws com.liferay.portal.kernel.exception.SystemException; 549 550 /** 551 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 552 * 553 * @param groupId the group ID 554 * @param classUuid the class uuid 555 * @param retrieveFromCache whether to use the finder cache 556 * @return the 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 fetchByG_CU( 560 long groupId, java.lang.String classUuid, boolean retrieveFromCache) 561 throws com.liferay.portal.kernel.exception.SystemException; 562 563 /** 564 * Returns the asset entry where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 565 * 566 * @param classNameId the class name ID 567 * @param classPK the class p k 568 * @return the matching asset entry 569 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 570 * @throws SystemException if a system exception occurred 571 */ 572 public com.liferay.portlet.asset.model.AssetEntry findByC_C( 573 long classNameId, long classPK) 574 throws com.liferay.portal.kernel.exception.SystemException, 575 com.liferay.portlet.asset.NoSuchEntryException; 576 577 /** 578 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 579 * 580 * @param classNameId the class name ID 581 * @param classPK the class p k 582 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 583 * @throws SystemException if a system exception occurred 584 */ 585 public com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 586 long classNameId, long classPK) 587 throws com.liferay.portal.kernel.exception.SystemException; 588 589 /** 590 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 591 * 592 * @param classNameId the class name ID 593 * @param classPK the class p k 594 * @param retrieveFromCache whether to use the finder cache 595 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 599 long classNameId, long classPK, boolean retrieveFromCache) 600 throws com.liferay.portal.kernel.exception.SystemException; 601 602 /** 603 * Returns all the asset entries. 604 * 605 * @return the asset entries 606 * @throws SystemException if a system exception occurred 607 */ 608 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll() 609 throws com.liferay.portal.kernel.exception.SystemException; 610 611 /** 612 * Returns a range of all the asset entries. 613 * 614 * <p> 615 * 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. 616 * </p> 617 * 618 * @param start the lower bound of the range of asset entries 619 * @param end the upper bound of the range of asset entries (not inclusive) 620 * @return the range of asset entries 621 * @throws SystemException if a system exception occurred 622 */ 623 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 624 int start, int end) 625 throws com.liferay.portal.kernel.exception.SystemException; 626 627 /** 628 * Returns an ordered range of all the asset entries. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param start the lower bound of the range of asset entries 635 * @param end the upper bound of the range of asset entries (not inclusive) 636 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 637 * @return the ordered range of asset entries 638 * @throws SystemException if a system exception occurred 639 */ 640 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 641 int start, int end, 642 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 643 throws com.liferay.portal.kernel.exception.SystemException; 644 645 /** 646 * Removes all the asset entries where companyId = ? from the database. 647 * 648 * @param companyId the company ID 649 * @throws SystemException if a system exception occurred 650 */ 651 public void removeByCompanyId(long companyId) 652 throws com.liferay.portal.kernel.exception.SystemException; 653 654 /** 655 * Removes all the asset entries where visible = ? from the database. 656 * 657 * @param visible the visible 658 * @throws SystemException if a system exception occurred 659 */ 660 public void removeByVisible(boolean visible) 661 throws com.liferay.portal.kernel.exception.SystemException; 662 663 /** 664 * Removes all the asset entries where publishDate = ? from the database. 665 * 666 * @param publishDate the publish date 667 * @throws SystemException if a system exception occurred 668 */ 669 public void removeByPublishDate(java.util.Date publishDate) 670 throws com.liferay.portal.kernel.exception.SystemException; 671 672 /** 673 * Removes all the asset entries where expirationDate = ? from the database. 674 * 675 * @param expirationDate the expiration date 676 * @throws SystemException if a system exception occurred 677 */ 678 public void removeByExpirationDate(java.util.Date expirationDate) 679 throws com.liferay.portal.kernel.exception.SystemException; 680 681 /** 682 * Removes the asset entry where groupId = ? and classUuid = ? from the database. 683 * 684 * @param groupId the group ID 685 * @param classUuid the class uuid 686 * @throws SystemException if a system exception occurred 687 */ 688 public void removeByG_CU(long groupId, java.lang.String classUuid) 689 throws com.liferay.portal.kernel.exception.SystemException, 690 com.liferay.portlet.asset.NoSuchEntryException; 691 692 /** 693 * Removes the asset entry where classNameId = ? and classPK = ? from the database. 694 * 695 * @param classNameId the class name ID 696 * @param classPK the class p k 697 * @throws SystemException if a system exception occurred 698 */ 699 public void removeByC_C(long classNameId, long classPK) 700 throws com.liferay.portal.kernel.exception.SystemException, 701 com.liferay.portlet.asset.NoSuchEntryException; 702 703 /** 704 * Removes all the asset entries from the database. 705 * 706 * @throws SystemException if a system exception occurred 707 */ 708 public void removeAll() 709 throws com.liferay.portal.kernel.exception.SystemException; 710 711 /** 712 * Returns the number of asset entries where companyId = ?. 713 * 714 * @param companyId the company ID 715 * @return the number of matching asset entries 716 * @throws SystemException if a system exception occurred 717 */ 718 public int countByCompanyId(long companyId) 719 throws com.liferay.portal.kernel.exception.SystemException; 720 721 /** 722 * Returns the number of asset entries where visible = ?. 723 * 724 * @param visible the visible 725 * @return the number of matching asset entries 726 * @throws SystemException if a system exception occurred 727 */ 728 public int countByVisible(boolean visible) 729 throws com.liferay.portal.kernel.exception.SystemException; 730 731 /** 732 * Returns the number of asset entries where publishDate = ?. 733 * 734 * @param publishDate the publish date 735 * @return the number of matching asset entries 736 * @throws SystemException if a system exception occurred 737 */ 738 public int countByPublishDate(java.util.Date publishDate) 739 throws com.liferay.portal.kernel.exception.SystemException; 740 741 /** 742 * Returns the number of asset entries where expirationDate = ?. 743 * 744 * @param expirationDate the expiration date 745 * @return the number of matching asset entries 746 * @throws SystemException if a system exception occurred 747 */ 748 public int countByExpirationDate(java.util.Date expirationDate) 749 throws com.liferay.portal.kernel.exception.SystemException; 750 751 /** 752 * Returns the number of asset entries where groupId = ? and classUuid = ?. 753 * 754 * @param groupId the group ID 755 * @param classUuid the class uuid 756 * @return the number of matching asset entries 757 * @throws SystemException if a system exception occurred 758 */ 759 public int countByG_CU(long groupId, java.lang.String classUuid) 760 throws com.liferay.portal.kernel.exception.SystemException; 761 762 /** 763 * Returns the number of asset entries where classNameId = ? and classPK = ?. 764 * 765 * @param classNameId the class name ID 766 * @param classPK the class p k 767 * @return the number of matching asset entries 768 * @throws SystemException if a system exception occurred 769 */ 770 public int countByC_C(long classNameId, long classPK) 771 throws com.liferay.portal.kernel.exception.SystemException; 772 773 /** 774 * Returns the number of asset entries. 775 * 776 * @return the number of asset entries 777 * @throws SystemException if a system exception occurred 778 */ 779 public int countAll() 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Returns all the asset categories associated with the asset entry. 784 * 785 * @param pk the primary key of the asset entry 786 * @return the asset categories associated with the asset entry 787 * @throws SystemException if a system exception occurred 788 */ 789 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 790 long pk) throws com.liferay.portal.kernel.exception.SystemException; 791 792 /** 793 * Returns a range of all the asset categories associated with the asset entry. 794 * 795 * <p> 796 * 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. 797 * </p> 798 * 799 * @param pk the primary key of the asset entry 800 * @param start the lower bound of the range of asset entries 801 * @param end the upper bound of the range of asset entries (not inclusive) 802 * @return the range of asset categories associated with the asset entry 803 * @throws SystemException if a system exception occurred 804 */ 805 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 806 long pk, int start, int end) 807 throws com.liferay.portal.kernel.exception.SystemException; 808 809 /** 810 * Returns an ordered range of all the asset categories associated with the asset entry. 811 * 812 * <p> 813 * 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. 814 * </p> 815 * 816 * @param pk the primary key of the asset entry 817 * @param start the lower bound of the range of asset entries 818 * @param end the upper bound of the range of asset entries (not inclusive) 819 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 820 * @return the ordered range of asset categories associated with the asset entry 821 * @throws SystemException if a system exception occurred 822 */ 823 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 824 long pk, int start, int end, 825 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 826 throws com.liferay.portal.kernel.exception.SystemException; 827 828 /** 829 * Returns the number of asset categories associated with the asset entry. 830 * 831 * @param pk the primary key of the asset entry 832 * @return the number of asset categories associated with the asset entry 833 * @throws SystemException if a system exception occurred 834 */ 835 public int getAssetCategoriesSize(long pk) 836 throws com.liferay.portal.kernel.exception.SystemException; 837 838 /** 839 * Returns <code>true</code> if the asset category is associated with the asset entry. 840 * 841 * @param pk the primary key of the asset entry 842 * @param assetCategoryPK the primary key of the asset category 843 * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise 844 * @throws SystemException if a system exception occurred 845 */ 846 public boolean containsAssetCategory(long pk, long assetCategoryPK) 847 throws com.liferay.portal.kernel.exception.SystemException; 848 849 /** 850 * Returns <code>true</code> if the asset entry has any asset categories associated with it. 851 * 852 * @param pk the primary key of the asset entry to check for associations with asset categories 853 * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise 854 * @throws SystemException if a system exception occurred 855 */ 856 public boolean containsAssetCategories(long pk) 857 throws com.liferay.portal.kernel.exception.SystemException; 858 859 /** 860 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 861 * 862 * @param pk the primary key of the asset entry 863 * @param assetCategoryPK the primary key of the asset category 864 * @throws SystemException if a system exception occurred 865 */ 866 public void addAssetCategory(long pk, long assetCategoryPK) 867 throws com.liferay.portal.kernel.exception.SystemException; 868 869 /** 870 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 871 * 872 * @param pk the primary key of the asset entry 873 * @param assetCategory the asset category 874 * @throws SystemException if a system exception occurred 875 */ 876 public void addAssetCategory(long pk, 877 com.liferay.portlet.asset.model.AssetCategory assetCategory) 878 throws com.liferay.portal.kernel.exception.SystemException; 879 880 /** 881 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 882 * 883 * @param pk the primary key of the asset entry 884 * @param assetCategoryPKs the primary keys of the asset categories 885 * @throws SystemException if a system exception occurred 886 */ 887 public void addAssetCategories(long pk, long[] assetCategoryPKs) 888 throws com.liferay.portal.kernel.exception.SystemException; 889 890 /** 891 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 892 * 893 * @param pk the primary key of the asset entry 894 * @param assetCategories the asset categories 895 * @throws SystemException if a system exception occurred 896 */ 897 public void addAssetCategories(long pk, 898 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 899 throws com.liferay.portal.kernel.exception.SystemException; 900 901 /** 902 * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 903 * 904 * @param pk the primary key of the asset entry to clear the associated asset categories from 905 * @throws SystemException if a system exception occurred 906 */ 907 public void clearAssetCategories(long pk) 908 throws com.liferay.portal.kernel.exception.SystemException; 909 910 /** 911 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 912 * 913 * @param pk the primary key of the asset entry 914 * @param assetCategoryPK the primary key of the asset category 915 * @throws SystemException if a system exception occurred 916 */ 917 public void removeAssetCategory(long pk, long assetCategoryPK) 918 throws com.liferay.portal.kernel.exception.SystemException; 919 920 /** 921 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 922 * 923 * @param pk the primary key of the asset entry 924 * @param assetCategory the asset category 925 * @throws SystemException if a system exception occurred 926 */ 927 public void removeAssetCategory(long pk, 928 com.liferay.portlet.asset.model.AssetCategory assetCategory) 929 throws com.liferay.portal.kernel.exception.SystemException; 930 931 /** 932 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 933 * 934 * @param pk the primary key of the asset entry 935 * @param assetCategoryPKs the primary keys of the asset categories 936 * @throws SystemException if a system exception occurred 937 */ 938 public void removeAssetCategories(long pk, long[] assetCategoryPKs) 939 throws com.liferay.portal.kernel.exception.SystemException; 940 941 /** 942 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 943 * 944 * @param pk the primary key of the asset entry 945 * @param assetCategories the asset categories 946 * @throws SystemException if a system exception occurred 947 */ 948 public void removeAssetCategories(long pk, 949 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 950 throws com.liferay.portal.kernel.exception.SystemException; 951 952 /** 953 * 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. 954 * 955 * @param pk the primary key of the asset entry 956 * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry 957 * @throws SystemException if a system exception occurred 958 */ 959 public void setAssetCategories(long pk, long[] assetCategoryPKs) 960 throws com.liferay.portal.kernel.exception.SystemException; 961 962 /** 963 * 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. 964 * 965 * @param pk the primary key of the asset entry 966 * @param assetCategories the asset categories to be associated with the asset entry 967 * @throws SystemException if a system exception occurred 968 */ 969 public void setAssetCategories(long pk, 970 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 971 throws com.liferay.portal.kernel.exception.SystemException; 972 973 /** 974 * Returns all the asset tags associated with the asset entry. 975 * 976 * @param pk the primary key of the asset entry 977 * @return the asset tags associated with the asset entry 978 * @throws SystemException if a system exception occurred 979 */ 980 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 981 long pk) throws com.liferay.portal.kernel.exception.SystemException; 982 983 /** 984 * Returns a range of all the asset tags associated with the asset entry. 985 * 986 * <p> 987 * 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. 988 * </p> 989 * 990 * @param pk the primary key of the asset entry 991 * @param start the lower bound of the range of asset entries 992 * @param end the upper bound of the range of asset entries (not inclusive) 993 * @return the range of asset tags associated with the asset entry 994 * @throws SystemException if a system exception occurred 995 */ 996 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 997 long pk, int start, int end) 998 throws com.liferay.portal.kernel.exception.SystemException; 999 1000 /** 1001 * Returns an ordered range of all the asset tags associated with the asset entry. 1002 * 1003 * <p> 1004 * 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. 1005 * </p> 1006 * 1007 * @param pk the primary key of the asset entry 1008 * @param start the lower bound of the range of asset entries 1009 * @param end the upper bound of the range of asset entries (not inclusive) 1010 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1011 * @return the ordered range of asset tags associated with the asset entry 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 1015 long pk, int start, int end, 1016 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1017 throws com.liferay.portal.kernel.exception.SystemException; 1018 1019 /** 1020 * Returns the number of asset tags associated with the asset entry. 1021 * 1022 * @param pk the primary key of the asset entry 1023 * @return the number of asset tags associated with the asset entry 1024 * @throws SystemException if a system exception occurred 1025 */ 1026 public int getAssetTagsSize(long pk) 1027 throws com.liferay.portal.kernel.exception.SystemException; 1028 1029 /** 1030 * Returns <code>true</code> if the asset tag is associated with the asset entry. 1031 * 1032 * @param pk the primary key of the asset entry 1033 * @param assetTagPK the primary key of the asset tag 1034 * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise 1035 * @throws SystemException if a system exception occurred 1036 */ 1037 public boolean containsAssetTag(long pk, long assetTagPK) 1038 throws com.liferay.portal.kernel.exception.SystemException; 1039 1040 /** 1041 * Returns <code>true</code> if the asset entry has any asset tags associated with it. 1042 * 1043 * @param pk the primary key of the asset entry to check for associations with asset tags 1044 * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public boolean containsAssetTags(long pk) 1048 throws com.liferay.portal.kernel.exception.SystemException; 1049 1050 /** 1051 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1052 * 1053 * @param pk the primary key of the asset entry 1054 * @param assetTagPK the primary key of the asset tag 1055 * @throws SystemException if a system exception occurred 1056 */ 1057 public void addAssetTag(long pk, long assetTagPK) 1058 throws com.liferay.portal.kernel.exception.SystemException; 1059 1060 /** 1061 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1062 * 1063 * @param pk the primary key of the asset entry 1064 * @param assetTag the asset tag 1065 * @throws SystemException if a system exception occurred 1066 */ 1067 public void addAssetTag(long pk, 1068 com.liferay.portlet.asset.model.AssetTag assetTag) 1069 throws com.liferay.portal.kernel.exception.SystemException; 1070 1071 /** 1072 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1073 * 1074 * @param pk the primary key of the asset entry 1075 * @param assetTagPKs the primary keys of the asset tags 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public void addAssetTags(long pk, long[] assetTagPKs) 1079 throws com.liferay.portal.kernel.exception.SystemException; 1080 1081 /** 1082 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1083 * 1084 * @param pk the primary key of the asset entry 1085 * @param assetTags the asset tags 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public void addAssetTags(long pk, 1089 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1090 throws com.liferay.portal.kernel.exception.SystemException; 1091 1092 /** 1093 * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1094 * 1095 * @param pk the primary key of the asset entry to clear the associated asset tags from 1096 * @throws SystemException if a system exception occurred 1097 */ 1098 public void clearAssetTags(long pk) 1099 throws com.liferay.portal.kernel.exception.SystemException; 1100 1101 /** 1102 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1103 * 1104 * @param pk the primary key of the asset entry 1105 * @param assetTagPK the primary key of the asset tag 1106 * @throws SystemException if a system exception occurred 1107 */ 1108 public void removeAssetTag(long pk, long assetTagPK) 1109 throws com.liferay.portal.kernel.exception.SystemException; 1110 1111 /** 1112 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1113 * 1114 * @param pk the primary key of the asset entry 1115 * @param assetTag the asset tag 1116 * @throws SystemException if a system exception occurred 1117 */ 1118 public void removeAssetTag(long pk, 1119 com.liferay.portlet.asset.model.AssetTag assetTag) 1120 throws com.liferay.portal.kernel.exception.SystemException; 1121 1122 /** 1123 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1124 * 1125 * @param pk the primary key of the asset entry 1126 * @param assetTagPKs the primary keys of the asset tags 1127 * @throws SystemException if a system exception occurred 1128 */ 1129 public void removeAssetTags(long pk, long[] assetTagPKs) 1130 throws com.liferay.portal.kernel.exception.SystemException; 1131 1132 /** 1133 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1134 * 1135 * @param pk the primary key of the asset entry 1136 * @param assetTags the asset tags 1137 * @throws SystemException if a system exception occurred 1138 */ 1139 public void removeAssetTags(long pk, 1140 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1141 throws com.liferay.portal.kernel.exception.SystemException; 1142 1143 /** 1144 * 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. 1145 * 1146 * @param pk the primary key of the asset entry 1147 * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public void setAssetTags(long pk, long[] assetTagPKs) 1151 throws com.liferay.portal.kernel.exception.SystemException; 1152 1153 /** 1154 * 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. 1155 * 1156 * @param pk the primary key of the asset entry 1157 * @param assetTags the asset tags to be associated with the asset entry 1158 * @throws SystemException if a system exception occurred 1159 */ 1160 public void setAssetTags(long pk, 1161 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1162 throws com.liferay.portal.kernel.exception.SystemException; 1163 }