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