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