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 * Returns all the asset entries where companyId = ?. 042 * 043 * @param companyId the company ID 044 * @return the matching asset entries 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 048 long companyId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the asset entries where companyId = ?. 053 * 054 * <p> 055 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 056 * </p> 057 * 058 * @param companyId the company ID 059 * @param start the lower bound of the range of asset entries 060 * @param end the upper bound of the range of asset entries (not inclusive) 061 * @return the range of matching asset entries 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 065 long companyId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the asset entries where companyId = ?. 070 * 071 * <p> 072 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 073 * </p> 074 * 075 * @param companyId the company ID 076 * @param start the lower bound of the range of asset entries 077 * @param end the upper bound of the range of asset entries (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching asset entries 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 083 long companyId, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first asset entry in the ordered set where companyId = ?. 089 * 090 * @param companyId the company ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching asset entry 093 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First( 097 long companyId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.asset.NoSuchEntryException; 101 102 /** 103 * Returns the first asset entry in the ordered set where companyId = ?. 104 * 105 * @param companyId the company ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_First( 111 long companyId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last asset entry in the ordered set where companyId = ?. 117 * 118 * @param companyId the company ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching asset entry 121 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last( 125 long companyId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.asset.NoSuchEntryException; 129 130 /** 131 * Returns the last asset entry in the ordered set where companyId = ?. 132 * 133 * @param companyId the company ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_Last( 139 long companyId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?. 145 * 146 * @param entryId the primary key of the current asset entry 147 * @param companyId the company ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next asset entry 150 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext( 154 long entryId, long companyId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.asset.NoSuchEntryException; 158 159 /** 160 * Removes all the asset entries where companyId = ? from the database. 161 * 162 * @param companyId the company ID 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByCompanyId(long companyId) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of asset entries where companyId = ?. 170 * 171 * @param companyId the company ID 172 * @return the number of matching asset entries 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByCompanyId(long companyId) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns all the asset entries where visible = ?. 180 * 181 * @param visible the visible 182 * @return the matching asset entries 183 * @throws SystemException if a system exception occurred 184 */ 185 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 186 boolean visible) 187 throws com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns a range of all the asset entries where visible = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 194 * </p> 195 * 196 * @param visible the visible 197 * @param start the lower bound of the range of asset entries 198 * @param end the upper bound of the range of asset entries (not inclusive) 199 * @return the range of matching asset entries 200 * @throws SystemException if a system exception occurred 201 */ 202 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 203 boolean visible, int start, int end) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns an ordered range of all the asset entries where visible = ?. 208 * 209 * <p> 210 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 211 * </p> 212 * 213 * @param visible the visible 214 * @param start the lower bound of the range of asset entries 215 * @param end the upper bound of the range of asset entries (not inclusive) 216 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 217 * @return the ordered range of matching asset entries 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 221 boolean visible, int start, int end, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException; 224 225 /** 226 * Returns the first asset entry in the ordered set where visible = ?. 227 * 228 * @param visible the visible 229 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 230 * @return the first matching asset entry 231 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.asset.model.AssetEntry findByVisible_First( 235 boolean visible, 236 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 237 throws com.liferay.portal.kernel.exception.SystemException, 238 com.liferay.portlet.asset.NoSuchEntryException; 239 240 /** 241 * Returns the first asset entry in the ordered set where visible = ?. 242 * 243 * @param visible the visible 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public com.liferay.portlet.asset.model.AssetEntry fetchByVisible_First( 249 boolean visible, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns the last asset entry in the ordered set where visible = ?. 255 * 256 * @param visible the visible 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the last matching asset entry 259 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 public com.liferay.portlet.asset.model.AssetEntry findByVisible_Last( 263 boolean visible, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException, 266 com.liferay.portlet.asset.NoSuchEntryException; 267 268 /** 269 * Returns the last asset entry in the ordered set where visible = ?. 270 * 271 * @param visible the visible 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 273 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 274 * @throws SystemException if a system exception occurred 275 */ 276 public com.liferay.portlet.asset.model.AssetEntry fetchByVisible_Last( 277 boolean visible, 278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 279 throws com.liferay.portal.kernel.exception.SystemException; 280 281 /** 282 * Returns the asset entries before and after the current asset entry in the ordered set where visible = ?. 283 * 284 * @param entryId the primary key of the current asset entry 285 * @param visible the visible 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the previous, current, and next asset entry 288 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext( 292 long entryId, boolean visible, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.asset.NoSuchEntryException; 296 297 /** 298 * Removes all the asset entries where visible = ? from the database. 299 * 300 * @param visible the visible 301 * @throws SystemException if a system exception occurred 302 */ 303 public void removeByVisible(boolean visible) 304 throws com.liferay.portal.kernel.exception.SystemException; 305 306 /** 307 * Returns the number of asset entries where visible = ?. 308 * 309 * @param visible the visible 310 * @return the number of matching asset entries 311 * @throws SystemException if a system exception occurred 312 */ 313 public int countByVisible(boolean visible) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Returns all the asset entries where publishDate = ?. 318 * 319 * @param publishDate the publish date 320 * @return the matching asset entries 321 * @throws SystemException if a system exception occurred 322 */ 323 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 324 java.util.Date publishDate) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Returns a range of all the asset entries where publishDate = ?. 329 * 330 * <p> 331 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 332 * </p> 333 * 334 * @param publishDate the publish date 335 * @param start the lower bound of the range of asset entries 336 * @param end the upper bound of the range of asset entries (not inclusive) 337 * @return the range of matching asset entries 338 * @throws SystemException if a system exception occurred 339 */ 340 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 341 java.util.Date publishDate, int start, int end) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns an ordered range of all the asset entries where publishDate = ?. 346 * 347 * <p> 348 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 349 * </p> 350 * 351 * @param publishDate the publish date 352 * @param start the lower bound of the range of asset entries 353 * @param end the upper bound of the range of asset entries (not inclusive) 354 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 355 * @return the ordered range of matching asset entries 356 * @throws SystemException if a system exception occurred 357 */ 358 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 359 java.util.Date publishDate, int start, int end, 360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 361 throws com.liferay.portal.kernel.exception.SystemException; 362 363 /** 364 * Returns the first asset entry in the ordered set where publishDate = ?. 365 * 366 * @param publishDate the publish date 367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 368 * @return the first matching asset entry 369 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First( 373 java.util.Date publishDate, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.kernel.exception.SystemException, 376 com.liferay.portlet.asset.NoSuchEntryException; 377 378 /** 379 * Returns the first asset entry in the ordered set where publishDate = ?. 380 * 381 * @param publishDate the publish date 382 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 383 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 384 * @throws SystemException if a system exception occurred 385 */ 386 public com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_First( 387 java.util.Date publishDate, 388 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 389 throws com.liferay.portal.kernel.exception.SystemException; 390 391 /** 392 * Returns the last asset entry in the ordered set where publishDate = ?. 393 * 394 * @param publishDate the publish date 395 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 396 * @return the last matching asset entry 397 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 398 * @throws SystemException if a system exception occurred 399 */ 400 public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last( 401 java.util.Date publishDate, 402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 403 throws com.liferay.portal.kernel.exception.SystemException, 404 com.liferay.portlet.asset.NoSuchEntryException; 405 406 /** 407 * Returns the last asset entry in the ordered set where publishDate = ?. 408 * 409 * @param publishDate the publish date 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_Last( 415 java.util.Date publishDate, 416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?. 421 * 422 * @param entryId the primary key of the current asset entry 423 * @param publishDate the publish date 424 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 425 * @return the previous, current, and next asset entry 426 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext( 430 long entryId, java.util.Date publishDate, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException, 433 com.liferay.portlet.asset.NoSuchEntryException; 434 435 /** 436 * Removes all the asset entries where publishDate = ? from the database. 437 * 438 * @param publishDate the publish date 439 * @throws SystemException if a system exception occurred 440 */ 441 public void removeByPublishDate(java.util.Date publishDate) 442 throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Returns the number of asset entries where publishDate = ?. 446 * 447 * @param publishDate the publish date 448 * @return the number of matching asset entries 449 * @throws SystemException if a system exception occurred 450 */ 451 public int countByPublishDate(java.util.Date publishDate) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * Returns all the asset entries where expirationDate = ?. 456 * 457 * @param expirationDate the expiration date 458 * @return the 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) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Returns a range of all the asset entries where expirationDate = ?. 467 * 468 * <p> 469 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 470 * </p> 471 * 472 * @param expirationDate the expiration date 473 * @param start the lower bound of the range of asset entries 474 * @param end the upper bound of the range of asset entries (not inclusive) 475 * @return the range of matching asset entries 476 * @throws SystemException if a system exception occurred 477 */ 478 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 479 java.util.Date expirationDate, int start, int end) 480 throws com.liferay.portal.kernel.exception.SystemException; 481 482 /** 483 * Returns an ordered range of all the asset entries where expirationDate = ?. 484 * 485 * <p> 486 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 487 * </p> 488 * 489 * @param expirationDate the expiration date 490 * @param start the lower bound of the range of asset entries 491 * @param end the upper bound of the range of asset entries (not inclusive) 492 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 493 * @return the ordered range of matching asset entries 494 * @throws SystemException if a system exception occurred 495 */ 496 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 497 java.util.Date expirationDate, int start, int end, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Returns the first asset entry in the ordered set where expirationDate = ?. 503 * 504 * @param expirationDate the expiration date 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the first matching asset entry 507 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First( 511 java.util.Date expirationDate, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.kernel.exception.SystemException, 514 com.liferay.portlet.asset.NoSuchEntryException; 515 516 /** 517 * Returns the first asset entry in the ordered set where expirationDate = ?. 518 * 519 * @param expirationDate the expiration date 520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 521 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 522 * @throws SystemException if a system exception occurred 523 */ 524 public com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_First( 525 java.util.Date expirationDate, 526 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 527 throws com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Returns the last asset entry in the ordered set where expirationDate = ?. 531 * 532 * @param expirationDate the expiration date 533 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 534 * @return the last matching asset entry 535 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 536 * @throws SystemException if a system exception occurred 537 */ 538 public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last( 539 java.util.Date expirationDate, 540 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 541 throws com.liferay.portal.kernel.exception.SystemException, 542 com.liferay.portlet.asset.NoSuchEntryException; 543 544 /** 545 * Returns the last asset entry in the ordered set where expirationDate = ?. 546 * 547 * @param expirationDate the expiration date 548 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 549 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 550 * @throws SystemException if a system exception occurred 551 */ 552 public com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_Last( 553 java.util.Date expirationDate, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?. 559 * 560 * @param entryId the primary key of the current asset entry 561 * @param expirationDate the expiration date 562 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 563 * @return the previous, current, and next asset entry 564 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 565 * @throws SystemException if a system exception occurred 566 */ 567 public com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext( 568 long entryId, java.util.Date expirationDate, 569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 570 throws com.liferay.portal.kernel.exception.SystemException, 571 com.liferay.portlet.asset.NoSuchEntryException; 572 573 /** 574 * Removes all the asset entries where expirationDate = ? from the database. 575 * 576 * @param expirationDate the expiration date 577 * @throws SystemException if a system exception occurred 578 */ 579 public void removeByExpirationDate(java.util.Date expirationDate) 580 throws com.liferay.portal.kernel.exception.SystemException; 581 582 /** 583 * Returns the number of asset entries where expirationDate = ?. 584 * 585 * @param expirationDate the expiration date 586 * @return the number of matching asset entries 587 * @throws SystemException if a system exception occurred 588 */ 589 public int countByExpirationDate(java.util.Date expirationDate) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Returns all the asset entries where layoutUuid = ?. 594 * 595 * @param layoutUuid the layout uuid 596 * @return the matching asset entries 597 * @throws SystemException if a system exception occurred 598 */ 599 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByLayoutUuid( 600 java.lang.String layoutUuid) 601 throws com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Returns a range of all the asset entries where layoutUuid = ?. 605 * 606 * <p> 607 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 608 * </p> 609 * 610 * @param layoutUuid the layout uuid 611 * @param start the lower bound of the range of asset entries 612 * @param end the upper bound of the range of asset entries (not inclusive) 613 * @return the range of matching asset entries 614 * @throws SystemException if a system exception occurred 615 */ 616 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByLayoutUuid( 617 java.lang.String layoutUuid, int start, int end) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Returns an ordered range of all the asset entries where layoutUuid = ?. 622 * 623 * <p> 624 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 625 * </p> 626 * 627 * @param layoutUuid the layout uuid 628 * @param start the lower bound of the range of asset entries 629 * @param end the upper bound of the range of asset entries (not inclusive) 630 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 631 * @return the ordered range of matching asset entries 632 * @throws SystemException if a system exception occurred 633 */ 634 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByLayoutUuid( 635 java.lang.String layoutUuid, int start, int end, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Returns the first asset entry in the ordered set where layoutUuid = ?. 641 * 642 * @param layoutUuid the layout uuid 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the first matching asset entry 645 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 646 * @throws SystemException if a system exception occurred 647 */ 648 public com.liferay.portlet.asset.model.AssetEntry findByLayoutUuid_First( 649 java.lang.String layoutUuid, 650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 651 throws com.liferay.portal.kernel.exception.SystemException, 652 com.liferay.portlet.asset.NoSuchEntryException; 653 654 /** 655 * Returns the first asset entry in the ordered set where layoutUuid = ?. 656 * 657 * @param layoutUuid the layout uuid 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public com.liferay.portlet.asset.model.AssetEntry fetchByLayoutUuid_First( 663 java.lang.String layoutUuid, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the last asset entry in the ordered set where layoutUuid = ?. 669 * 670 * @param layoutUuid the layout uuid 671 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 672 * @return the last matching asset entry 673 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portlet.asset.model.AssetEntry findByLayoutUuid_Last( 677 java.lang.String layoutUuid, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException, 680 com.liferay.portlet.asset.NoSuchEntryException; 681 682 /** 683 * Returns the last asset entry in the ordered set where layoutUuid = ?. 684 * 685 * @param layoutUuid the layout uuid 686 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 687 * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found 688 * @throws SystemException if a system exception occurred 689 */ 690 public com.liferay.portlet.asset.model.AssetEntry fetchByLayoutUuid_Last( 691 java.lang.String layoutUuid, 692 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 693 throws com.liferay.portal.kernel.exception.SystemException; 694 695 /** 696 * Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?. 697 * 698 * @param entryId the primary key of the current asset entry 699 * @param layoutUuid the layout uuid 700 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 701 * @return the previous, current, and next asset entry 702 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 703 * @throws SystemException if a system exception occurred 704 */ 705 public com.liferay.portlet.asset.model.AssetEntry[] findByLayoutUuid_PrevAndNext( 706 long entryId, java.lang.String layoutUuid, 707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 708 throws com.liferay.portal.kernel.exception.SystemException, 709 com.liferay.portlet.asset.NoSuchEntryException; 710 711 /** 712 * Removes all the asset entries where layoutUuid = ? from the database. 713 * 714 * @param layoutUuid the layout uuid 715 * @throws SystemException if a system exception occurred 716 */ 717 public void removeByLayoutUuid(java.lang.String layoutUuid) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Returns the number of asset entries where layoutUuid = ?. 722 * 723 * @param layoutUuid the layout uuid 724 * @return the number of matching asset entries 725 * @throws SystemException if a system exception occurred 726 */ 727 public int countByLayoutUuid(java.lang.String layoutUuid) 728 throws com.liferay.portal.kernel.exception.SystemException; 729 730 /** 731 * Returns the asset entry where groupId = ? and classUuid = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 732 * 733 * @param groupId the group ID 734 * @param classUuid the class uuid 735 * @return the matching asset entry 736 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 737 * @throws SystemException if a system exception occurred 738 */ 739 public com.liferay.portlet.asset.model.AssetEntry findByG_CU(long groupId, 740 java.lang.String classUuid) 741 throws com.liferay.portal.kernel.exception.SystemException, 742 com.liferay.portlet.asset.NoSuchEntryException; 743 744 /** 745 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 746 * 747 * @param groupId the group ID 748 * @param classUuid the class uuid 749 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 750 * @throws SystemException if a system exception occurred 751 */ 752 public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 753 long groupId, java.lang.String classUuid) 754 throws com.liferay.portal.kernel.exception.SystemException; 755 756 /** 757 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 758 * 759 * @param groupId the group ID 760 * @param classUuid the class uuid 761 * @param retrieveFromCache whether to use the finder cache 762 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 763 * @throws SystemException if a system exception occurred 764 */ 765 public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 766 long groupId, java.lang.String classUuid, boolean retrieveFromCache) 767 throws com.liferay.portal.kernel.exception.SystemException; 768 769 /** 770 * Removes the asset entry where groupId = ? and classUuid = ? from the database. 771 * 772 * @param groupId the group ID 773 * @param classUuid the class uuid 774 * @return the asset entry that was removed 775 * @throws SystemException if a system exception occurred 776 */ 777 public com.liferay.portlet.asset.model.AssetEntry removeByG_CU( 778 long groupId, java.lang.String classUuid) 779 throws com.liferay.portal.kernel.exception.SystemException, 780 com.liferay.portlet.asset.NoSuchEntryException; 781 782 /** 783 * Returns the number of asset entries where groupId = ? and classUuid = ?. 784 * 785 * @param groupId the group ID 786 * @param classUuid the class uuid 787 * @return the number of matching asset entries 788 * @throws SystemException if a system exception occurred 789 */ 790 public int countByG_CU(long groupId, java.lang.String classUuid) 791 throws com.liferay.portal.kernel.exception.SystemException; 792 793 /** 794 * Returns the asset entry where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 795 * 796 * @param classNameId the class name ID 797 * @param classPK the class p k 798 * @return the matching asset entry 799 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 800 * @throws SystemException if a system exception occurred 801 */ 802 public com.liferay.portlet.asset.model.AssetEntry findByC_C( 803 long classNameId, long classPK) 804 throws com.liferay.portal.kernel.exception.SystemException, 805 com.liferay.portlet.asset.NoSuchEntryException; 806 807 /** 808 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 809 * 810 * @param classNameId the class name ID 811 * @param classPK the class p k 812 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 813 * @throws SystemException if a system exception occurred 814 */ 815 public com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 816 long classNameId, long classPK) 817 throws com.liferay.portal.kernel.exception.SystemException; 818 819 /** 820 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 821 * 822 * @param classNameId the class name ID 823 * @param classPK the class p k 824 * @param retrieveFromCache whether to use the finder cache 825 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 826 * @throws SystemException if a system exception occurred 827 */ 828 public com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 829 long classNameId, long classPK, boolean retrieveFromCache) 830 throws com.liferay.portal.kernel.exception.SystemException; 831 832 /** 833 * Removes the asset entry where classNameId = ? and classPK = ? from the database. 834 * 835 * @param classNameId the class name ID 836 * @param classPK the class p k 837 * @return the asset entry that was removed 838 * @throws SystemException if a system exception occurred 839 */ 840 public com.liferay.portlet.asset.model.AssetEntry removeByC_C( 841 long classNameId, long classPK) 842 throws com.liferay.portal.kernel.exception.SystemException, 843 com.liferay.portlet.asset.NoSuchEntryException; 844 845 /** 846 * Returns the number of asset entries where classNameId = ? and classPK = ?. 847 * 848 * @param classNameId the class name ID 849 * @param classPK the class p k 850 * @return the number of matching asset entries 851 * @throws SystemException if a system exception occurred 852 */ 853 public int countByC_C(long classNameId, long classPK) 854 throws com.liferay.portal.kernel.exception.SystemException; 855 856 /** 857 * Caches the asset entry in the entity cache if it is enabled. 858 * 859 * @param assetEntry the asset entry 860 */ 861 public void cacheResult( 862 com.liferay.portlet.asset.model.AssetEntry assetEntry); 863 864 /** 865 * Caches the asset entries in the entity cache if it is enabled. 866 * 867 * @param assetEntries the asset entries 868 */ 869 public void cacheResult( 870 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries); 871 872 /** 873 * Creates a new asset entry with the primary key. Does not add the asset entry to the database. 874 * 875 * @param entryId the primary key for the new asset entry 876 * @return the new asset entry 877 */ 878 public com.liferay.portlet.asset.model.AssetEntry create(long entryId); 879 880 /** 881 * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners. 882 * 883 * @param entryId the primary key of the asset entry 884 * @return the asset entry that was removed 885 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 886 * @throws SystemException if a system exception occurred 887 */ 888 public com.liferay.portlet.asset.model.AssetEntry remove(long entryId) 889 throws com.liferay.portal.kernel.exception.SystemException, 890 com.liferay.portlet.asset.NoSuchEntryException; 891 892 public com.liferay.portlet.asset.model.AssetEntry updateImpl( 893 com.liferay.portlet.asset.model.AssetEntry assetEntry) 894 throws com.liferay.portal.kernel.exception.SystemException; 895 896 /** 897 * Returns the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 898 * 899 * @param entryId the primary key of the asset entry 900 * @return the asset entry 901 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 902 * @throws SystemException if a system exception occurred 903 */ 904 public com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey( 905 long entryId) 906 throws com.liferay.portal.kernel.exception.SystemException, 907 com.liferay.portlet.asset.NoSuchEntryException; 908 909 /** 910 * Returns the asset entry with the primary key or returns <code>null</code> if it could not be found. 911 * 912 * @param entryId the primary key of the asset entry 913 * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found 914 * @throws SystemException if a system exception occurred 915 */ 916 public com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey( 917 long entryId) 918 throws com.liferay.portal.kernel.exception.SystemException; 919 920 /** 921 * Returns all the asset entries. 922 * 923 * @return the asset entries 924 * @throws SystemException if a system exception occurred 925 */ 926 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll() 927 throws com.liferay.portal.kernel.exception.SystemException; 928 929 /** 930 * Returns a range of all the asset entries. 931 * 932 * <p> 933 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 934 * </p> 935 * 936 * @param start the lower bound of the range of asset entries 937 * @param end the upper bound of the range of asset entries (not inclusive) 938 * @return the range of asset entries 939 * @throws SystemException if a system exception occurred 940 */ 941 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 942 int start, int end) 943 throws com.liferay.portal.kernel.exception.SystemException; 944 945 /** 946 * Returns an ordered range of all the asset entries. 947 * 948 * <p> 949 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 950 * </p> 951 * 952 * @param start the lower bound of the range of asset entries 953 * @param end the upper bound of the range of asset entries (not inclusive) 954 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 955 * @return the ordered range of asset entries 956 * @throws SystemException if a system exception occurred 957 */ 958 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 959 int start, int end, 960 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 961 throws com.liferay.portal.kernel.exception.SystemException; 962 963 /** 964 * Removes all the asset entries from the database. 965 * 966 * @throws SystemException if a system exception occurred 967 */ 968 public void removeAll() 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 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 }