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