001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.asset.model.AssetCategoryProperty; 024 025 import java.util.List; 026 027 /** 028 * 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. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 032 * </p> 033 * 034 * <p> 035 * Caching information and settings can be found in <code>portal.properties</code> 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see AssetCategoryPropertyPersistence 040 * @see AssetCategoryPropertyPersistenceImpl 041 * @generated 042 */ 043 public class AssetCategoryPropertyUtil { 044 /** 045 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 046 */ 047 public static void clearCache() { 048 getPersistence().clearCache(); 049 } 050 051 /** 052 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 053 */ 054 public static void clearCache(AssetCategoryProperty assetCategoryProperty) { 055 getPersistence().clearCache(assetCategoryProperty); 056 } 057 058 /** 059 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 060 */ 061 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 062 throws SystemException { 063 return getPersistence().countWithDynamicQuery(dynamicQuery); 064 } 065 066 /** 067 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 068 */ 069 public static List<AssetCategoryProperty> findWithDynamicQuery( 070 DynamicQuery dynamicQuery) throws SystemException { 071 return getPersistence().findWithDynamicQuery(dynamicQuery); 072 } 073 074 /** 075 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 076 */ 077 public static List<AssetCategoryProperty> findWithDynamicQuery( 078 DynamicQuery dynamicQuery, int start, int end) 079 throws SystemException { 080 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 081 } 082 083 /** 084 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 085 */ 086 public static List<AssetCategoryProperty> findWithDynamicQuery( 087 DynamicQuery dynamicQuery, int start, int end, 088 OrderByComparator orderByComparator) throws SystemException { 089 return getPersistence() 090 .findWithDynamicQuery(dynamicQuery, start, end, 091 orderByComparator); 092 } 093 094 /** 095 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 096 */ 097 public static AssetCategoryProperty remove( 098 AssetCategoryProperty assetCategoryProperty) throws SystemException { 099 return getPersistence().remove(assetCategoryProperty); 100 } 101 102 /** 103 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 104 */ 105 public static AssetCategoryProperty update( 106 AssetCategoryProperty assetCategoryProperty, boolean merge) 107 throws SystemException { 108 return getPersistence().update(assetCategoryProperty, merge); 109 } 110 111 /** 112 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 113 */ 114 public static AssetCategoryProperty update( 115 AssetCategoryProperty assetCategoryProperty, boolean merge, 116 ServiceContext serviceContext) throws SystemException { 117 return getPersistence() 118 .update(assetCategoryProperty, merge, serviceContext); 119 } 120 121 /** 122 * Caches the asset category property in the entity cache if it is enabled. 123 * 124 * @param assetCategoryProperty the asset category property to cache 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) { 128 getPersistence().cacheResult(assetCategoryProperty); 129 } 130 131 /** 132 * Caches the asset category properties in the entity cache if it is enabled. 133 * 134 * @param assetCategoryProperties the asset category properties to cache 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties) { 138 getPersistence().cacheResult(assetCategoryProperties); 139 } 140 141 /** 142 * Creates a new asset category property with the primary key. Does not add the asset category property to the database. 143 * 144 * @param categoryPropertyId the primary key for the new asset category property 145 * @return the new asset category property 146 */ 147 public static com.liferay.portlet.asset.model.AssetCategoryProperty create( 148 long categoryPropertyId) { 149 return getPersistence().create(categoryPropertyId); 150 } 151 152 /** 153 * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param categoryPropertyId the primary key of the asset category property to remove 156 * @return the asset category property that was removed 157 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category 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.AssetCategoryProperty remove( 161 long categoryPropertyId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 164 return getPersistence().remove(categoryPropertyId); 165 } 166 167 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl( 168 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(assetCategoryProperty, merge); 172 } 173 174 /** 175 * Finds the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 176 * 177 * @param categoryPropertyId the primary key of the asset category property to find 178 * @return the asset category property 179 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category 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.AssetCategoryProperty findByPrimaryKey( 183 long categoryPropertyId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 186 return getPersistence().findByPrimaryKey(categoryPropertyId); 187 } 188 189 /** 190 * Finds the asset category property with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param categoryPropertyId the primary key of the asset category property to find 193 * @return the asset category property, or <code>null</code> if a asset category 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.AssetCategoryProperty fetchByPrimaryKey( 197 long categoryPropertyId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(categoryPropertyId); 200 } 201 202 /** 203 * Finds all the asset category properties where companyId = ?. 204 * 205 * @param companyId the company id to search with 206 * @return the matching asset category properties 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 210 long companyId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByCompanyId(companyId); 213 } 214 215 /** 216 * Finds a range of all the asset category 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 to search with 223 * @param start the lower bound of the range of asset category properties to return 224 * @param end the upper bound of the range of asset category properties to return (not inclusive) 225 * @return the range of matching asset category properties 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> 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 * Finds an ordered range of all the asset category 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 to search with 242 * @param start the lower bound of the range of asset category properties to return 243 * @param end the upper bound of the range of asset category properties to return (not inclusive) 244 * @param orderByComparator the comparator to order the results by 245 * @return the ordered range of matching asset category properties 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> 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 * Finds the first asset category 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 to search with 264 * @param orderByComparator the comparator to order the set by 265 * @return the first matching asset category property 266 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.asset.model.AssetCategoryProperty 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.NoSuchCategoryPropertyException { 274 return getPersistence() 275 .findByCompanyId_First(companyId, orderByComparator); 276 } 277 278 /** 279 * Finds the last asset category 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 to search with 286 * @param orderByComparator the comparator to order the set by 287 * @return the last matching asset category property 288 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public static com.liferay.portlet.asset.model.AssetCategoryProperty 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.NoSuchCategoryPropertyException { 296 return getPersistence() 297 .findByCompanyId_Last(companyId, orderByComparator); 298 } 299 300 /** 301 * Finds the asset category properties before and after the current asset category 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 categoryPropertyId the primary key of the current asset category property 308 * @param companyId the company id to search with 309 * @param orderByComparator the comparator to order the set by 310 * @return the previous, current, and next asset category property 311 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category 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.AssetCategoryProperty[] findByCompanyId_PrevAndNext( 315 long categoryPropertyId, long companyId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException, 318 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 319 return getPersistence() 320 .findByCompanyId_PrevAndNext(categoryPropertyId, companyId, 321 orderByComparator); 322 } 323 324 /** 325 * Finds all the asset category properties where categoryId = ?. 326 * 327 * @param categoryId the category id to search with 328 * @return the matching asset category properties 329 * @throws SystemException if a system exception occurred 330 */ 331 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 332 long categoryId) 333 throws com.liferay.portal.kernel.exception.SystemException { 334 return getPersistence().findByCategoryId(categoryId); 335 } 336 337 /** 338 * Finds a range of all the asset category properties where categoryId = ?. 339 * 340 * <p> 341 * 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. 342 * </p> 343 * 344 * @param categoryId the category id to search with 345 * @param start the lower bound of the range of asset category properties to return 346 * @param end the upper bound of the range of asset category properties to return (not inclusive) 347 * @return the range of matching asset category properties 348 * @throws SystemException if a system exception occurred 349 */ 350 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 351 long categoryId, int start, int end) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return getPersistence().findByCategoryId(categoryId, start, end); 354 } 355 356 /** 357 * Finds an ordered range of all the asset category properties where categoryId = ?. 358 * 359 * <p> 360 * 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. 361 * </p> 362 * 363 * @param categoryId the category id to search with 364 * @param start the lower bound of the range of asset category properties to return 365 * @param end the upper bound of the range of asset category properties to return (not inclusive) 366 * @param orderByComparator the comparator to order the results by 367 * @return the ordered range of matching asset category properties 368 * @throws SystemException if a system exception occurred 369 */ 370 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 371 long categoryId, int start, int end, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException { 374 return getPersistence() 375 .findByCategoryId(categoryId, start, end, orderByComparator); 376 } 377 378 /** 379 * Finds the first asset category property in the ordered set where categoryId = ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param categoryId the category id to search with 386 * @param orderByComparator the comparator to order the set by 387 * @return the first matching asset category property 388 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 389 * @throws SystemException if a system exception occurred 390 */ 391 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First( 392 long categoryId, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException, 395 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 396 return getPersistence() 397 .findByCategoryId_First(categoryId, orderByComparator); 398 } 399 400 /** 401 * Finds the last asset category property in the ordered set where categoryId = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param categoryId the category id to search with 408 * @param orderByComparator the comparator to order the set by 409 * @return the last matching asset category property 410 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last( 414 long categoryId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 418 return getPersistence() 419 .findByCategoryId_Last(categoryId, orderByComparator); 420 } 421 422 /** 423 * Finds the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. 424 * 425 * <p> 426 * 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. 427 * </p> 428 * 429 * @param categoryPropertyId the primary key of the current asset category property 430 * @param categoryId the category id to search with 431 * @param orderByComparator the comparator to order the set by 432 * @return the previous, current, and next asset category property 433 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext( 437 long categoryPropertyId, long categoryId, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 441 return getPersistence() 442 .findByCategoryId_PrevAndNext(categoryPropertyId, 443 categoryId, orderByComparator); 444 } 445 446 /** 447 * Finds all the asset category properties where companyId = ? and key = ?. 448 * 449 * @param companyId the company id to search with 450 * @param key the key to search with 451 * @return the matching asset category properties 452 * @throws SystemException if a system exception occurred 453 */ 454 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 455 long companyId, java.lang.String key) 456 throws com.liferay.portal.kernel.exception.SystemException { 457 return getPersistence().findByC_K(companyId, key); 458 } 459 460 /** 461 * Finds a range of all the asset category properties where companyId = ? and key = ?. 462 * 463 * <p> 464 * 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. 465 * </p> 466 * 467 * @param companyId the company id to search with 468 * @param key the key to search with 469 * @param start the lower bound of the range of asset category properties to return 470 * @param end the upper bound of the range of asset category properties to return (not inclusive) 471 * @return the range of matching asset category properties 472 * @throws SystemException if a system exception occurred 473 */ 474 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 475 long companyId, java.lang.String key, int start, int end) 476 throws com.liferay.portal.kernel.exception.SystemException { 477 return getPersistence().findByC_K(companyId, key, start, end); 478 } 479 480 /** 481 * Finds an ordered range of all the asset category properties where companyId = ? and key = ?. 482 * 483 * <p> 484 * 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. 485 * </p> 486 * 487 * @param companyId the company id to search with 488 * @param key the key to search with 489 * @param start the lower bound of the range of asset category properties to return 490 * @param end the upper bound of the range of asset category properties to return (not inclusive) 491 * @param orderByComparator the comparator to order the results by 492 * @return the ordered range of matching asset category properties 493 * @throws SystemException if a system exception occurred 494 */ 495 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 496 long companyId, java.lang.String key, int start, int end, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException { 499 return getPersistence() 500 .findByC_K(companyId, key, start, end, orderByComparator); 501 } 502 503 /** 504 * Finds the first asset category property in the ordered set where companyId = ? and key = ?. 505 * 506 * <p> 507 * 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. 508 * </p> 509 * 510 * @param companyId the company id to search with 511 * @param key the key to search with 512 * @param orderByComparator the comparator to order the set by 513 * @return the first matching asset category property 514 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First( 518 long companyId, java.lang.String key, 519 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 520 throws com.liferay.portal.kernel.exception.SystemException, 521 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 522 return getPersistence() 523 .findByC_K_First(companyId, key, orderByComparator); 524 } 525 526 /** 527 * Finds the last asset category property in the ordered set where companyId = ? and key = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param companyId the company id to search with 534 * @param key the key to search with 535 * @param orderByComparator the comparator to order the set by 536 * @return the last matching asset category property 537 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 538 * @throws SystemException if a system exception occurred 539 */ 540 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last( 541 long companyId, java.lang.String key, 542 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 543 throws com.liferay.portal.kernel.exception.SystemException, 544 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 545 return getPersistence().findByC_K_Last(companyId, key, orderByComparator); 546 } 547 548 /** 549 * Finds the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param categoryPropertyId the primary key of the current asset category property 556 * @param companyId the company id to search with 557 * @param key the key to search with 558 * @param orderByComparator the comparator to order the set by 559 * @return the previous, current, and next asset category property 560 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 561 * @throws SystemException if a system exception occurred 562 */ 563 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext( 564 long categoryPropertyId, long companyId, java.lang.String key, 565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 566 throws com.liferay.portal.kernel.exception.SystemException, 567 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 568 return getPersistence() 569 .findByC_K_PrevAndNext(categoryPropertyId, companyId, key, 570 orderByComparator); 571 } 572 573 /** 574 * Finds the asset category property where categoryId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 575 * 576 * @param categoryId the category id to search with 577 * @param key the key to search with 578 * @return the matching asset category property 579 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K( 583 long categoryId, java.lang.String key) 584 throws com.liferay.portal.kernel.exception.SystemException, 585 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 586 return getPersistence().findByCA_K(categoryId, key); 587 } 588 589 /** 590 * Finds the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 591 * 592 * @param categoryId the category id to search with 593 * @param key the key to search with 594 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 595 * @throws SystemException if a system exception occurred 596 */ 597 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 598 long categoryId, java.lang.String key) 599 throws com.liferay.portal.kernel.exception.SystemException { 600 return getPersistence().fetchByCA_K(categoryId, key); 601 } 602 603 /** 604 * Finds the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 605 * 606 * @param categoryId the category id to search with 607 * @param key the key to search with 608 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 609 * @throws SystemException if a system exception occurred 610 */ 611 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 612 long categoryId, java.lang.String key, boolean retrieveFromCache) 613 throws com.liferay.portal.kernel.exception.SystemException { 614 return getPersistence().fetchByCA_K(categoryId, key, retrieveFromCache); 615 } 616 617 /** 618 * Finds all the asset category properties. 619 * 620 * @return the asset category properties 621 * @throws SystemException if a system exception occurred 622 */ 623 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll() 624 throws com.liferay.portal.kernel.exception.SystemException { 625 return getPersistence().findAll(); 626 } 627 628 /** 629 * Finds a range of all the asset category properties. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param start the lower bound of the range of asset category properties to return 636 * @param end the upper bound of the range of asset category properties to return (not inclusive) 637 * @return the range of asset category properties 638 * @throws SystemException if a system exception occurred 639 */ 640 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 641 int start, int end) 642 throws com.liferay.portal.kernel.exception.SystemException { 643 return getPersistence().findAll(start, end); 644 } 645 646 /** 647 * Finds an ordered range of all the asset category properties. 648 * 649 * <p> 650 * 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. 651 * </p> 652 * 653 * @param start the lower bound of the range of asset category properties to return 654 * @param end the upper bound of the range of asset category properties to return (not inclusive) 655 * @param orderByComparator the comparator to order the results by 656 * @return the ordered range of asset category properties 657 * @throws SystemException if a system exception occurred 658 */ 659 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 660 int start, int end, 661 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 662 throws com.liferay.portal.kernel.exception.SystemException { 663 return getPersistence().findAll(start, end, orderByComparator); 664 } 665 666 /** 667 * Removes all the asset category properties where companyId = ? from the database. 668 * 669 * @param companyId the company id to search with 670 * @throws SystemException if a system exception occurred 671 */ 672 public static void removeByCompanyId(long companyId) 673 throws com.liferay.portal.kernel.exception.SystemException { 674 getPersistence().removeByCompanyId(companyId); 675 } 676 677 /** 678 * Removes all the asset category properties where categoryId = ? from the database. 679 * 680 * @param categoryId the category id to search with 681 * @throws SystemException if a system exception occurred 682 */ 683 public static void removeByCategoryId(long categoryId) 684 throws com.liferay.portal.kernel.exception.SystemException { 685 getPersistence().removeByCategoryId(categoryId); 686 } 687 688 /** 689 * Removes all the asset category properties where companyId = ? and key = ? from the database. 690 * 691 * @param companyId the company id to search with 692 * @param key the key to search with 693 * @throws SystemException if a system exception occurred 694 */ 695 public static void removeByC_K(long companyId, java.lang.String key) 696 throws com.liferay.portal.kernel.exception.SystemException { 697 getPersistence().removeByC_K(companyId, key); 698 } 699 700 /** 701 * Removes the asset category property where categoryId = ? and key = ? from the database. 702 * 703 * @param categoryId the category id to search with 704 * @param key the key to search with 705 * @throws SystemException if a system exception occurred 706 */ 707 public static void removeByCA_K(long categoryId, java.lang.String key) 708 throws com.liferay.portal.kernel.exception.SystemException, 709 com.liferay.portlet.asset.NoSuchCategoryPropertyException { 710 getPersistence().removeByCA_K(categoryId, key); 711 } 712 713 /** 714 * Removes all the asset category properties from the database. 715 * 716 * @throws SystemException if a system exception occurred 717 */ 718 public static void removeAll() 719 throws com.liferay.portal.kernel.exception.SystemException { 720 getPersistence().removeAll(); 721 } 722 723 /** 724 * Counts all the asset category properties where companyId = ?. 725 * 726 * @param companyId the company id to search with 727 * @return the number of matching asset category properties 728 * @throws SystemException if a system exception occurred 729 */ 730 public static int countByCompanyId(long companyId) 731 throws com.liferay.portal.kernel.exception.SystemException { 732 return getPersistence().countByCompanyId(companyId); 733 } 734 735 /** 736 * Counts all the asset category properties where categoryId = ?. 737 * 738 * @param categoryId the category id to search with 739 * @return the number of matching asset category properties 740 * @throws SystemException if a system exception occurred 741 */ 742 public static int countByCategoryId(long categoryId) 743 throws com.liferay.portal.kernel.exception.SystemException { 744 return getPersistence().countByCategoryId(categoryId); 745 } 746 747 /** 748 * Counts all the asset category properties where companyId = ? and key = ?. 749 * 750 * @param companyId the company id to search with 751 * @param key the key to search with 752 * @return the number of matching asset category properties 753 * @throws SystemException if a system exception occurred 754 */ 755 public static int countByC_K(long companyId, java.lang.String key) 756 throws com.liferay.portal.kernel.exception.SystemException { 757 return getPersistence().countByC_K(companyId, key); 758 } 759 760 /** 761 * Counts all the asset category properties where categoryId = ? and key = ?. 762 * 763 * @param categoryId the category id to search with 764 * @param key the key to search with 765 * @return the number of matching asset category properties 766 * @throws SystemException if a system exception occurred 767 */ 768 public static int countByCA_K(long categoryId, java.lang.String key) 769 throws com.liferay.portal.kernel.exception.SystemException { 770 return getPersistence().countByCA_K(categoryId, key); 771 } 772 773 /** 774 * Counts all the asset category properties. 775 * 776 * @return the number of asset category properties 777 * @throws SystemException if a system exception occurred 778 */ 779 public static int countAll() 780 throws com.liferay.portal.kernel.exception.SystemException { 781 return getPersistence().countAll(); 782 } 783 784 public static AssetCategoryPropertyPersistence getPersistence() { 785 if (_persistence == null) { 786 _persistence = (AssetCategoryPropertyPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPropertyPersistence.class.getName()); 787 } 788 789 return _persistence; 790 } 791 792 public void setPersistence(AssetCategoryPropertyPersistence persistence) { 793 _persistence = persistence; 794 } 795 796 private static AssetCategoryPropertyPersistence _persistence; 797 }