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