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