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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.asset.model.AssetCategoryProperty; 020 021 /** 022 * The persistence interface for the asset category property service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see AssetCategoryPropertyPersistenceImpl 030 * @see AssetCategoryPropertyUtil 031 * @generated 032 */ 033 public interface AssetCategoryPropertyPersistence extends BasePersistence<AssetCategoryProperty> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link AssetCategoryPropertyUtil} to access the asset category property persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the asset category property in the entity cache if it is enabled. 042 * 043 * @param assetCategoryProperty the asset category property 044 */ 045 public void cacheResult( 046 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty); 047 048 /** 049 * Caches the asset category properties in the entity cache if it is enabled. 050 * 051 * @param assetCategoryProperties the asset category properties 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties); 055 056 /** 057 * Creates a new asset category property with the primary key. Does not add the asset category property to the database. 058 * 059 * @param categoryPropertyId the primary key for the new asset category property 060 * @return the new asset category property 061 */ 062 public com.liferay.portlet.asset.model.AssetCategoryProperty create( 063 long categoryPropertyId); 064 065 /** 066 * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param categoryPropertyId the primary key of the asset category property 069 * @return the asset category property that was removed 070 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.asset.model.AssetCategoryProperty remove( 074 long categoryPropertyId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 077 078 public com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl( 079 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 084 * 085 * @param categoryPropertyId the primary key of the asset category property 086 * @return the asset category property 087 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey( 091 long categoryPropertyId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 094 095 /** 096 * Returns the asset category property with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param categoryPropertyId the primary key of the asset category property 099 * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey( 103 long categoryPropertyId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the asset category properties where companyId = ?. 108 * 109 * @param companyId the company ID 110 * @return the matching asset category properties 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 114 long companyId) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the asset category properties where companyId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param companyId the company ID 125 * @param start the lower bound of the range of asset category properties 126 * @param end the upper bound of the range of asset category properties (not inclusive) 127 * @return the range of matching asset category properties 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 131 long companyId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the asset category properties where companyId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param companyId the company ID 142 * @param start the lower bound of the range of asset category properties 143 * @param end the upper bound of the range of asset category properties (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching asset category properties 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 149 long companyId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first asset category property in the ordered set where companyId = ?. 155 * 156 * @param companyId the company ID 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching asset category property 159 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First( 163 long companyId, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 167 168 /** 169 * Returns the first asset category property in the ordered set where companyId = ?. 170 * 171 * @param companyId the company ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_First( 177 long companyId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last asset category property in the ordered set where companyId = ?. 183 * 184 * @param companyId the company ID 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching asset category property 187 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last( 191 long companyId, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 195 196 /** 197 * Returns the last asset category property in the ordered set where companyId = ?. 198 * 199 * @param companyId the company ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_Last( 205 long companyId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?. 211 * 212 * @param categoryPropertyId the primary key of the current asset category property 213 * @param companyId the company ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next asset category property 216 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext( 220 long categoryPropertyId, long companyId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 224 225 /** 226 * Returns all the asset category properties where categoryId = ?. 227 * 228 * @param categoryId the category ID 229 * @return the matching asset category properties 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 233 long categoryId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns a range of all the asset category properties where categoryId = ?. 238 * 239 * <p> 240 * 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. 241 * </p> 242 * 243 * @param categoryId the category ID 244 * @param start the lower bound of the range of asset category properties 245 * @param end the upper bound of the range of asset category properties (not inclusive) 246 * @return the range of matching asset category properties 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 250 long categoryId, int start, int end) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns an ordered range of all the asset category properties where categoryId = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param categoryId the category ID 261 * @param start the lower bound of the range of asset category properties 262 * @param end the upper bound of the range of asset category properties (not inclusive) 263 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 264 * @return the ordered range of matching asset category properties 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 268 long categoryId, int start, int end, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Returns the first asset category property in the ordered set where categoryId = ?. 274 * 275 * @param categoryId the category ID 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the first matching asset category property 278 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First( 282 long categoryId, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 286 287 /** 288 * Returns the first asset category property in the ordered set where categoryId = ?. 289 * 290 * @param categoryId the category ID 291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 292 * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_First( 296 long categoryId, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Returns the last asset category property in the ordered set where categoryId = ?. 302 * 303 * @param categoryId the category ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the last matching asset category property 306 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last( 310 long categoryId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 314 315 /** 316 * Returns the last asset category property in the ordered set where categoryId = ?. 317 * 318 * @param categoryId the category ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_Last( 324 long categoryId, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException; 327 328 /** 329 * Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. 330 * 331 * @param categoryPropertyId the primary key of the current asset category property 332 * @param categoryId the category ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the previous, current, and next asset category property 335 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext( 339 long categoryPropertyId, long categoryId, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 343 344 /** 345 * Returns all the asset category properties where companyId = ? and key = ?. 346 * 347 * @param companyId the company ID 348 * @param key the key 349 * @return the matching asset category properties 350 * @throws SystemException if a system exception occurred 351 */ 352 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 353 long companyId, java.lang.String key) 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns a range of all the asset category properties where companyId = ? and key = ?. 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 companyId the company ID 364 * @param key the key 365 * @param start the lower bound of the range of asset category properties 366 * @param end the upper bound of the range of asset category properties (not inclusive) 367 * @return the range of matching asset category properties 368 * @throws SystemException if a system exception occurred 369 */ 370 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 371 long companyId, java.lang.String key, int start, int end) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Returns an ordered range of all the asset category properties where companyId = ? and key = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param companyId the company ID 382 * @param key the key 383 * @param start the lower bound of the range of asset category properties 384 * @param end the upper bound of the range of asset category properties (not inclusive) 385 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 386 * @return the ordered range of matching asset category properties 387 * @throws SystemException if a system exception occurred 388 */ 389 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 390 long companyId, java.lang.String key, int start, int end, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException; 393 394 /** 395 * Returns the first asset category property in the ordered set where companyId = ? and key = ?. 396 * 397 * @param companyId the company ID 398 * @param key the key 399 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 400 * @return the first matching asset category property 401 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 402 * @throws SystemException if a system exception occurred 403 */ 404 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First( 405 long companyId, java.lang.String key, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException, 408 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 409 410 /** 411 * Returns the first asset category property in the ordered set where companyId = ? and key = ?. 412 * 413 * @param companyId the company ID 414 * @param key the key 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_First( 420 long companyId, java.lang.String key, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Returns the last asset category property in the ordered set where companyId = ? and key = ?. 426 * 427 * @param companyId the company ID 428 * @param key the key 429 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 430 * @return the last matching asset category property 431 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 432 * @throws SystemException if a system exception occurred 433 */ 434 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last( 435 long companyId, java.lang.String key, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException, 438 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 439 440 /** 441 * Returns the last asset category property in the ordered set where companyId = ? and key = ?. 442 * 443 * @param companyId the company ID 444 * @param key the key 445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 446 * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_Last( 450 long companyId, java.lang.String key, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. 456 * 457 * @param categoryPropertyId the primary key of the current asset category property 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 previous, current, and next asset category property 462 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext( 466 long categoryPropertyId, long companyId, java.lang.String key, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException, 469 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 470 471 /** 472 * Returns the asset category property where categoryId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 473 * 474 * @param categoryId the category ID 475 * @param key the key 476 * @return the matching asset category property 477 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K( 481 long categoryId, java.lang.String key) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 484 485 /** 486 * Returns the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 487 * 488 * @param categoryId the category ID 489 * @param key the key 490 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 491 * @throws SystemException if a system exception occurred 492 */ 493 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 494 long categoryId, java.lang.String key) 495 throws com.liferay.portal.kernel.exception.SystemException; 496 497 /** 498 * 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. 499 * 500 * @param categoryId the category ID 501 * @param key the key 502 * @param retrieveFromCache whether to use the finder cache 503 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 504 * @throws SystemException if a system exception occurred 505 */ 506 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 507 long categoryId, java.lang.String key, boolean retrieveFromCache) 508 throws com.liferay.portal.kernel.exception.SystemException; 509 510 /** 511 * Returns all the asset category properties. 512 * 513 * @return the asset category properties 514 * @throws SystemException if a system exception occurred 515 */ 516 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll() 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns a range of all the asset category properties. 521 * 522 * <p> 523 * 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. 524 * </p> 525 * 526 * @param start the lower bound of the range of asset category properties 527 * @param end the upper bound of the range of asset category properties (not inclusive) 528 * @return the range of asset category properties 529 * @throws SystemException if a system exception occurred 530 */ 531 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 532 int start, int end) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Returns an ordered range of all the asset category properties. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param start the lower bound of the range of asset category properties 543 * @param end the upper bound of the range of asset category properties (not inclusive) 544 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 545 * @return the ordered range of asset category properties 546 * @throws SystemException if a system exception occurred 547 */ 548 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 549 int start, int end, 550 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 551 throws com.liferay.portal.kernel.exception.SystemException; 552 553 /** 554 * Removes all the asset category properties where companyId = ? from the database. 555 * 556 * @param companyId the company ID 557 * @throws SystemException if a system exception occurred 558 */ 559 public void removeByCompanyId(long companyId) 560 throws com.liferay.portal.kernel.exception.SystemException; 561 562 /** 563 * Removes all the asset category properties where categoryId = ? from the database. 564 * 565 * @param categoryId the category ID 566 * @throws SystemException if a system exception occurred 567 */ 568 public void removeByCategoryId(long categoryId) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Removes all the asset category properties where companyId = ? and key = ? from the database. 573 * 574 * @param companyId the company ID 575 * @param key the key 576 * @throws SystemException if a system exception occurred 577 */ 578 public void removeByC_K(long companyId, java.lang.String key) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Removes the asset category property where categoryId = ? and key = ? from the database. 583 * 584 * @param categoryId the category ID 585 * @param key the key 586 * @return the asset category property that was removed 587 * @throws SystemException if a system exception occurred 588 */ 589 public com.liferay.portlet.asset.model.AssetCategoryProperty removeByCA_K( 590 long categoryId, java.lang.String key) 591 throws com.liferay.portal.kernel.exception.SystemException, 592 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 593 594 /** 595 * Removes all the asset category properties from the database. 596 * 597 * @throws SystemException if a system exception occurred 598 */ 599 public void removeAll() 600 throws com.liferay.portal.kernel.exception.SystemException; 601 602 /** 603 * Returns the number of asset category properties where companyId = ?. 604 * 605 * @param companyId the company ID 606 * @return the number of matching asset category properties 607 * @throws SystemException if a system exception occurred 608 */ 609 public int countByCompanyId(long companyId) 610 throws com.liferay.portal.kernel.exception.SystemException; 611 612 /** 613 * Returns the number of asset category properties where categoryId = ?. 614 * 615 * @param categoryId the category ID 616 * @return the number of matching asset category properties 617 * @throws SystemException if a system exception occurred 618 */ 619 public int countByCategoryId(long categoryId) 620 throws com.liferay.portal.kernel.exception.SystemException; 621 622 /** 623 * Returns the number of asset category properties where companyId = ? and key = ?. 624 * 625 * @param companyId the company ID 626 * @param key the key 627 * @return the number of matching asset category properties 628 * @throws SystemException if a system exception occurred 629 */ 630 public int countByC_K(long companyId, java.lang.String key) 631 throws com.liferay.portal.kernel.exception.SystemException; 632 633 /** 634 * Returns the number of asset category properties where categoryId = ? and key = ?. 635 * 636 * @param categoryId the category ID 637 * @param key the key 638 * @return the number of matching asset category properties 639 * @throws SystemException if a system exception occurred 640 */ 641 public int countByCA_K(long categoryId, java.lang.String key) 642 throws com.liferay.portal.kernel.exception.SystemException; 643 644 /** 645 * Returns the number of asset category properties. 646 * 647 * @return the number of asset category properties 648 * @throws SystemException if a system exception occurred 649 */ 650 public int countAll() 651 throws com.liferay.portal.kernel.exception.SystemException; 652 }