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.AssetTag; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the asset tag service. This utility wraps {@link AssetTagPersistenceImpl} 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 AssetTagPersistence 037 * @see AssetTagPersistenceImpl 038 * @generated 039 */ 040 public class AssetTagUtil { 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(AssetTag assetTag) { 058 getPersistence().clearCache(assetTag); 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<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery) 073 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<AssetTag> 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<AssetTag> 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 AssetTag remove(AssetTag assetTag) throws SystemException { 101 return getPersistence().remove(assetTag); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 106 */ 107 public static AssetTag update(AssetTag assetTag, boolean merge) 108 throws SystemException { 109 return getPersistence().update(assetTag, merge); 110 } 111 112 /** 113 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 114 */ 115 public static AssetTag update(AssetTag assetTag, boolean merge, 116 ServiceContext serviceContext) throws SystemException { 117 return getPersistence().update(assetTag, merge, serviceContext); 118 } 119 120 /** 121 * Caches the asset tag in the entity cache if it is enabled. 122 * 123 * @param assetTag the asset tag to cache 124 */ 125 public static void cacheResult( 126 com.liferay.portlet.asset.model.AssetTag assetTag) { 127 getPersistence().cacheResult(assetTag); 128 } 129 130 /** 131 * Caches the asset tags in the entity cache if it is enabled. 132 * 133 * @param assetTags the asset tags to cache 134 */ 135 public static void cacheResult( 136 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) { 137 getPersistence().cacheResult(assetTags); 138 } 139 140 /** 141 * Creates a new asset tag with the primary key. Does not add the asset tag to the database. 142 * 143 * @param tagId the primary key for the new asset tag 144 * @return the new asset tag 145 */ 146 public static com.liferay.portlet.asset.model.AssetTag create(long tagId) { 147 return getPersistence().create(tagId); 148 } 149 150 /** 151 * Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners. 152 * 153 * @param tagId the primary key of the asset tag to remove 154 * @return the asset tag that was removed 155 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 156 * @throws SystemException if a system exception occurred 157 */ 158 public static com.liferay.portlet.asset.model.AssetTag remove(long tagId) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.asset.NoSuchTagException { 161 return getPersistence().remove(tagId); 162 } 163 164 public static com.liferay.portlet.asset.model.AssetTag updateImpl( 165 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge) 166 throws com.liferay.portal.kernel.exception.SystemException { 167 return getPersistence().updateImpl(assetTag, merge); 168 } 169 170 /** 171 * Finds the asset tag with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found. 172 * 173 * @param tagId the primary key of the asset tag to find 174 * @return the asset tag 175 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public static com.liferay.portlet.asset.model.AssetTag findByPrimaryKey( 179 long tagId) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.asset.NoSuchTagException { 182 return getPersistence().findByPrimaryKey(tagId); 183 } 184 185 /** 186 * Finds the asset tag with the primary key or returns <code>null</code> if it could not be found. 187 * 188 * @param tagId the primary key of the asset tag to find 189 * @return the asset tag, or <code>null</code> if a asset tag with the primary key could not be found 190 * @throws SystemException if a system exception occurred 191 */ 192 public static com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey( 193 long tagId) throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByPrimaryKey(tagId); 195 } 196 197 /** 198 * Finds all the asset tags where groupId = ?. 199 * 200 * @param groupId the group ID to search with 201 * @return the matching asset tags 202 * @throws SystemException if a system exception occurred 203 */ 204 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId( 205 long groupId) 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return getPersistence().findByGroupId(groupId); 208 } 209 210 /** 211 * Finds a range of all the asset tags where groupId = ?. 212 * 213 * <p> 214 * 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. 215 * </p> 216 * 217 * @param groupId the group ID to search with 218 * @param start the lower bound of the range of asset tags to return 219 * @param end the upper bound of the range of asset tags to return (not inclusive) 220 * @return the range of matching asset tags 221 * @throws SystemException if a system exception occurred 222 */ 223 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId( 224 long groupId, int start, int end) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().findByGroupId(groupId, start, end); 227 } 228 229 /** 230 * Finds an ordered range of all the asset tags where groupId = ?. 231 * 232 * <p> 233 * 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. 234 * </p> 235 * 236 * @param groupId the group ID to search with 237 * @param start the lower bound of the range of asset tags to return 238 * @param end the upper bound of the range of asset tags to return (not inclusive) 239 * @param orderByComparator the comparator to order the results by 240 * @return the ordered range of matching asset tags 241 * @throws SystemException if a system exception occurred 242 */ 243 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId( 244 long groupId, int start, int end, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException { 247 return getPersistence() 248 .findByGroupId(groupId, start, end, orderByComparator); 249 } 250 251 /** 252 * Finds the first asset tag in the ordered set where groupId = ?. 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 groupId the group ID to search with 259 * @param orderByComparator the comparator to order the set by 260 * @return the first matching asset tag 261 * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found 262 * @throws SystemException if a system exception occurred 263 */ 264 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_First( 265 long groupId, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.kernel.exception.SystemException, 268 com.liferay.portlet.asset.NoSuchTagException { 269 return getPersistence().findByGroupId_First(groupId, orderByComparator); 270 } 271 272 /** 273 * Finds the last asset tag in the ordered set where groupId = ?. 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 groupId the group ID to search with 280 * @param orderByComparator the comparator to order the set by 281 * @return the last matching asset tag 282 * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found 283 * @throws SystemException if a system exception occurred 284 */ 285 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_Last( 286 long groupId, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException, 289 com.liferay.portlet.asset.NoSuchTagException { 290 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 291 } 292 293 /** 294 * Finds the asset tags before and after the current asset tag in the ordered set where groupId = ?. 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 tagId the primary key of the current asset tag 301 * @param groupId the group ID to search with 302 * @param orderByComparator the comparator to order the set by 303 * @return the previous, current, and next asset tag 304 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag 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.AssetTag[] findByGroupId_PrevAndNext( 308 long tagId, long groupId, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException, 311 com.liferay.portlet.asset.NoSuchTagException { 312 return getPersistence() 313 .findByGroupId_PrevAndNext(tagId, groupId, orderByComparator); 314 } 315 316 /** 317 * Filters by the user's permissions and finds all the asset tags where groupId = ?. 318 * 319 * @param groupId the group ID to search with 320 * @return the matching asset tags that the user has permission to view 321 * @throws SystemException if a system exception occurred 322 */ 323 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId( 324 long groupId) 325 throws com.liferay.portal.kernel.exception.SystemException { 326 return getPersistence().filterFindByGroupId(groupId); 327 } 328 329 /** 330 * Filters by the user's permissions and finds a range of all the asset tags where groupId = ?. 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 groupId the group ID to search with 337 * @param start the lower bound of the range of asset tags to return 338 * @param end the upper bound of the range of asset tags to return (not inclusive) 339 * @return the range of matching asset tags that the user has permission to view 340 * @throws SystemException if a system exception occurred 341 */ 342 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId( 343 long groupId, int start, int end) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().filterFindByGroupId(groupId, start, end); 346 } 347 348 /** 349 * Filters by the user's permissions and finds an ordered range of all the asset tags where groupId = ?. 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 groupId the group ID to search with 356 * @param start the lower bound of the range of asset tags to return 357 * @param end the upper bound of the range of asset tags to return (not inclusive) 358 * @param orderByComparator the comparator to order the results by 359 * @return the ordered range of matching asset tags that the user has permission to view 360 * @throws SystemException if a system exception occurred 361 */ 362 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId( 363 long groupId, int start, int end, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException { 366 return getPersistence() 367 .filterFindByGroupId(groupId, start, end, orderByComparator); 368 } 369 370 /** 371 * Filters the asset tags before and after the current asset tag in the ordered set where groupId = ?. 372 * 373 * <p> 374 * 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. 375 * </p> 376 * 377 * @param tagId the primary key of the current asset tag 378 * @param groupId the group ID to search with 379 * @param orderByComparator the comparator to order the set by 380 * @return the previous, current, and next asset tag 381 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 382 * @throws SystemException if a system exception occurred 383 */ 384 public static com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext( 385 long tagId, long groupId, 386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 387 throws com.liferay.portal.kernel.exception.SystemException, 388 com.liferay.portlet.asset.NoSuchTagException { 389 return getPersistence() 390 .filterFindByGroupId_PrevAndNext(tagId, groupId, 391 orderByComparator); 392 } 393 394 /** 395 * Finds all the asset tags. 396 * 397 * @return the asset tags 398 * @throws SystemException if a system exception occurred 399 */ 400 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll() 401 throws com.liferay.portal.kernel.exception.SystemException { 402 return getPersistence().findAll(); 403 } 404 405 /** 406 * Finds a range of all the asset tags. 407 * 408 * <p> 409 * 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. 410 * </p> 411 * 412 * @param start the lower bound of the range of asset tags to return 413 * @param end the upper bound of the range of asset tags to return (not inclusive) 414 * @return the range of asset tags 415 * @throws SystemException if a system exception occurred 416 */ 417 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll( 418 int start, int end) 419 throws com.liferay.portal.kernel.exception.SystemException { 420 return getPersistence().findAll(start, end); 421 } 422 423 /** 424 * Finds an ordered range of all the asset tags. 425 * 426 * <p> 427 * 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. 428 * </p> 429 * 430 * @param start the lower bound of the range of asset tags to return 431 * @param end the upper bound of the range of asset tags to return (not inclusive) 432 * @param orderByComparator the comparator to order the results by 433 * @return the ordered range of asset tags 434 * @throws SystemException if a system exception occurred 435 */ 436 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll( 437 int start, int end, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException { 440 return getPersistence().findAll(start, end, orderByComparator); 441 } 442 443 /** 444 * Removes all the asset tags where groupId = ? from the database. 445 * 446 * @param groupId the group ID to search with 447 * @throws SystemException if a system exception occurred 448 */ 449 public static void removeByGroupId(long groupId) 450 throws com.liferay.portal.kernel.exception.SystemException { 451 getPersistence().removeByGroupId(groupId); 452 } 453 454 /** 455 * Removes all the asset tags from the database. 456 * 457 * @throws SystemException if a system exception occurred 458 */ 459 public static void removeAll() 460 throws com.liferay.portal.kernel.exception.SystemException { 461 getPersistence().removeAll(); 462 } 463 464 /** 465 * Counts all the asset tags where groupId = ?. 466 * 467 * @param groupId the group ID to search with 468 * @return the number of matching asset tags 469 * @throws SystemException if a system exception occurred 470 */ 471 public static int countByGroupId(long groupId) 472 throws com.liferay.portal.kernel.exception.SystemException { 473 return getPersistence().countByGroupId(groupId); 474 } 475 476 /** 477 * Filters by the user's permissions and counts all the asset tags where groupId = ?. 478 * 479 * @param groupId the group ID to search with 480 * @return the number of matching asset tags that the user has permission to view 481 * @throws SystemException if a system exception occurred 482 */ 483 public static int filterCountByGroupId(long groupId) 484 throws com.liferay.portal.kernel.exception.SystemException { 485 return getPersistence().filterCountByGroupId(groupId); 486 } 487 488 /** 489 * Counts all the asset tags. 490 * 491 * @return the number of asset tags 492 * @throws SystemException if a system exception occurred 493 */ 494 public static int countAll() 495 throws com.liferay.portal.kernel.exception.SystemException { 496 return getPersistence().countAll(); 497 } 498 499 /** 500 * Gets all the asset entries associated with the asset tag. 501 * 502 * @param pk the primary key of the asset tag to get the associated asset entries for 503 * @return the asset entries associated with the asset tag 504 * @throws SystemException if a system exception occurred 505 */ 506 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 507 long pk) throws com.liferay.portal.kernel.exception.SystemException { 508 return getPersistence().getAssetEntries(pk); 509 } 510 511 /** 512 * Gets a range of all the asset entries associated with the asset tag. 513 * 514 * <p> 515 * 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. 516 * </p> 517 * 518 * @param pk the primary key of the asset tag to get the associated asset entries for 519 * @param start the lower bound of the range of asset tags to return 520 * @param end the upper bound of the range of asset tags to return (not inclusive) 521 * @return the range of asset entries associated with the asset tag 522 * @throws SystemException if a system exception occurred 523 */ 524 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 525 long pk, int start, int end) 526 throws com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence().getAssetEntries(pk, start, end); 528 } 529 530 /** 531 * Gets an ordered range of all the asset entries associated with the asset tag. 532 * 533 * <p> 534 * 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. 535 * </p> 536 * 537 * @param pk the primary key of the asset tag to get the associated asset entries for 538 * @param start the lower bound of the range of asset tags to return 539 * @param end the upper bound of the range of asset tags to return (not inclusive) 540 * @param orderByComparator the comparator to order the results by 541 * @return the ordered range of asset entries associated with the asset tag 542 * @throws SystemException if a system exception occurred 543 */ 544 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 545 long pk, int start, int end, 546 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 547 throws com.liferay.portal.kernel.exception.SystemException { 548 return getPersistence() 549 .getAssetEntries(pk, start, end, orderByComparator); 550 } 551 552 /** 553 * Gets the number of asset entries associated with the asset tag. 554 * 555 * @param pk the primary key of the asset tag to get the number of associated asset entries for 556 * @return the number of asset entries associated with the asset tag 557 * @throws SystemException if a system exception occurred 558 */ 559 public static int getAssetEntriesSize(long pk) 560 throws com.liferay.portal.kernel.exception.SystemException { 561 return getPersistence().getAssetEntriesSize(pk); 562 } 563 564 /** 565 * Determines if the asset entry is associated with the asset tag. 566 * 567 * @param pk the primary key of the asset tag 568 * @param assetEntryPK the primary key of the asset entry 569 * @return <code>true</code> if the asset entry is associated with the asset tag; <code>false</code> otherwise 570 * @throws SystemException if a system exception occurred 571 */ 572 public static boolean containsAssetEntry(long pk, long assetEntryPK) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return getPersistence().containsAssetEntry(pk, assetEntryPK); 575 } 576 577 /** 578 * Determines if the asset tag has any asset entries associated with it. 579 * 580 * @param pk the primary key of the asset tag to check for associations with asset entries 581 * @return <code>true</code> if the asset tag has any asset entries associated with it; <code>false</code> otherwise 582 * @throws SystemException if a system exception occurred 583 */ 584 public static boolean containsAssetEntries(long pk) 585 throws com.liferay.portal.kernel.exception.SystemException { 586 return getPersistence().containsAssetEntries(pk); 587 } 588 589 /** 590 * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 591 * 592 * @param pk the primary key of the asset tag 593 * @param assetEntryPK the primary key of the asset entry 594 * @throws SystemException if a system exception occurred 595 */ 596 public static void addAssetEntry(long pk, long assetEntryPK) 597 throws com.liferay.portal.kernel.exception.SystemException { 598 getPersistence().addAssetEntry(pk, assetEntryPK); 599 } 600 601 /** 602 * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 603 * 604 * @param pk the primary key of the asset tag 605 * @param assetEntry the asset entry 606 * @throws SystemException if a system exception occurred 607 */ 608 public static void addAssetEntry(long pk, 609 com.liferay.portlet.asset.model.AssetEntry assetEntry) 610 throws com.liferay.portal.kernel.exception.SystemException { 611 getPersistence().addAssetEntry(pk, assetEntry); 612 } 613 614 /** 615 * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 616 * 617 * @param pk the primary key of the asset tag 618 * @param assetEntryPKs the primary keys of the asset entries 619 * @throws SystemException if a system exception occurred 620 */ 621 public static void addAssetEntries(long pk, long[] assetEntryPKs) 622 throws com.liferay.portal.kernel.exception.SystemException { 623 getPersistence().addAssetEntries(pk, assetEntryPKs); 624 } 625 626 /** 627 * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 628 * 629 * @param pk the primary key of the asset tag 630 * @param assetEntries the asset entries 631 * @throws SystemException if a system exception occurred 632 */ 633 public static void addAssetEntries(long pk, 634 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 635 throws com.liferay.portal.kernel.exception.SystemException { 636 getPersistence().addAssetEntries(pk, assetEntries); 637 } 638 639 /** 640 * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 641 * 642 * @param pk the primary key of the asset tag to clear the associated asset entries from 643 * @throws SystemException if a system exception occurred 644 */ 645 public static void clearAssetEntries(long pk) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 getPersistence().clearAssetEntries(pk); 648 } 649 650 /** 651 * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 652 * 653 * @param pk the primary key of the asset tag 654 * @param assetEntryPK the primary key of the asset entry 655 * @throws SystemException if a system exception occurred 656 */ 657 public static void removeAssetEntry(long pk, long assetEntryPK) 658 throws com.liferay.portal.kernel.exception.SystemException { 659 getPersistence().removeAssetEntry(pk, assetEntryPK); 660 } 661 662 /** 663 * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 664 * 665 * @param pk the primary key of the asset tag 666 * @param assetEntry the asset entry 667 * @throws SystemException if a system exception occurred 668 */ 669 public static void removeAssetEntry(long pk, 670 com.liferay.portlet.asset.model.AssetEntry assetEntry) 671 throws com.liferay.portal.kernel.exception.SystemException { 672 getPersistence().removeAssetEntry(pk, assetEntry); 673 } 674 675 /** 676 * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 677 * 678 * @param pk the primary key of the asset tag 679 * @param assetEntryPKs the primary keys of the asset entries 680 * @throws SystemException if a system exception occurred 681 */ 682 public static void removeAssetEntries(long pk, long[] assetEntryPKs) 683 throws com.liferay.portal.kernel.exception.SystemException { 684 getPersistence().removeAssetEntries(pk, assetEntryPKs); 685 } 686 687 /** 688 * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 689 * 690 * @param pk the primary key of the asset tag 691 * @param assetEntries the asset entries 692 * @throws SystemException if a system exception occurred 693 */ 694 public static void removeAssetEntries(long pk, 695 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 696 throws com.liferay.portal.kernel.exception.SystemException { 697 getPersistence().removeAssetEntries(pk, assetEntries); 698 } 699 700 /** 701 * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 702 * 703 * @param pk the primary key of the asset tag to set the associations for 704 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag 705 * @throws SystemException if a system exception occurred 706 */ 707 public static void setAssetEntries(long pk, long[] assetEntryPKs) 708 throws com.liferay.portal.kernel.exception.SystemException { 709 getPersistence().setAssetEntries(pk, assetEntryPKs); 710 } 711 712 /** 713 * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 714 * 715 * @param pk the primary key of the asset tag to set the associations for 716 * @param assetEntries the asset entries to be associated with the asset tag 717 * @throws SystemException if a system exception occurred 718 */ 719 public static void setAssetEntries(long pk, 720 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 721 throws com.liferay.portal.kernel.exception.SystemException { 722 getPersistence().setAssetEntries(pk, assetEntries); 723 } 724 725 public static AssetTagPersistence getPersistence() { 726 if (_persistence == null) { 727 _persistence = (AssetTagPersistence)PortalBeanLocatorUtil.locate(AssetTagPersistence.class.getName()); 728 729 ReferenceRegistry.registerReference(AssetTagUtil.class, 730 "_persistence"); 731 } 732 733 return _persistence; 734 } 735 736 public void setPersistence(AssetTagPersistence persistence) { 737 _persistence = persistence; 738 739 ReferenceRegistry.registerReference(AssetTagUtil.class, "_persistence"); 740 } 741 742 private static AssetTagPersistence _persistence; 743 }