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