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