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.AssetLink; 022 023 /** 024 * The persistence interface for the asset link 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 com.liferay.portlet.asset.service.persistence.impl.AssetLinkPersistenceImpl 032 * @see AssetLinkUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface AssetLinkPersistence extends BasePersistence<AssetLink> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link AssetLinkUtil} to access the asset link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the asset links where entryId1 = ?. 045 * 046 * @param entryId1 the entry id1 047 * @return the matching asset links 048 */ 049 public java.util.List<AssetLink> findByE1(long entryId1); 050 051 /** 052 * Returns a range of all the asset links where entryId1 = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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 entryId1 the entry id1 059 * @param start the lower bound of the range of asset links 060 * @param end the upper bound of the range of asset links (not inclusive) 061 * @return the range of matching asset links 062 */ 063 public java.util.List<AssetLink> findByE1(long entryId1, int start, int end); 064 065 /** 066 * Returns an ordered range of all the asset links where entryId1 = ?. 067 * 068 * <p> 069 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 070 * </p> 071 * 072 * @param entryId1 the entry id1 073 * @param start the lower bound of the range of asset links 074 * @param end the upper bound of the range of asset links (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching asset links 077 */ 078 public java.util.List<AssetLink> findByE1(long entryId1, int start, 079 int end, 080 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 081 082 /** 083 * Returns an ordered range of all the asset links where entryId1 = ?. 084 * 085 * <p> 086 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 087 * </p> 088 * 089 * @param entryId1 the entry id1 090 * @param start the lower bound of the range of asset links 091 * @param end the upper bound of the range of asset links (not inclusive) 092 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 093 * @param retrieveFromCache whether to retrieve from the finder cache 094 * @return the ordered range of matching asset links 095 */ 096 public java.util.List<AssetLink> findByE1(long entryId1, int start, 097 int end, 098 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, 099 boolean retrieveFromCache); 100 101 /** 102 * Returns the first asset link in the ordered set where entryId1 = ?. 103 * 104 * @param entryId1 the entry id1 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching asset link 107 * @throws NoSuchLinkException if a matching asset link could not be found 108 */ 109 public AssetLink findByE1_First(long entryId1, 110 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 111 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 112 113 /** 114 * Returns the first asset link in the ordered set where entryId1 = ?. 115 * 116 * @param entryId1 the entry id1 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found 119 */ 120 public AssetLink fetchByE1_First(long entryId1, 121 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 122 123 /** 124 * Returns the last asset link in the ordered set where entryId1 = ?. 125 * 126 * @param entryId1 the entry id1 127 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 128 * @return the last matching asset link 129 * @throws NoSuchLinkException if a matching asset link could not be found 130 */ 131 public AssetLink findByE1_Last(long entryId1, 132 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 133 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 134 135 /** 136 * Returns the last asset link in the ordered set where entryId1 = ?. 137 * 138 * @param entryId1 the entry id1 139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 140 * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found 141 */ 142 public AssetLink fetchByE1_Last(long entryId1, 143 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 144 145 /** 146 * Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?. 147 * 148 * @param linkId the primary key of the current asset link 149 * @param entryId1 the entry id1 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the previous, current, and next asset link 152 * @throws NoSuchLinkException if a asset link with the primary key could not be found 153 */ 154 public AssetLink[] findByE1_PrevAndNext(long linkId, long entryId1, 155 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 156 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 157 158 /** 159 * Removes all the asset links where entryId1 = ? from the database. 160 * 161 * @param entryId1 the entry id1 162 */ 163 public void removeByE1(long entryId1); 164 165 /** 166 * Returns the number of asset links where entryId1 = ?. 167 * 168 * @param entryId1 the entry id1 169 * @return the number of matching asset links 170 */ 171 public int countByE1(long entryId1); 172 173 /** 174 * Returns all the asset links where entryId2 = ?. 175 * 176 * @param entryId2 the entry id2 177 * @return the matching asset links 178 */ 179 public java.util.List<AssetLink> findByE2(long entryId2); 180 181 /** 182 * Returns a range of all the asset links where entryId2 = ?. 183 * 184 * <p> 185 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 186 * </p> 187 * 188 * @param entryId2 the entry id2 189 * @param start the lower bound of the range of asset links 190 * @param end the upper bound of the range of asset links (not inclusive) 191 * @return the range of matching asset links 192 */ 193 public java.util.List<AssetLink> findByE2(long entryId2, int start, int end); 194 195 /** 196 * Returns an ordered range of all the asset links where entryId2 = ?. 197 * 198 * <p> 199 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 200 * </p> 201 * 202 * @param entryId2 the entry id2 203 * @param start the lower bound of the range of asset links 204 * @param end the upper bound of the range of asset links (not inclusive) 205 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 206 * @return the ordered range of matching asset links 207 */ 208 public java.util.List<AssetLink> findByE2(long entryId2, int start, 209 int end, 210 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 211 212 /** 213 * Returns an ordered range of all the asset links where entryId2 = ?. 214 * 215 * <p> 216 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 217 * </p> 218 * 219 * @param entryId2 the entry id2 220 * @param start the lower bound of the range of asset links 221 * @param end the upper bound of the range of asset links (not inclusive) 222 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 223 * @param retrieveFromCache whether to retrieve from the finder cache 224 * @return the ordered range of matching asset links 225 */ 226 public java.util.List<AssetLink> findByE2(long entryId2, int start, 227 int end, 228 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, 229 boolean retrieveFromCache); 230 231 /** 232 * Returns the first asset link in the ordered set where entryId2 = ?. 233 * 234 * @param entryId2 the entry id2 235 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 236 * @return the first matching asset link 237 * @throws NoSuchLinkException if a matching asset link could not be found 238 */ 239 public AssetLink findByE2_First(long entryId2, 240 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 241 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 242 243 /** 244 * Returns the first asset link in the ordered set where entryId2 = ?. 245 * 246 * @param entryId2 the entry id2 247 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 248 * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found 249 */ 250 public AssetLink fetchByE2_First(long entryId2, 251 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 252 253 /** 254 * Returns the last asset link in the ordered set where entryId2 = ?. 255 * 256 * @param entryId2 the entry id2 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the last matching asset link 259 * @throws NoSuchLinkException if a matching asset link could not be found 260 */ 261 public AssetLink findByE2_Last(long entryId2, 262 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 263 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 264 265 /** 266 * Returns the last asset link in the ordered set where entryId2 = ?. 267 * 268 * @param entryId2 the entry id2 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found 271 */ 272 public AssetLink fetchByE2_Last(long entryId2, 273 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 274 275 /** 276 * Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?. 277 * 278 * @param linkId the primary key of the current asset link 279 * @param entryId2 the entry id2 280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 281 * @return the previous, current, and next asset link 282 * @throws NoSuchLinkException if a asset link with the primary key could not be found 283 */ 284 public AssetLink[] findByE2_PrevAndNext(long linkId, long entryId2, 285 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 286 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 287 288 /** 289 * Removes all the asset links where entryId2 = ? from the database. 290 * 291 * @param entryId2 the entry id2 292 */ 293 public void removeByE2(long entryId2); 294 295 /** 296 * Returns the number of asset links where entryId2 = ?. 297 * 298 * @param entryId2 the entry id2 299 * @return the number of matching asset links 300 */ 301 public int countByE2(long entryId2); 302 303 /** 304 * Returns all the asset links where entryId1 = ? and entryId2 = ?. 305 * 306 * @param entryId1 the entry id1 307 * @param entryId2 the entry id2 308 * @return the matching asset links 309 */ 310 public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2); 311 312 /** 313 * Returns a range of all the asset links where entryId1 = ? and entryId2 = ?. 314 * 315 * <p> 316 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 317 * </p> 318 * 319 * @param entryId1 the entry id1 320 * @param entryId2 the entry id2 321 * @param start the lower bound of the range of asset links 322 * @param end the upper bound of the range of asset links (not inclusive) 323 * @return the range of matching asset links 324 */ 325 public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2, 326 int start, int end); 327 328 /** 329 * Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?. 330 * 331 * <p> 332 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 333 * </p> 334 * 335 * @param entryId1 the entry id1 336 * @param entryId2 the entry id2 337 * @param start the lower bound of the range of asset links 338 * @param end the upper bound of the range of asset links (not inclusive) 339 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 340 * @return the ordered range of matching asset links 341 */ 342 public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2, 343 int start, int end, 344 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 345 346 /** 347 * Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?. 348 * 349 * <p> 350 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 351 * </p> 352 * 353 * @param entryId1 the entry id1 354 * @param entryId2 the entry id2 355 * @param start the lower bound of the range of asset links 356 * @param end the upper bound of the range of asset links (not inclusive) 357 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 358 * @param retrieveFromCache whether to retrieve from the finder cache 359 * @return the ordered range of matching asset links 360 */ 361 public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2, 362 int start, int end, 363 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, 364 boolean retrieveFromCache); 365 366 /** 367 * Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. 368 * 369 * @param entryId1 the entry id1 370 * @param entryId2 the entry id2 371 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 372 * @return the first matching asset link 373 * @throws NoSuchLinkException if a matching asset link could not be found 374 */ 375 public AssetLink findByE_E_First(long entryId1, long entryId2, 376 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 377 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 378 379 /** 380 * Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. 381 * 382 * @param entryId1 the entry id1 383 * @param entryId2 the entry id2 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found 386 */ 387 public AssetLink fetchByE_E_First(long entryId1, long entryId2, 388 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 389 390 /** 391 * Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. 392 * 393 * @param entryId1 the entry id1 394 * @param entryId2 the entry id2 395 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 396 * @return the last matching asset link 397 * @throws NoSuchLinkException if a matching asset link could not be found 398 */ 399 public AssetLink findByE_E_Last(long entryId1, long entryId2, 400 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 401 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 402 403 /** 404 * Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. 405 * 406 * @param entryId1 the entry id1 407 * @param entryId2 the entry id2 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found 410 */ 411 public AssetLink fetchByE_E_Last(long entryId1, long entryId2, 412 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 413 414 /** 415 * Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?. 416 * 417 * @param linkId the primary key of the current asset link 418 * @param entryId1 the entry id1 419 * @param entryId2 the entry id2 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the previous, current, and next asset link 422 * @throws NoSuchLinkException if a asset link with the primary key could not be found 423 */ 424 public AssetLink[] findByE_E_PrevAndNext(long linkId, long entryId1, 425 long entryId2, 426 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 427 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 428 429 /** 430 * Removes all the asset links where entryId1 = ? and entryId2 = ? from the database. 431 * 432 * @param entryId1 the entry id1 433 * @param entryId2 the entry id2 434 */ 435 public void removeByE_E(long entryId1, long entryId2); 436 437 /** 438 * Returns the number of asset links where entryId1 = ? and entryId2 = ?. 439 * 440 * @param entryId1 the entry id1 441 * @param entryId2 the entry id2 442 * @return the number of matching asset links 443 */ 444 public int countByE_E(long entryId1, long entryId2); 445 446 /** 447 * Returns all the asset links where entryId1 = ? and type = ?. 448 * 449 * @param entryId1 the entry id1 450 * @param type the type 451 * @return the matching asset links 452 */ 453 public java.util.List<AssetLink> findByE1_T(long entryId1, int type); 454 455 /** 456 * Returns a range of all the asset links where entryId1 = ? and type = ?. 457 * 458 * <p> 459 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 460 * </p> 461 * 462 * @param entryId1 the entry id1 463 * @param type the type 464 * @param start the lower bound of the range of asset links 465 * @param end the upper bound of the range of asset links (not inclusive) 466 * @return the range of matching asset links 467 */ 468 public java.util.List<AssetLink> findByE1_T(long entryId1, int type, 469 int start, int end); 470 471 /** 472 * Returns an ordered range of all the asset links where entryId1 = ? and type = ?. 473 * 474 * <p> 475 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 476 * </p> 477 * 478 * @param entryId1 the entry id1 479 * @param type the type 480 * @param start the lower bound of the range of asset links 481 * @param end the upper bound of the range of asset links (not inclusive) 482 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 483 * @return the ordered range of matching asset links 484 */ 485 public java.util.List<AssetLink> findByE1_T(long entryId1, int type, 486 int start, int end, 487 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 488 489 /** 490 * Returns an ordered range of all the asset links where entryId1 = ? and type = ?. 491 * 492 * <p> 493 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 494 * </p> 495 * 496 * @param entryId1 the entry id1 497 * @param type the type 498 * @param start the lower bound of the range of asset links 499 * @param end the upper bound of the range of asset links (not inclusive) 500 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 501 * @param retrieveFromCache whether to retrieve from the finder cache 502 * @return the ordered range of matching asset links 503 */ 504 public java.util.List<AssetLink> findByE1_T(long entryId1, int type, 505 int start, int end, 506 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, 507 boolean retrieveFromCache); 508 509 /** 510 * Returns the first asset link in the ordered set where entryId1 = ? and type = ?. 511 * 512 * @param entryId1 the entry id1 513 * @param type the type 514 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 515 * @return the first matching asset link 516 * @throws NoSuchLinkException if a matching asset link could not be found 517 */ 518 public AssetLink findByE1_T_First(long entryId1, int type, 519 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 520 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 521 522 /** 523 * Returns the first asset link in the ordered set where entryId1 = ? and type = ?. 524 * 525 * @param entryId1 the entry id1 526 * @param type the type 527 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 528 * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found 529 */ 530 public AssetLink fetchByE1_T_First(long entryId1, int type, 531 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 532 533 /** 534 * Returns the last asset link in the ordered set where entryId1 = ? and type = ?. 535 * 536 * @param entryId1 the entry id1 537 * @param type the type 538 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 539 * @return the last matching asset link 540 * @throws NoSuchLinkException if a matching asset link could not be found 541 */ 542 public AssetLink findByE1_T_Last(long entryId1, int type, 543 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 544 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 545 546 /** 547 * Returns the last asset link in the ordered set where entryId1 = ? and type = ?. 548 * 549 * @param entryId1 the entry id1 550 * @param type the type 551 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 552 * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found 553 */ 554 public AssetLink fetchByE1_T_Last(long entryId1, int type, 555 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 556 557 /** 558 * Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?. 559 * 560 * @param linkId the primary key of the current asset link 561 * @param entryId1 the entry id1 562 * @param type the type 563 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 564 * @return the previous, current, and next asset link 565 * @throws NoSuchLinkException if a asset link with the primary key could not be found 566 */ 567 public AssetLink[] findByE1_T_PrevAndNext(long linkId, long entryId1, 568 int type, 569 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 570 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 571 572 /** 573 * Removes all the asset links where entryId1 = ? and type = ? from the database. 574 * 575 * @param entryId1 the entry id1 576 * @param type the type 577 */ 578 public void removeByE1_T(long entryId1, int type); 579 580 /** 581 * Returns the number of asset links where entryId1 = ? and type = ?. 582 * 583 * @param entryId1 the entry id1 584 * @param type the type 585 * @return the number of matching asset links 586 */ 587 public int countByE1_T(long entryId1, int type); 588 589 /** 590 * Returns all the asset links where entryId2 = ? and type = ?. 591 * 592 * @param entryId2 the entry id2 593 * @param type the type 594 * @return the matching asset links 595 */ 596 public java.util.List<AssetLink> findByE2_T(long entryId2, int type); 597 598 /** 599 * Returns a range of all the asset links where entryId2 = ? and type = ?. 600 * 601 * <p> 602 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 603 * </p> 604 * 605 * @param entryId2 the entry id2 606 * @param type the type 607 * @param start the lower bound of the range of asset links 608 * @param end the upper bound of the range of asset links (not inclusive) 609 * @return the range of matching asset links 610 */ 611 public java.util.List<AssetLink> findByE2_T(long entryId2, int type, 612 int start, int end); 613 614 /** 615 * Returns an ordered range of all the asset links where entryId2 = ? and type = ?. 616 * 617 * <p> 618 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 619 * </p> 620 * 621 * @param entryId2 the entry id2 622 * @param type the type 623 * @param start the lower bound of the range of asset links 624 * @param end the upper bound of the range of asset links (not inclusive) 625 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 626 * @return the ordered range of matching asset links 627 */ 628 public java.util.List<AssetLink> findByE2_T(long entryId2, int type, 629 int start, int end, 630 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 631 632 /** 633 * Returns an ordered range of all the asset links where entryId2 = ? and type = ?. 634 * 635 * <p> 636 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 637 * </p> 638 * 639 * @param entryId2 the entry id2 640 * @param type the type 641 * @param start the lower bound of the range of asset links 642 * @param end the upper bound of the range of asset links (not inclusive) 643 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 644 * @param retrieveFromCache whether to retrieve from the finder cache 645 * @return the ordered range of matching asset links 646 */ 647 public java.util.List<AssetLink> findByE2_T(long entryId2, int type, 648 int start, int end, 649 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, 650 boolean retrieveFromCache); 651 652 /** 653 * Returns the first asset link in the ordered set where entryId2 = ? and type = ?. 654 * 655 * @param entryId2 the entry id2 656 * @param type the type 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the first matching asset link 659 * @throws NoSuchLinkException if a matching asset link could not be found 660 */ 661 public AssetLink findByE2_T_First(long entryId2, int type, 662 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 663 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 664 665 /** 666 * Returns the first asset link in the ordered set where entryId2 = ? and type = ?. 667 * 668 * @param entryId2 the entry id2 669 * @param type the type 670 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 671 * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found 672 */ 673 public AssetLink fetchByE2_T_First(long entryId2, int type, 674 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 675 676 /** 677 * Returns the last asset link in the ordered set where entryId2 = ? and type = ?. 678 * 679 * @param entryId2 the entry id2 680 * @param type the type 681 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 682 * @return the last matching asset link 683 * @throws NoSuchLinkException if a matching asset link could not be found 684 */ 685 public AssetLink findByE2_T_Last(long entryId2, int type, 686 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 687 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 688 689 /** 690 * Returns the last asset link in the ordered set where entryId2 = ? and type = ?. 691 * 692 * @param entryId2 the entry id2 693 * @param type the type 694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 695 * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found 696 */ 697 public AssetLink fetchByE2_T_Last(long entryId2, int type, 698 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 699 700 /** 701 * Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?. 702 * 703 * @param linkId the primary key of the current asset link 704 * @param entryId2 the entry id2 705 * @param type the type 706 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 707 * @return the previous, current, and next asset link 708 * @throws NoSuchLinkException if a asset link with the primary key could not be found 709 */ 710 public AssetLink[] findByE2_T_PrevAndNext(long linkId, long entryId2, 711 int type, 712 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) 713 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 714 715 /** 716 * Removes all the asset links where entryId2 = ? and type = ? from the database. 717 * 718 * @param entryId2 the entry id2 719 * @param type the type 720 */ 721 public void removeByE2_T(long entryId2, int type); 722 723 /** 724 * Returns the number of asset links where entryId2 = ? and type = ?. 725 * 726 * @param entryId2 the entry id2 727 * @param type the type 728 * @return the number of matching asset links 729 */ 730 public int countByE2_T(long entryId2, int type); 731 732 /** 733 * Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or throws a {@link NoSuchLinkException} if it could not be found. 734 * 735 * @param entryId1 the entry id1 736 * @param entryId2 the entry id2 737 * @param type the type 738 * @return the matching asset link 739 * @throws NoSuchLinkException if a matching asset link could not be found 740 */ 741 public AssetLink findByE_E_T(long entryId1, long entryId2, int type) 742 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 743 744 /** 745 * Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 746 * 747 * @param entryId1 the entry id1 748 * @param entryId2 the entry id2 749 * @param type the type 750 * @return the matching asset link, or <code>null</code> if a matching asset link could not be found 751 */ 752 public AssetLink fetchByE_E_T(long entryId1, long entryId2, int type); 753 754 /** 755 * Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 756 * 757 * @param entryId1 the entry id1 758 * @param entryId2 the entry id2 759 * @param type the type 760 * @param retrieveFromCache whether to retrieve from the finder cache 761 * @return the matching asset link, or <code>null</code> if a matching asset link could not be found 762 */ 763 public AssetLink fetchByE_E_T(long entryId1, long entryId2, int type, 764 boolean retrieveFromCache); 765 766 /** 767 * Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database. 768 * 769 * @param entryId1 the entry id1 770 * @param entryId2 the entry id2 771 * @param type the type 772 * @return the asset link that was removed 773 */ 774 public AssetLink removeByE_E_T(long entryId1, long entryId2, int type) 775 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 776 777 /** 778 * Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?. 779 * 780 * @param entryId1 the entry id1 781 * @param entryId2 the entry id2 782 * @param type the type 783 * @return the number of matching asset links 784 */ 785 public int countByE_E_T(long entryId1, long entryId2, int type); 786 787 /** 788 * Caches the asset link in the entity cache if it is enabled. 789 * 790 * @param assetLink the asset link 791 */ 792 public void cacheResult(AssetLink assetLink); 793 794 /** 795 * Caches the asset links in the entity cache if it is enabled. 796 * 797 * @param assetLinks the asset links 798 */ 799 public void cacheResult(java.util.List<AssetLink> assetLinks); 800 801 /** 802 * Creates a new asset link with the primary key. Does not add the asset link to the database. 803 * 804 * @param linkId the primary key for the new asset link 805 * @return the new asset link 806 */ 807 public AssetLink create(long linkId); 808 809 /** 810 * Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners. 811 * 812 * @param linkId the primary key of the asset link 813 * @return the asset link that was removed 814 * @throws NoSuchLinkException if a asset link with the primary key could not be found 815 */ 816 public AssetLink remove(long linkId) 817 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 818 819 public AssetLink updateImpl(AssetLink assetLink); 820 821 /** 822 * Returns the asset link with the primary key or throws a {@link NoSuchLinkException} if it could not be found. 823 * 824 * @param linkId the primary key of the asset link 825 * @return the asset link 826 * @throws NoSuchLinkException if a asset link with the primary key could not be found 827 */ 828 public AssetLink findByPrimaryKey(long linkId) 829 throws com.liferay.portlet.asset.exception.NoSuchLinkException; 830 831 /** 832 * Returns the asset link with the primary key or returns <code>null</code> if it could not be found. 833 * 834 * @param linkId the primary key of the asset link 835 * @return the asset link, or <code>null</code> if a asset link with the primary key could not be found 836 */ 837 public AssetLink fetchByPrimaryKey(long linkId); 838 839 @Override 840 public java.util.Map<java.io.Serializable, AssetLink> fetchByPrimaryKeys( 841 java.util.Set<java.io.Serializable> primaryKeys); 842 843 /** 844 * Returns all the asset links. 845 * 846 * @return the asset links 847 */ 848 public java.util.List<AssetLink> findAll(); 849 850 /** 851 * Returns a range of all the asset links. 852 * 853 * <p> 854 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 855 * </p> 856 * 857 * @param start the lower bound of the range of asset links 858 * @param end the upper bound of the range of asset links (not inclusive) 859 * @return the range of asset links 860 */ 861 public java.util.List<AssetLink> findAll(int start, int end); 862 863 /** 864 * Returns an ordered range of all the asset links. 865 * 866 * <p> 867 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 868 * </p> 869 * 870 * @param start the lower bound of the range of asset links 871 * @param end the upper bound of the range of asset links (not inclusive) 872 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 873 * @return the ordered range of asset links 874 */ 875 public java.util.List<AssetLink> findAll(int start, int end, 876 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); 877 878 /** 879 * Returns an ordered range of all the asset links. 880 * 881 * <p> 882 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. 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. 883 * </p> 884 * 885 * @param start the lower bound of the range of asset links 886 * @param end the upper bound of the range of asset links (not inclusive) 887 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 888 * @param retrieveFromCache whether to retrieve from the finder cache 889 * @return the ordered range of asset links 890 */ 891 public java.util.List<AssetLink> findAll(int start, int end, 892 com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, 893 boolean retrieveFromCache); 894 895 /** 896 * Removes all the asset links from the database. 897 */ 898 public void removeAll(); 899 900 /** 901 * Returns the number of asset links. 902 * 903 * @return the number of asset links 904 */ 905 public int countAll(); 906 907 @Override 908 public java.util.Set<java.lang.String> getBadColumnNames(); 909 }