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