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