001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.asset.model.AssetLink; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the asset link service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see AssetLinkPersistence 036 * @see AssetLinkPersistenceImpl 037 * @generated 038 */ 039 public class AssetLinkUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(AssetLink assetLink) { 051 getPersistence().clearCache(assetLink); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<AssetLink> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<AssetLink> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<AssetLink> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static AssetLink remove(AssetLink assetLink) 094 throws SystemException { 095 return getPersistence().remove(assetLink); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static AssetLink update(AssetLink assetLink, boolean merge) 102 throws SystemException { 103 return getPersistence().update(assetLink, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static AssetLink update(AssetLink assetLink, boolean merge, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(assetLink, merge, serviceContext); 112 } 113 114 /** 115 * Caches the asset link in the entity cache if it is enabled. 116 * 117 * @param assetLink the asset link to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.asset.model.AssetLink assetLink) { 121 getPersistence().cacheResult(assetLink); 122 } 123 124 /** 125 * Caches the asset links in the entity cache if it is enabled. 126 * 127 * @param assetLinks the asset links to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks) { 131 getPersistence().cacheResult(assetLinks); 132 } 133 134 /** 135 * Creates a new asset link with the primary key. 136 * 137 * @param linkId the primary key for the new asset link 138 * @return the new asset link 139 */ 140 public static com.liferay.portlet.asset.model.AssetLink create(long linkId) { 141 return getPersistence().create(linkId); 142 } 143 144 /** 145 * Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param linkId the primary key of the asset link to remove 148 * @return the asset link that was removed 149 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.asset.model.AssetLink remove(long linkId) 153 throws com.liferay.portal.kernel.exception.SystemException, 154 com.liferay.portlet.asset.NoSuchLinkException { 155 return getPersistence().remove(linkId); 156 } 157 158 public static com.liferay.portlet.asset.model.AssetLink updateImpl( 159 com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge) 160 throws com.liferay.portal.kernel.exception.SystemException { 161 return getPersistence().updateImpl(assetLink, merge); 162 } 163 164 /** 165 * Finds the asset link with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchLinkException} if it could not be found. 166 * 167 * @param linkId the primary key of the asset link to find 168 * @return the asset link 169 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 170 * @throws SystemException if a system exception occurred 171 */ 172 public static com.liferay.portlet.asset.model.AssetLink findByPrimaryKey( 173 long linkId) 174 throws com.liferay.portal.kernel.exception.SystemException, 175 com.liferay.portlet.asset.NoSuchLinkException { 176 return getPersistence().findByPrimaryKey(linkId); 177 } 178 179 /** 180 * Finds the asset link with the primary key or returns <code>null</code> if it could not be found. 181 * 182 * @param linkId the primary key of the asset link to find 183 * @return the asset link, or <code>null</code> if a asset link with the primary key could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public static com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey( 187 long linkId) throws com.liferay.portal.kernel.exception.SystemException { 188 return getPersistence().fetchByPrimaryKey(linkId); 189 } 190 191 /** 192 * Finds all the asset links where entryId1 = ?. 193 * 194 * @param entryId1 the entry id1 to search with 195 * @return the matching asset links 196 * @throws SystemException if a system exception occurred 197 */ 198 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1( 199 long entryId1) 200 throws com.liferay.portal.kernel.exception.SystemException { 201 return getPersistence().findByE1(entryId1); 202 } 203 204 /** 205 * Finds a range of all the asset links where entryId1 = ?. 206 * 207 * <p> 208 * 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. 209 * </p> 210 * 211 * @param entryId1 the entry id1 to search with 212 * @param start the lower bound of the range of asset links to return 213 * @param end the upper bound of the range of asset links to return (not inclusive) 214 * @return the range of matching asset links 215 * @throws SystemException if a system exception occurred 216 */ 217 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1( 218 long entryId1, int start, int end) 219 throws com.liferay.portal.kernel.exception.SystemException { 220 return getPersistence().findByE1(entryId1, start, end); 221 } 222 223 /** 224 * Finds an ordered range of all the asset links where entryId1 = ?. 225 * 226 * <p> 227 * 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. 228 * </p> 229 * 230 * @param entryId1 the entry id1 to search with 231 * @param start the lower bound of the range of asset links to return 232 * @param end the upper bound of the range of asset links to return (not inclusive) 233 * @param orderByComparator the comparator to order the results by 234 * @return the ordered range of matching asset links 235 * @throws SystemException if a system exception occurred 236 */ 237 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1( 238 long entryId1, int start, int end, 239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 240 throws com.liferay.portal.kernel.exception.SystemException { 241 return getPersistence().findByE1(entryId1, start, end, orderByComparator); 242 } 243 244 /** 245 * Finds the first asset link in the ordered set where entryId1 = ?. 246 * 247 * <p> 248 * 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. 249 * </p> 250 * 251 * @param entryId1 the entry id1 to search with 252 * @param orderByComparator the comparator to order the set by 253 * @return the first matching asset link 254 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portlet.asset.model.AssetLink findByE1_First( 258 long entryId1, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.kernel.exception.SystemException, 261 com.liferay.portlet.asset.NoSuchLinkException { 262 return getPersistence().findByE1_First(entryId1, orderByComparator); 263 } 264 265 /** 266 * Finds the last asset link in the ordered set where entryId1 = ?. 267 * 268 * <p> 269 * 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. 270 * </p> 271 * 272 * @param entryId1 the entry id1 to search with 273 * @param orderByComparator the comparator to order the set by 274 * @return the last matching asset link 275 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 276 * @throws SystemException if a system exception occurred 277 */ 278 public static com.liferay.portlet.asset.model.AssetLink findByE1_Last( 279 long entryId1, 280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 281 throws com.liferay.portal.kernel.exception.SystemException, 282 com.liferay.portlet.asset.NoSuchLinkException { 283 return getPersistence().findByE1_Last(entryId1, orderByComparator); 284 } 285 286 /** 287 * Finds the asset links before and after the current asset link in the ordered set where entryId1 = ?. 288 * 289 * <p> 290 * 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. 291 * </p> 292 * 293 * @param linkId the primary key of the current asset link 294 * @param entryId1 the entry id1 to search with 295 * @param orderByComparator the comparator to order the set by 296 * @return the previous, current, and next asset link 297 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 298 * @throws SystemException if a system exception occurred 299 */ 300 public static com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext( 301 long linkId, long entryId1, 302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 303 throws com.liferay.portal.kernel.exception.SystemException, 304 com.liferay.portlet.asset.NoSuchLinkException { 305 return getPersistence() 306 .findByE1_PrevAndNext(linkId, entryId1, orderByComparator); 307 } 308 309 /** 310 * Finds all the asset links where entryId2 = ?. 311 * 312 * @param entryId2 the entry id2 to search with 313 * @return the matching asset links 314 * @throws SystemException if a system exception occurred 315 */ 316 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2( 317 long entryId2) 318 throws com.liferay.portal.kernel.exception.SystemException { 319 return getPersistence().findByE2(entryId2); 320 } 321 322 /** 323 * Finds a range of all the asset links where entryId2 = ?. 324 * 325 * <p> 326 * 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. 327 * </p> 328 * 329 * @param entryId2 the entry id2 to search with 330 * @param start the lower bound of the range of asset links to return 331 * @param end the upper bound of the range of asset links to return (not inclusive) 332 * @return the range of matching asset links 333 * @throws SystemException if a system exception occurred 334 */ 335 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2( 336 long entryId2, int start, int end) 337 throws com.liferay.portal.kernel.exception.SystemException { 338 return getPersistence().findByE2(entryId2, start, end); 339 } 340 341 /** 342 * Finds an ordered range of all the asset links where entryId2 = ?. 343 * 344 * <p> 345 * 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. 346 * </p> 347 * 348 * @param entryId2 the entry id2 to search with 349 * @param start the lower bound of the range of asset links to return 350 * @param end the upper bound of the range of asset links to return (not inclusive) 351 * @param orderByComparator the comparator to order the results by 352 * @return the ordered range of matching asset links 353 * @throws SystemException if a system exception occurred 354 */ 355 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2( 356 long entryId2, int start, int end, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException { 359 return getPersistence().findByE2(entryId2, start, end, orderByComparator); 360 } 361 362 /** 363 * Finds the first asset link in the ordered set where entryId2 = ?. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param entryId2 the entry id2 to search with 370 * @param orderByComparator the comparator to order the set by 371 * @return the first matching asset link 372 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 373 * @throws SystemException if a system exception occurred 374 */ 375 public static com.liferay.portlet.asset.model.AssetLink findByE2_First( 376 long entryId2, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.kernel.exception.SystemException, 379 com.liferay.portlet.asset.NoSuchLinkException { 380 return getPersistence().findByE2_First(entryId2, orderByComparator); 381 } 382 383 /** 384 * Finds the last asset link in the ordered set where entryId2 = ?. 385 * 386 * <p> 387 * 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. 388 * </p> 389 * 390 * @param entryId2 the entry id2 to search with 391 * @param orderByComparator the comparator to order the set by 392 * @return the last matching asset link 393 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public static com.liferay.portlet.asset.model.AssetLink findByE2_Last( 397 long entryId2, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException, 400 com.liferay.portlet.asset.NoSuchLinkException { 401 return getPersistence().findByE2_Last(entryId2, orderByComparator); 402 } 403 404 /** 405 * Finds the asset links before and after the current asset link in the ordered set where entryId2 = ?. 406 * 407 * <p> 408 * 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. 409 * </p> 410 * 411 * @param linkId the primary key of the current asset link 412 * @param entryId2 the entry id2 to search with 413 * @param orderByComparator the comparator to order the set by 414 * @return the previous, current, and next asset link 415 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 416 * @throws SystemException if a system exception occurred 417 */ 418 public static com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext( 419 long linkId, long entryId2, 420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 421 throws com.liferay.portal.kernel.exception.SystemException, 422 com.liferay.portlet.asset.NoSuchLinkException { 423 return getPersistence() 424 .findByE2_PrevAndNext(linkId, entryId2, orderByComparator); 425 } 426 427 /** 428 * Finds all the asset links where entryId1 = ? and entryId2 = ?. 429 * 430 * @param entryId1 the entry id1 to search with 431 * @param entryId2 the entry id2 to search with 432 * @return the matching asset links 433 * @throws SystemException if a system exception occurred 434 */ 435 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E( 436 long entryId1, long entryId2) 437 throws com.liferay.portal.kernel.exception.SystemException { 438 return getPersistence().findByE_E(entryId1, entryId2); 439 } 440 441 /** 442 * Finds a range of all the asset links where entryId1 = ? and entryId2 = ?. 443 * 444 * <p> 445 * 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. 446 * </p> 447 * 448 * @param entryId1 the entry id1 to search with 449 * @param entryId2 the entry id2 to search with 450 * @param start the lower bound of the range of asset links to return 451 * @param end the upper bound of the range of asset links to return (not inclusive) 452 * @return the range of matching asset links 453 * @throws SystemException if a system exception occurred 454 */ 455 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E( 456 long entryId1, long entryId2, int start, int end) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().findByE_E(entryId1, entryId2, start, end); 459 } 460 461 /** 462 * Finds an ordered range of all the asset links where entryId1 = ? and entryId2 = ?. 463 * 464 * <p> 465 * 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. 466 * </p> 467 * 468 * @param entryId1 the entry id1 to search with 469 * @param entryId2 the entry id2 to search with 470 * @param start the lower bound of the range of asset links to return 471 * @param end the upper bound of the range of asset links to return (not inclusive) 472 * @param orderByComparator the comparator to order the results by 473 * @return the ordered range of matching asset links 474 * @throws SystemException if a system exception occurred 475 */ 476 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E( 477 long entryId1, long entryId2, int start, int end, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException { 480 return getPersistence() 481 .findByE_E(entryId1, entryId2, start, end, orderByComparator); 482 } 483 484 /** 485 * Finds the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. 486 * 487 * <p> 488 * 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. 489 * </p> 490 * 491 * @param entryId1 the entry id1 to search with 492 * @param entryId2 the entry id2 to search with 493 * @param orderByComparator the comparator to order the set by 494 * @return the first matching asset link 495 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public static com.liferay.portlet.asset.model.AssetLink findByE_E_First( 499 long entryId1, long entryId2, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.kernel.exception.SystemException, 502 com.liferay.portlet.asset.NoSuchLinkException { 503 return getPersistence() 504 .findByE_E_First(entryId1, entryId2, orderByComparator); 505 } 506 507 /** 508 * Finds the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. 509 * 510 * <p> 511 * 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. 512 * </p> 513 * 514 * @param entryId1 the entry id1 to search with 515 * @param entryId2 the entry id2 to search with 516 * @param orderByComparator the comparator to order the set by 517 * @return the last matching asset link 518 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 519 * @throws SystemException if a system exception occurred 520 */ 521 public static com.liferay.portlet.asset.model.AssetLink findByE_E_Last( 522 long entryId1, long entryId2, 523 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 524 throws com.liferay.portal.kernel.exception.SystemException, 525 com.liferay.portlet.asset.NoSuchLinkException { 526 return getPersistence() 527 .findByE_E_Last(entryId1, entryId2, orderByComparator); 528 } 529 530 /** 531 * Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?. 532 * 533 * <p> 534 * 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. 535 * </p> 536 * 537 * @param linkId the primary key of the current asset link 538 * @param entryId1 the entry id1 to search with 539 * @param entryId2 the entry id2 to search with 540 * @param orderByComparator the comparator to order the set by 541 * @return the previous, current, and next asset link 542 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 543 * @throws SystemException if a system exception occurred 544 */ 545 public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext( 546 long linkId, long entryId1, long entryId2, 547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 548 throws com.liferay.portal.kernel.exception.SystemException, 549 com.liferay.portlet.asset.NoSuchLinkException { 550 return getPersistence() 551 .findByE_E_PrevAndNext(linkId, entryId1, entryId2, 552 orderByComparator); 553 } 554 555 /** 556 * Finds all the asset links where entryId1 = ? and type = ?. 557 * 558 * @param entryId1 the entry id1 to search with 559 * @param type the type to search with 560 * @return the matching asset links 561 * @throws SystemException if a system exception occurred 562 */ 563 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T( 564 long entryId1, int type) 565 throws com.liferay.portal.kernel.exception.SystemException { 566 return getPersistence().findByE1_T(entryId1, type); 567 } 568 569 /** 570 * Finds a range of all the asset links where entryId1 = ? and type = ?. 571 * 572 * <p> 573 * 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. 574 * </p> 575 * 576 * @param entryId1 the entry id1 to search with 577 * @param type the type to search with 578 * @param start the lower bound of the range of asset links to return 579 * @param end the upper bound of the range of asset links to return (not inclusive) 580 * @return the range of matching asset links 581 * @throws SystemException if a system exception occurred 582 */ 583 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T( 584 long entryId1, int type, int start, int end) 585 throws com.liferay.portal.kernel.exception.SystemException { 586 return getPersistence().findByE1_T(entryId1, type, start, end); 587 } 588 589 /** 590 * Finds an ordered range of all the asset links where entryId1 = ? and type = ?. 591 * 592 * <p> 593 * 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. 594 * </p> 595 * 596 * @param entryId1 the entry id1 to search with 597 * @param type the type to search with 598 * @param start the lower bound of the range of asset links to return 599 * @param end the upper bound of the range of asset links to return (not inclusive) 600 * @param orderByComparator the comparator to order the results by 601 * @return the ordered range of matching asset links 602 * @throws SystemException if a system exception occurred 603 */ 604 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T( 605 long entryId1, int type, int start, int end, 606 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 607 throws com.liferay.portal.kernel.exception.SystemException { 608 return getPersistence() 609 .findByE1_T(entryId1, type, start, end, orderByComparator); 610 } 611 612 /** 613 * Finds the first asset link in the ordered set where entryId1 = ? and type = ?. 614 * 615 * <p> 616 * 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. 617 * </p> 618 * 619 * @param entryId1 the entry id1 to search with 620 * @param type the type to search with 621 * @param orderByComparator the comparator to order the set by 622 * @return the first matching asset link 623 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 624 * @throws SystemException if a system exception occurred 625 */ 626 public static com.liferay.portlet.asset.model.AssetLink findByE1_T_First( 627 long entryId1, int type, 628 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 629 throws com.liferay.portal.kernel.exception.SystemException, 630 com.liferay.portlet.asset.NoSuchLinkException { 631 return getPersistence() 632 .findByE1_T_First(entryId1, type, orderByComparator); 633 } 634 635 /** 636 * Finds the last asset link in the ordered set where entryId1 = ? and type = ?. 637 * 638 * <p> 639 * 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. 640 * </p> 641 * 642 * @param entryId1 the entry id1 to search with 643 * @param type the type to search with 644 * @param orderByComparator the comparator to order the set by 645 * @return the last matching asset link 646 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 647 * @throws SystemException if a system exception occurred 648 */ 649 public static com.liferay.portlet.asset.model.AssetLink findByE1_T_Last( 650 long entryId1, int type, 651 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 652 throws com.liferay.portal.kernel.exception.SystemException, 653 com.liferay.portlet.asset.NoSuchLinkException { 654 return getPersistence() 655 .findByE1_T_Last(entryId1, type, orderByComparator); 656 } 657 658 /** 659 * Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?. 660 * 661 * <p> 662 * 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. 663 * </p> 664 * 665 * @param linkId the primary key of the current asset link 666 * @param entryId1 the entry id1 to search with 667 * @param type the type to search with 668 * @param orderByComparator the comparator to order the set by 669 * @return the previous, current, and next asset link 670 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 671 * @throws SystemException if a system exception occurred 672 */ 673 public static com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext( 674 long linkId, long entryId1, int type, 675 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 676 throws com.liferay.portal.kernel.exception.SystemException, 677 com.liferay.portlet.asset.NoSuchLinkException { 678 return getPersistence() 679 .findByE1_T_PrevAndNext(linkId, entryId1, type, 680 orderByComparator); 681 } 682 683 /** 684 * Finds all the asset links where entryId2 = ? and type = ?. 685 * 686 * @param entryId2 the entry id2 to search with 687 * @param type the type to search with 688 * @return the matching asset links 689 * @throws SystemException if a system exception occurred 690 */ 691 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T( 692 long entryId2, int type) 693 throws com.liferay.portal.kernel.exception.SystemException { 694 return getPersistence().findByE2_T(entryId2, type); 695 } 696 697 /** 698 * Finds a range of all the asset links where entryId2 = ? and type = ?. 699 * 700 * <p> 701 * 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. 702 * </p> 703 * 704 * @param entryId2 the entry id2 to search with 705 * @param type the type to search with 706 * @param start the lower bound of the range of asset links to return 707 * @param end the upper bound of the range of asset links to return (not inclusive) 708 * @return the range of matching asset links 709 * @throws SystemException if a system exception occurred 710 */ 711 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T( 712 long entryId2, int type, int start, int end) 713 throws com.liferay.portal.kernel.exception.SystemException { 714 return getPersistence().findByE2_T(entryId2, type, start, end); 715 } 716 717 /** 718 * Finds an ordered range of all the asset links where entryId2 = ? and type = ?. 719 * 720 * <p> 721 * 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. 722 * </p> 723 * 724 * @param entryId2 the entry id2 to search with 725 * @param type the type to search with 726 * @param start the lower bound of the range of asset links to return 727 * @param end the upper bound of the range of asset links to return (not inclusive) 728 * @param orderByComparator the comparator to order the results by 729 * @return the ordered range of matching asset links 730 * @throws SystemException if a system exception occurred 731 */ 732 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T( 733 long entryId2, int type, int start, int end, 734 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 735 throws com.liferay.portal.kernel.exception.SystemException { 736 return getPersistence() 737 .findByE2_T(entryId2, type, start, end, orderByComparator); 738 } 739 740 /** 741 * Finds the first asset link in the ordered set where entryId2 = ? and type = ?. 742 * 743 * <p> 744 * 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. 745 * </p> 746 * 747 * @param entryId2 the entry id2 to search with 748 * @param type the type to search with 749 * @param orderByComparator the comparator to order the set by 750 * @return the first matching asset link 751 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 752 * @throws SystemException if a system exception occurred 753 */ 754 public static com.liferay.portlet.asset.model.AssetLink findByE2_T_First( 755 long entryId2, int type, 756 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 757 throws com.liferay.portal.kernel.exception.SystemException, 758 com.liferay.portlet.asset.NoSuchLinkException { 759 return getPersistence() 760 .findByE2_T_First(entryId2, type, orderByComparator); 761 } 762 763 /** 764 * Finds the last asset link in the ordered set where entryId2 = ? and type = ?. 765 * 766 * <p> 767 * 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. 768 * </p> 769 * 770 * @param entryId2 the entry id2 to search with 771 * @param type the type to search with 772 * @param orderByComparator the comparator to order the set by 773 * @return the last matching asset link 774 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 775 * @throws SystemException if a system exception occurred 776 */ 777 public static com.liferay.portlet.asset.model.AssetLink findByE2_T_Last( 778 long entryId2, int type, 779 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 780 throws com.liferay.portal.kernel.exception.SystemException, 781 com.liferay.portlet.asset.NoSuchLinkException { 782 return getPersistence() 783 .findByE2_T_Last(entryId2, type, orderByComparator); 784 } 785 786 /** 787 * Finds the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?. 788 * 789 * <p> 790 * 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. 791 * </p> 792 * 793 * @param linkId the primary key of the current asset link 794 * @param entryId2 the entry id2 to search with 795 * @param type the type to search with 796 * @param orderByComparator the comparator to order the set by 797 * @return the previous, current, and next asset link 798 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 799 * @throws SystemException if a system exception occurred 800 */ 801 public static com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext( 802 long linkId, long entryId2, int type, 803 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 804 throws com.liferay.portal.kernel.exception.SystemException, 805 com.liferay.portlet.asset.NoSuchLinkException { 806 return getPersistence() 807 .findByE2_T_PrevAndNext(linkId, entryId2, type, 808 orderByComparator); 809 } 810 811 /** 812 * Finds all the asset links where entryId1 = ? and entryId2 = ? and type = ?. 813 * 814 * @param entryId1 the entry id1 to search with 815 * @param entryId2 the entry id2 to search with 816 * @param type the type to search with 817 * @return the matching asset links 818 * @throws SystemException if a system exception occurred 819 */ 820 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T( 821 long entryId1, long entryId2, int type) 822 throws com.liferay.portal.kernel.exception.SystemException { 823 return getPersistence().findByE_E_T(entryId1, entryId2, type); 824 } 825 826 /** 827 * Finds a range of all the asset links where entryId1 = ? and entryId2 = ? and type = ?. 828 * 829 * <p> 830 * 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. 831 * </p> 832 * 833 * @param entryId1 the entry id1 to search with 834 * @param entryId2 the entry id2 to search with 835 * @param type the type to search with 836 * @param start the lower bound of the range of asset links to return 837 * @param end the upper bound of the range of asset links to return (not inclusive) 838 * @return the range of matching asset links 839 * @throws SystemException if a system exception occurred 840 */ 841 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T( 842 long entryId1, long entryId2, int type, int start, int end) 843 throws com.liferay.portal.kernel.exception.SystemException { 844 return getPersistence().findByE_E_T(entryId1, entryId2, type, start, end); 845 } 846 847 /** 848 * Finds an ordered range of all the asset links where entryId1 = ? and entryId2 = ? and type = ?. 849 * 850 * <p> 851 * 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. 852 * </p> 853 * 854 * @param entryId1 the entry id1 to search with 855 * @param entryId2 the entry id2 to search with 856 * @param type the type to search with 857 * @param start the lower bound of the range of asset links to return 858 * @param end the upper bound of the range of asset links to return (not inclusive) 859 * @param orderByComparator the comparator to order the results by 860 * @return the ordered range of matching asset links 861 * @throws SystemException if a system exception occurred 862 */ 863 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T( 864 long entryId1, long entryId2, int type, int start, int end, 865 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 866 throws com.liferay.portal.kernel.exception.SystemException { 867 return getPersistence() 868 .findByE_E_T(entryId1, entryId2, type, start, end, 869 orderByComparator); 870 } 871 872 /** 873 * Finds the first asset link in the ordered set where entryId1 = ? and entryId2 = ? and type = ?. 874 * 875 * <p> 876 * 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. 877 * </p> 878 * 879 * @param entryId1 the entry id1 to search with 880 * @param entryId2 the entry id2 to search with 881 * @param type the type to search with 882 * @param orderByComparator the comparator to order the set by 883 * @return the first matching asset link 884 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 885 * @throws SystemException if a system exception occurred 886 */ 887 public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_First( 888 long entryId1, long entryId2, int type, 889 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 890 throws com.liferay.portal.kernel.exception.SystemException, 891 com.liferay.portlet.asset.NoSuchLinkException { 892 return getPersistence() 893 .findByE_E_T_First(entryId1, entryId2, type, 894 orderByComparator); 895 } 896 897 /** 898 * Finds the last asset link in the ordered set where entryId1 = ? and entryId2 = ? and type = ?. 899 * 900 * <p> 901 * 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. 902 * </p> 903 * 904 * @param entryId1 the entry id1 to search with 905 * @param entryId2 the entry id2 to search with 906 * @param type the type to search with 907 * @param orderByComparator the comparator to order the set by 908 * @return the last matching asset link 909 * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found 910 * @throws SystemException if a system exception occurred 911 */ 912 public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last( 913 long entryId1, long entryId2, int type, 914 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 915 throws com.liferay.portal.kernel.exception.SystemException, 916 com.liferay.portlet.asset.NoSuchLinkException { 917 return getPersistence() 918 .findByE_E_T_Last(entryId1, entryId2, type, orderByComparator); 919 } 920 921 /** 922 * Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ? and type = ?. 923 * 924 * <p> 925 * 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. 926 * </p> 927 * 928 * @param linkId the primary key of the current asset link 929 * @param entryId1 the entry id1 to search with 930 * @param entryId2 the entry id2 to search with 931 * @param type the type to search with 932 * @param orderByComparator the comparator to order the set by 933 * @return the previous, current, and next asset link 934 * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext( 938 long linkId, long entryId1, long entryId2, int type, 939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 940 throws com.liferay.portal.kernel.exception.SystemException, 941 com.liferay.portlet.asset.NoSuchLinkException { 942 return getPersistence() 943 .findByE_E_T_PrevAndNext(linkId, entryId1, entryId2, type, 944 orderByComparator); 945 } 946 947 /** 948 * Finds all the asset links. 949 * 950 * @return the asset links 951 * @throws SystemException if a system exception occurred 952 */ 953 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll() 954 throws com.liferay.portal.kernel.exception.SystemException { 955 return getPersistence().findAll(); 956 } 957 958 /** 959 * Finds a range of all the asset links. 960 * 961 * <p> 962 * 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. 963 * </p> 964 * 965 * @param start the lower bound of the range of asset links to return 966 * @param end the upper bound of the range of asset links to return (not inclusive) 967 * @return the range of asset links 968 * @throws SystemException if a system exception occurred 969 */ 970 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll( 971 int start, int end) 972 throws com.liferay.portal.kernel.exception.SystemException { 973 return getPersistence().findAll(start, end); 974 } 975 976 /** 977 * Finds an ordered range of all the asset links. 978 * 979 * <p> 980 * 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. 981 * </p> 982 * 983 * @param start the lower bound of the range of asset links to return 984 * @param end the upper bound of the range of asset links to return (not inclusive) 985 * @param orderByComparator the comparator to order the results by 986 * @return the ordered range of asset links 987 * @throws SystemException if a system exception occurred 988 */ 989 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll( 990 int start, int end, 991 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 992 throws com.liferay.portal.kernel.exception.SystemException { 993 return getPersistence().findAll(start, end, orderByComparator); 994 } 995 996 /** 997 * Removes all the asset links where entryId1 = ? from the database. 998 * 999 * @param entryId1 the entry id1 to search with 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public static void removeByE1(long entryId1) 1003 throws com.liferay.portal.kernel.exception.SystemException { 1004 getPersistence().removeByE1(entryId1); 1005 } 1006 1007 /** 1008 * Removes all the asset links where entryId2 = ? from the database. 1009 * 1010 * @param entryId2 the entry id2 to search with 1011 * @throws SystemException if a system exception occurred 1012 */ 1013 public static void removeByE2(long entryId2) 1014 throws com.liferay.portal.kernel.exception.SystemException { 1015 getPersistence().removeByE2(entryId2); 1016 } 1017 1018 /** 1019 * Removes all the asset links where entryId1 = ? and entryId2 = ? from the database. 1020 * 1021 * @param entryId1 the entry id1 to search with 1022 * @param entryId2 the entry id2 to search with 1023 * @throws SystemException if a system exception occurred 1024 */ 1025 public static void removeByE_E(long entryId1, long entryId2) 1026 throws com.liferay.portal.kernel.exception.SystemException { 1027 getPersistence().removeByE_E(entryId1, entryId2); 1028 } 1029 1030 /** 1031 * Removes all the asset links where entryId1 = ? and type = ? from the database. 1032 * 1033 * @param entryId1 the entry id1 to search with 1034 * @param type the type to search with 1035 * @throws SystemException if a system exception occurred 1036 */ 1037 public static void removeByE1_T(long entryId1, int type) 1038 throws com.liferay.portal.kernel.exception.SystemException { 1039 getPersistence().removeByE1_T(entryId1, type); 1040 } 1041 1042 /** 1043 * Removes all the asset links where entryId2 = ? and type = ? from the database. 1044 * 1045 * @param entryId2 the entry id2 to search with 1046 * @param type the type to search with 1047 * @throws SystemException if a system exception occurred 1048 */ 1049 public static void removeByE2_T(long entryId2, int type) 1050 throws com.liferay.portal.kernel.exception.SystemException { 1051 getPersistence().removeByE2_T(entryId2, type); 1052 } 1053 1054 /** 1055 * Removes all the asset links where entryId1 = ? and entryId2 = ? and type = ? from the database. 1056 * 1057 * @param entryId1 the entry id1 to search with 1058 * @param entryId2 the entry id2 to search with 1059 * @param type the type to search with 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public static void removeByE_E_T(long entryId1, long entryId2, int type) 1063 throws com.liferay.portal.kernel.exception.SystemException { 1064 getPersistence().removeByE_E_T(entryId1, entryId2, type); 1065 } 1066 1067 /** 1068 * Removes all the asset links from the database. 1069 * 1070 * @throws SystemException if a system exception occurred 1071 */ 1072 public static void removeAll() 1073 throws com.liferay.portal.kernel.exception.SystemException { 1074 getPersistence().removeAll(); 1075 } 1076 1077 /** 1078 * Counts all the asset links where entryId1 = ?. 1079 * 1080 * @param entryId1 the entry id1 to search with 1081 * @return the number of matching asset links 1082 * @throws SystemException if a system exception occurred 1083 */ 1084 public static int countByE1(long entryId1) 1085 throws com.liferay.portal.kernel.exception.SystemException { 1086 return getPersistence().countByE1(entryId1); 1087 } 1088 1089 /** 1090 * Counts all the asset links where entryId2 = ?. 1091 * 1092 * @param entryId2 the entry id2 to search with 1093 * @return the number of matching asset links 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public static int countByE2(long entryId2) 1097 throws com.liferay.portal.kernel.exception.SystemException { 1098 return getPersistence().countByE2(entryId2); 1099 } 1100 1101 /** 1102 * Counts all the asset links where entryId1 = ? and entryId2 = ?. 1103 * 1104 * @param entryId1 the entry id1 to search with 1105 * @param entryId2 the entry id2 to search with 1106 * @return the number of matching asset links 1107 * @throws SystemException if a system exception occurred 1108 */ 1109 public static int countByE_E(long entryId1, long entryId2) 1110 throws com.liferay.portal.kernel.exception.SystemException { 1111 return getPersistence().countByE_E(entryId1, entryId2); 1112 } 1113 1114 /** 1115 * Counts all the asset links where entryId1 = ? and type = ?. 1116 * 1117 * @param entryId1 the entry id1 to search with 1118 * @param type the type to search with 1119 * @return the number of matching asset links 1120 * @throws SystemException if a system exception occurred 1121 */ 1122 public static int countByE1_T(long entryId1, int type) 1123 throws com.liferay.portal.kernel.exception.SystemException { 1124 return getPersistence().countByE1_T(entryId1, type); 1125 } 1126 1127 /** 1128 * Counts all the asset links where entryId2 = ? and type = ?. 1129 * 1130 * @param entryId2 the entry id2 to search with 1131 * @param type the type to search with 1132 * @return the number of matching asset links 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public static int countByE2_T(long entryId2, int type) 1136 throws com.liferay.portal.kernel.exception.SystemException { 1137 return getPersistence().countByE2_T(entryId2, type); 1138 } 1139 1140 /** 1141 * Counts all the asset links where entryId1 = ? and entryId2 = ? and type = ?. 1142 * 1143 * @param entryId1 the entry id1 to search with 1144 * @param entryId2 the entry id2 to search with 1145 * @param type the type to search with 1146 * @return the number of matching asset links 1147 * @throws SystemException if a system exception occurred 1148 */ 1149 public static int countByE_E_T(long entryId1, long entryId2, int type) 1150 throws com.liferay.portal.kernel.exception.SystemException { 1151 return getPersistence().countByE_E_T(entryId1, entryId2, type); 1152 } 1153 1154 /** 1155 * Counts all the asset links. 1156 * 1157 * @return the number of asset links 1158 * @throws SystemException if a system exception occurred 1159 */ 1160 public static int countAll() 1161 throws com.liferay.portal.kernel.exception.SystemException { 1162 return getPersistence().countAll(); 1163 } 1164 1165 public static AssetLinkPersistence getPersistence() { 1166 if (_persistence == null) { 1167 _persistence = (AssetLinkPersistence)PortalBeanLocatorUtil.locate(AssetLinkPersistence.class.getName()); 1168 } 1169 1170 return _persistence; 1171 } 1172 1173 public void setPersistence(AssetLinkPersistence persistence) { 1174 _persistence = persistence; 1175 } 1176 1177 private static AssetLinkPersistence _persistence; 1178 }