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