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