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