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.AssetTagProperty; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the asset tag property service. This utility wraps {@link AssetTagPropertyPersistenceImpl} 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 AssetTagPropertyPersistence 037 * @see AssetTagPropertyPersistenceImpl 038 * @generated 039 */ 040 public class AssetTagPropertyUtil { 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(AssetTagProperty assetTagProperty) { 058 getPersistence().clearCache(assetTagProperty); 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<AssetTagProperty> 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<AssetTagProperty> 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<AssetTagProperty> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static AssetTagProperty update(AssetTagProperty assetTagProperty) 101 throws SystemException { 102 return getPersistence().update(assetTagProperty); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static AssetTagProperty update(AssetTagProperty assetTagProperty, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(assetTagProperty, serviceContext); 111 } 112 113 /** 114 * Caches the asset tag property in the entity cache if it is enabled. 115 * 116 * @param assetTagProperty the asset tag property 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) { 120 getPersistence().cacheResult(assetTagProperty); 121 } 122 123 /** 124 * Caches the asset tag properties in the entity cache if it is enabled. 125 * 126 * @param assetTagProperties the asset tag properties 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> assetTagProperties) { 130 getPersistence().cacheResult(assetTagProperties); 131 } 132 133 /** 134 * Creates a new asset tag property with the primary key. Does not add the asset tag property to the database. 135 * 136 * @param tagPropertyId the primary key for the new asset tag property 137 * @return the new asset tag property 138 */ 139 public static com.liferay.portlet.asset.model.AssetTagProperty create( 140 long tagPropertyId) { 141 return getPersistence().create(tagPropertyId); 142 } 143 144 /** 145 * Removes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param tagPropertyId the primary key of the asset tag property 148 * @return the asset tag property that was removed 149 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.asset.model.AssetTagProperty remove( 153 long tagPropertyId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.asset.NoSuchTagPropertyException { 156 return getPersistence().remove(tagPropertyId); 157 } 158 159 public static com.liferay.portlet.asset.model.AssetTagProperty updateImpl( 160 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(assetTagProperty); 163 } 164 165 /** 166 * Returns the asset tag property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagPropertyException} if it could not be found. 167 * 168 * @param tagPropertyId the primary key of the asset tag property 169 * @return the asset tag property 170 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.asset.model.AssetTagProperty findByPrimaryKey( 174 long tagPropertyId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.asset.NoSuchTagPropertyException { 177 return getPersistence().findByPrimaryKey(tagPropertyId); 178 } 179 180 /** 181 * Returns the asset tag property with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param tagPropertyId the primary key of the asset tag property 184 * @return the asset tag property, or <code>null</code> if a asset tag property with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByPrimaryKey( 188 long tagPropertyId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(tagPropertyId); 191 } 192 193 /** 194 * Returns all the asset tag properties where companyId = ?. 195 * 196 * @param companyId the company ID 197 * @return the matching asset tag properties 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId( 201 long companyId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByCompanyId(companyId); 204 } 205 206 /** 207 * Returns a range of all the asset tag properties where companyId = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param companyId the company ID 214 * @param start the lower bound of the range of asset tag properties 215 * @param end the upper bound of the range of asset tag properties (not inclusive) 216 * @return the range of matching asset tag properties 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId( 220 long companyId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByCompanyId(companyId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the asset tag properties where companyId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param companyId the company ID 233 * @param start the lower bound of the range of asset tag properties 234 * @param end the upper bound of the range of asset tag properties (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching asset tag properties 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId( 240 long companyId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByCompanyId(companyId, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first asset tag property in the ordered set where companyId = ?. 249 * 250 * @param companyId the company ID 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching asset tag property 253 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First( 257 long companyId, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.asset.NoSuchTagPropertyException { 261 return getPersistence() 262 .findByCompanyId_First(companyId, orderByComparator); 263 } 264 265 /** 266 * Returns the first asset tag property in the ordered set where companyId = ?. 267 * 268 * @param companyId the company ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByCompanyId_First( 274 long companyId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return getPersistence() 278 .fetchByCompanyId_First(companyId, orderByComparator); 279 } 280 281 /** 282 * Returns the last asset tag property in the ordered set where companyId = ?. 283 * 284 * @param companyId the company ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching asset tag property 287 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last( 291 long companyId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.asset.NoSuchTagPropertyException { 295 return getPersistence() 296 .findByCompanyId_Last(companyId, orderByComparator); 297 } 298 299 /** 300 * Returns the last asset tag property in the ordered set where companyId = ?. 301 * 302 * @param companyId the company ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 305 * @throws SystemException if a system exception occurred 306 */ 307 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByCompanyId_Last( 308 long companyId, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException { 311 return getPersistence() 312 .fetchByCompanyId_Last(companyId, orderByComparator); 313 } 314 315 /** 316 * Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?. 317 * 318 * @param tagPropertyId the primary key of the current asset tag property 319 * @param companyId the company ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the previous, current, and next asset tag property 322 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext( 326 long tagPropertyId, long companyId, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.asset.NoSuchTagPropertyException { 330 return getPersistence() 331 .findByCompanyId_PrevAndNext(tagPropertyId, companyId, 332 orderByComparator); 333 } 334 335 /** 336 * Returns all the asset tag properties where tagId = ?. 337 * 338 * @param tagId the tag ID 339 * @return the matching asset tag properties 340 * @throws SystemException if a system exception occurred 341 */ 342 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId( 343 long tagId) throws com.liferay.portal.kernel.exception.SystemException { 344 return getPersistence().findByTagId(tagId); 345 } 346 347 /** 348 * Returns a range of all the asset tag properties where tagId = ?. 349 * 350 * <p> 351 * 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. 352 * </p> 353 * 354 * @param tagId the tag ID 355 * @param start the lower bound of the range of asset tag properties 356 * @param end the upper bound of the range of asset tag properties (not inclusive) 357 * @return the range of matching asset tag properties 358 * @throws SystemException if a system exception occurred 359 */ 360 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId( 361 long tagId, int start, int end) 362 throws com.liferay.portal.kernel.exception.SystemException { 363 return getPersistence().findByTagId(tagId, start, end); 364 } 365 366 /** 367 * Returns an ordered range of all the asset tag properties where tagId = ?. 368 * 369 * <p> 370 * 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. 371 * </p> 372 * 373 * @param tagId the tag ID 374 * @param start the lower bound of the range of asset tag properties 375 * @param end the upper bound of the range of asset tag properties (not inclusive) 376 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 377 * @return the ordered range of matching asset tag properties 378 * @throws SystemException if a system exception occurred 379 */ 380 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId( 381 long tagId, int start, int end, 382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 383 throws com.liferay.portal.kernel.exception.SystemException { 384 return getPersistence().findByTagId(tagId, start, end, orderByComparator); 385 } 386 387 /** 388 * Returns the first asset tag property in the ordered set where tagId = ?. 389 * 390 * @param tagId the tag ID 391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 392 * @return the first matching asset tag property 393 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public static com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First( 397 long tagId, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException, 400 com.liferay.portlet.asset.NoSuchTagPropertyException { 401 return getPersistence().findByTagId_First(tagId, orderByComparator); 402 } 403 404 /** 405 * Returns the first asset tag property in the ordered set where tagId = ?. 406 * 407 * @param tagId the tag ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the first matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByTagId_First( 413 long tagId, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.kernel.exception.SystemException { 416 return getPersistence().fetchByTagId_First(tagId, orderByComparator); 417 } 418 419 /** 420 * Returns the last asset tag property in the ordered set where tagId = ?. 421 * 422 * @param tagId the tag ID 423 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 424 * @return the last matching asset tag property 425 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 426 * @throws SystemException if a system exception occurred 427 */ 428 public static com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last( 429 long tagId, 430 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 431 throws com.liferay.portal.kernel.exception.SystemException, 432 com.liferay.portlet.asset.NoSuchTagPropertyException { 433 return getPersistence().findByTagId_Last(tagId, orderByComparator); 434 } 435 436 /** 437 * Returns the last asset tag property in the ordered set where tagId = ?. 438 * 439 * @param tagId the tag ID 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the last matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 442 * @throws SystemException if a system exception occurred 443 */ 444 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByTagId_Last( 445 long tagId, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.kernel.exception.SystemException { 448 return getPersistence().fetchByTagId_Last(tagId, orderByComparator); 449 } 450 451 /** 452 * Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?. 453 * 454 * @param tagPropertyId the primary key of the current asset tag property 455 * @param tagId the tag ID 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the previous, current, and next asset tag property 458 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public static com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext( 462 long tagPropertyId, long tagId, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException, 465 com.liferay.portlet.asset.NoSuchTagPropertyException { 466 return getPersistence() 467 .findByTagId_PrevAndNext(tagPropertyId, tagId, 468 orderByComparator); 469 } 470 471 /** 472 * Returns all the asset tag properties where companyId = ? and key = ?. 473 * 474 * @param companyId the company ID 475 * @param key the key 476 * @return the matching asset tag properties 477 * @throws SystemException if a system exception occurred 478 */ 479 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K( 480 long companyId, java.lang.String key) 481 throws com.liferay.portal.kernel.exception.SystemException { 482 return getPersistence().findByC_K(companyId, key); 483 } 484 485 /** 486 * Returns a range of all the asset tag properties where companyId = ? and key = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param companyId the company ID 493 * @param key the key 494 * @param start the lower bound of the range of asset tag properties 495 * @param end the upper bound of the range of asset tag properties (not inclusive) 496 * @return the range of matching asset tag properties 497 * @throws SystemException if a system exception occurred 498 */ 499 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K( 500 long companyId, java.lang.String key, int start, int end) 501 throws com.liferay.portal.kernel.exception.SystemException { 502 return getPersistence().findByC_K(companyId, key, start, end); 503 } 504 505 /** 506 * Returns an ordered range of all the asset tag properties where companyId = ? and key = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param companyId the company ID 513 * @param key the key 514 * @param start the lower bound of the range of asset tag properties 515 * @param end the upper bound of the range of asset tag properties (not inclusive) 516 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 517 * @return the ordered range of matching asset tag properties 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K( 521 long companyId, java.lang.String key, int start, int end, 522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 523 throws com.liferay.portal.kernel.exception.SystemException { 524 return getPersistence() 525 .findByC_K(companyId, key, start, end, orderByComparator); 526 } 527 528 /** 529 * Returns the first asset tag property in the ordered set where companyId = ? and key = ?. 530 * 531 * @param companyId the company ID 532 * @param key the key 533 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 534 * @return the first matching asset tag property 535 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 536 * @throws SystemException if a system exception occurred 537 */ 538 public static com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First( 539 long companyId, java.lang.String key, 540 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 541 throws com.liferay.portal.kernel.exception.SystemException, 542 com.liferay.portlet.asset.NoSuchTagPropertyException { 543 return getPersistence() 544 .findByC_K_First(companyId, key, orderByComparator); 545 } 546 547 /** 548 * Returns the first asset tag property in the ordered set where companyId = ? and key = ?. 549 * 550 * @param companyId the company ID 551 * @param key the key 552 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 553 * @return the first matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 554 * @throws SystemException if a system exception occurred 555 */ 556 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByC_K_First( 557 long companyId, java.lang.String key, 558 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 559 throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence() 561 .fetchByC_K_First(companyId, key, orderByComparator); 562 } 563 564 /** 565 * Returns the last asset tag property in the ordered set where companyId = ? and key = ?. 566 * 567 * @param companyId the company ID 568 * @param key the key 569 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 570 * @return the last matching asset tag property 571 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 572 * @throws SystemException if a system exception occurred 573 */ 574 public static com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last( 575 long companyId, java.lang.String key, 576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 577 throws com.liferay.portal.kernel.exception.SystemException, 578 com.liferay.portlet.asset.NoSuchTagPropertyException { 579 return getPersistence().findByC_K_Last(companyId, key, orderByComparator); 580 } 581 582 /** 583 * Returns the last asset tag property in the ordered set where companyId = ? and key = ?. 584 * 585 * @param companyId the company ID 586 * @param key the key 587 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 588 * @return the last matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 589 * @throws SystemException if a system exception occurred 590 */ 591 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByC_K_Last( 592 long companyId, java.lang.String key, 593 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 594 throws com.liferay.portal.kernel.exception.SystemException { 595 return getPersistence() 596 .fetchByC_K_Last(companyId, key, orderByComparator); 597 } 598 599 /** 600 * Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?. 601 * 602 * @param tagPropertyId the primary key of the current asset tag property 603 * @param companyId the company ID 604 * @param key the key 605 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 606 * @return the previous, current, and next asset tag property 607 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 608 * @throws SystemException if a system exception occurred 609 */ 610 public static com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext( 611 long tagPropertyId, long companyId, java.lang.String key, 612 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 613 throws com.liferay.portal.kernel.exception.SystemException, 614 com.liferay.portlet.asset.NoSuchTagPropertyException { 615 return getPersistence() 616 .findByC_K_PrevAndNext(tagPropertyId, companyId, key, 617 orderByComparator); 618 } 619 620 /** 621 * Returns the asset tag property where tagId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchTagPropertyException} if it could not be found. 622 * 623 * @param tagId the tag ID 624 * @param key the key 625 * @return the matching asset tag property 626 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 627 * @throws SystemException if a system exception occurred 628 */ 629 public static com.liferay.portlet.asset.model.AssetTagProperty findByT_K( 630 long tagId, java.lang.String key) 631 throws com.liferay.portal.kernel.exception.SystemException, 632 com.liferay.portlet.asset.NoSuchTagPropertyException { 633 return getPersistence().findByT_K(tagId, key); 634 } 635 636 /** 637 * Returns the asset tag property where tagId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 638 * 639 * @param tagId the tag ID 640 * @param key the key 641 * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 642 * @throws SystemException if a system exception occurred 643 */ 644 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K( 645 long tagId, java.lang.String key) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 return getPersistence().fetchByT_K(tagId, key); 648 } 649 650 /** 651 * Returns the asset tag property where tagId = ? and key = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 652 * 653 * @param tagId the tag ID 654 * @param key the key 655 * @param retrieveFromCache whether to use the finder cache 656 * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 657 * @throws SystemException if a system exception occurred 658 */ 659 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K( 660 long tagId, java.lang.String key, boolean retrieveFromCache) 661 throws com.liferay.portal.kernel.exception.SystemException { 662 return getPersistence().fetchByT_K(tagId, key, retrieveFromCache); 663 } 664 665 /** 666 * Returns all the asset tag properties. 667 * 668 * @return the asset tag properties 669 * @throws SystemException if a system exception occurred 670 */ 671 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll() 672 throws com.liferay.portal.kernel.exception.SystemException { 673 return getPersistence().findAll(); 674 } 675 676 /** 677 * Returns a range of all the asset tag properties. 678 * 679 * <p> 680 * 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. 681 * </p> 682 * 683 * @param start the lower bound of the range of asset tag properties 684 * @param end the upper bound of the range of asset tag properties (not inclusive) 685 * @return the range of asset tag properties 686 * @throws SystemException if a system exception occurred 687 */ 688 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll( 689 int start, int end) 690 throws com.liferay.portal.kernel.exception.SystemException { 691 return getPersistence().findAll(start, end); 692 } 693 694 /** 695 * Returns an ordered range of all the asset tag properties. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param start the lower bound of the range of asset tag properties 702 * @param end the upper bound of the range of asset tag properties (not inclusive) 703 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 704 * @return the ordered range of asset tag properties 705 * @throws SystemException if a system exception occurred 706 */ 707 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll( 708 int start, int end, 709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 710 throws com.liferay.portal.kernel.exception.SystemException { 711 return getPersistence().findAll(start, end, orderByComparator); 712 } 713 714 /** 715 * Removes all the asset tag properties where companyId = ? from the database. 716 * 717 * @param companyId the company ID 718 * @throws SystemException if a system exception occurred 719 */ 720 public static void removeByCompanyId(long companyId) 721 throws com.liferay.portal.kernel.exception.SystemException { 722 getPersistence().removeByCompanyId(companyId); 723 } 724 725 /** 726 * Removes all the asset tag properties where tagId = ? from the database. 727 * 728 * @param tagId the tag ID 729 * @throws SystemException if a system exception occurred 730 */ 731 public static void removeByTagId(long tagId) 732 throws com.liferay.portal.kernel.exception.SystemException { 733 getPersistence().removeByTagId(tagId); 734 } 735 736 /** 737 * Removes all the asset tag properties where companyId = ? and key = ? from the database. 738 * 739 * @param companyId the company ID 740 * @param key the key 741 * @throws SystemException if a system exception occurred 742 */ 743 public static void removeByC_K(long companyId, java.lang.String key) 744 throws com.liferay.portal.kernel.exception.SystemException { 745 getPersistence().removeByC_K(companyId, key); 746 } 747 748 /** 749 * Removes the asset tag property where tagId = ? and key = ? from the database. 750 * 751 * @param tagId the tag ID 752 * @param key the key 753 * @return the asset tag property that was removed 754 * @throws SystemException if a system exception occurred 755 */ 756 public static com.liferay.portlet.asset.model.AssetTagProperty removeByT_K( 757 long tagId, java.lang.String key) 758 throws com.liferay.portal.kernel.exception.SystemException, 759 com.liferay.portlet.asset.NoSuchTagPropertyException { 760 return getPersistence().removeByT_K(tagId, key); 761 } 762 763 /** 764 * Removes all the asset tag properties from the database. 765 * 766 * @throws SystemException if a system exception occurred 767 */ 768 public static void removeAll() 769 throws com.liferay.portal.kernel.exception.SystemException { 770 getPersistence().removeAll(); 771 } 772 773 /** 774 * Returns the number of asset tag properties where companyId = ?. 775 * 776 * @param companyId the company ID 777 * @return the number of matching asset tag properties 778 * @throws SystemException if a system exception occurred 779 */ 780 public static int countByCompanyId(long companyId) 781 throws com.liferay.portal.kernel.exception.SystemException { 782 return getPersistence().countByCompanyId(companyId); 783 } 784 785 /** 786 * Returns the number of asset tag properties where tagId = ?. 787 * 788 * @param tagId the tag ID 789 * @return the number of matching asset tag properties 790 * @throws SystemException if a system exception occurred 791 */ 792 public static int countByTagId(long tagId) 793 throws com.liferay.portal.kernel.exception.SystemException { 794 return getPersistence().countByTagId(tagId); 795 } 796 797 /** 798 * Returns the number of asset tag properties where companyId = ? and key = ?. 799 * 800 * @param companyId the company ID 801 * @param key the key 802 * @return the number of matching asset tag properties 803 * @throws SystemException if a system exception occurred 804 */ 805 public static int countByC_K(long companyId, java.lang.String key) 806 throws com.liferay.portal.kernel.exception.SystemException { 807 return getPersistence().countByC_K(companyId, key); 808 } 809 810 /** 811 * Returns the number of asset tag properties where tagId = ? and key = ?. 812 * 813 * @param tagId the tag ID 814 * @param key the key 815 * @return the number of matching asset tag properties 816 * @throws SystemException if a system exception occurred 817 */ 818 public static int countByT_K(long tagId, java.lang.String key) 819 throws com.liferay.portal.kernel.exception.SystemException { 820 return getPersistence().countByT_K(tagId, key); 821 } 822 823 /** 824 * Returns the number of asset tag properties. 825 * 826 * @return the number of asset tag properties 827 * @throws SystemException if a system exception occurred 828 */ 829 public static int countAll() 830 throws com.liferay.portal.kernel.exception.SystemException { 831 return getPersistence().countAll(); 832 } 833 834 public static AssetTagPropertyPersistence getPersistence() { 835 if (_persistence == null) { 836 _persistence = (AssetTagPropertyPersistence)PortalBeanLocatorUtil.locate(AssetTagPropertyPersistence.class.getName()); 837 838 ReferenceRegistry.registerReference(AssetTagPropertyUtil.class, 839 "_persistence"); 840 } 841 842 return _persistence; 843 } 844 845 /** 846 * @deprecated 847 */ 848 public void setPersistence(AssetTagPropertyPersistence persistence) { 849 } 850 851 private static AssetTagPropertyPersistence _persistence; 852 }