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 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 085 * 086 * @param categoryPropertyId the primary key of the asset category property 087 * @return the asset category property 088 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey( 092 long categoryPropertyId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 095 096 /** 097 * Returns the asset category property with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param categoryPropertyId the primary key of the asset category property 100 * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey( 104 long categoryPropertyId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the asset category properties where companyId = ?. 109 * 110 * @param companyId the company ID 111 * @return the matching asset category properties 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 115 long companyId) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the asset category properties where companyId = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param companyId the company ID 126 * @param start the lower bound of the range of asset category properties 127 * @param end the upper bound of the range of asset category properties (not inclusive) 128 * @return the range of matching asset category properties 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 132 long companyId, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the asset category properties where companyId = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param companyId the company ID 143 * @param start the lower bound of the range of asset category properties 144 * @param end the upper bound of the range of asset category properties (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching asset category properties 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 150 long companyId, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first asset category property in the ordered set where companyId = ?. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param companyId the company ID 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching asset category property 164 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First( 168 long companyId, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 172 173 /** 174 * Returns the last asset category property in the ordered set where companyId = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param companyId the company ID 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching asset category property 183 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last( 187 long companyId, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 191 192 /** 193 * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param categoryPropertyId the primary key of the current asset category property 200 * @param companyId the company ID 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next asset category property 203 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext( 207 long categoryPropertyId, long companyId, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 211 212 /** 213 * Returns all the asset category properties where categoryId = ?. 214 * 215 * @param categoryId the category ID 216 * @return the matching asset category properties 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 220 long categoryId) 221 throws com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Returns a range of all the asset category properties where categoryId = ?. 225 * 226 * <p> 227 * 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. 228 * </p> 229 * 230 * @param categoryId the category ID 231 * @param start the lower bound of the range of asset category properties 232 * @param end the upper bound of the range of asset category properties (not inclusive) 233 * @return the range of matching asset category properties 234 * @throws SystemException if a system exception occurred 235 */ 236 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 237 long categoryId, int start, int end) 238 throws com.liferay.portal.kernel.exception.SystemException; 239 240 /** 241 * Returns an ordered range of all the asset category properties where categoryId = ?. 242 * 243 * <p> 244 * 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. 245 * </p> 246 * 247 * @param categoryId the category ID 248 * @param start the lower bound of the range of asset category properties 249 * @param end the upper bound of the range of asset category properties (not inclusive) 250 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 251 * @return the ordered range of matching asset category properties 252 * @throws SystemException if a system exception occurred 253 */ 254 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 255 long categoryId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Returns the first asset category property in the ordered set where categoryId = ?. 261 * 262 * <p> 263 * 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. 264 * </p> 265 * 266 * @param categoryId the category ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching asset category property 269 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First( 273 long categoryId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException, 276 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 277 278 /** 279 * Returns the last asset category property in the ordered set where categoryId = ?. 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 categoryId the category ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last( 292 long categoryId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 296 297 /** 298 * Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. 299 * 300 * <p> 301 * 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. 302 * </p> 303 * 304 * @param categoryPropertyId the primary key of the current asset category property 305 * @param categoryId the category ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next asset category property 308 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext( 312 long categoryPropertyId, long categoryId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 316 317 /** 318 * Returns all the asset category properties where companyId = ? and key = ?. 319 * 320 * @param companyId the company ID 321 * @param key the key 322 * @return the matching asset category properties 323 * @throws SystemException if a system exception occurred 324 */ 325 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 326 long companyId, java.lang.String key) 327 throws com.liferay.portal.kernel.exception.SystemException; 328 329 /** 330 * Returns a range of all the asset category properties where companyId = ? and key = ?. 331 * 332 * <p> 333 * 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. 334 * </p> 335 * 336 * @param companyId the company ID 337 * @param key the key 338 * @param start the lower bound of the range of asset category properties 339 * @param end the upper bound of the range of asset category properties (not inclusive) 340 * @return the range of matching asset category properties 341 * @throws SystemException if a system exception occurred 342 */ 343 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 344 long companyId, java.lang.String key, int start, int end) 345 throws com.liferay.portal.kernel.exception.SystemException; 346 347 /** 348 * Returns an ordered range of all the asset category properties where companyId = ? and key = ?. 349 * 350 * <p> 351 * 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. 352 * </p> 353 * 354 * @param companyId the company ID 355 * @param key the key 356 * @param start the lower bound of the range of asset category properties 357 * @param end the upper bound of the range of asset category properties (not inclusive) 358 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 359 * @return the ordered range of matching asset category properties 360 * @throws SystemException if a system exception occurred 361 */ 362 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 363 long companyId, java.lang.String key, int start, int end, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns the first asset category property in the ordered set where companyId = ? and key = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param companyId the company ID 375 * @param key the key 376 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 377 * @return the first matching asset category property 378 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 379 * @throws SystemException if a system exception occurred 380 */ 381 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First( 382 long companyId, java.lang.String key, 383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 384 throws com.liferay.portal.kernel.exception.SystemException, 385 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 386 387 /** 388 * Returns the last asset category property in the ordered set where companyId = ? and key = ?. 389 * 390 * <p> 391 * 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. 392 * </p> 393 * 394 * @param companyId the company ID 395 * @param key the key 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the last matching asset category property 398 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last( 402 long companyId, java.lang.String key, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 406 407 /** 408 * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param categoryPropertyId the primary key of the current asset category property 415 * @param companyId the company ID 416 * @param key the key 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the previous, current, and next asset category property 419 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext( 423 long categoryPropertyId, long companyId, java.lang.String key, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.kernel.exception.SystemException, 426 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 427 428 /** 429 * Returns the asset category property where categoryId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 430 * 431 * @param categoryId the category ID 432 * @param key the key 433 * @return the matching asset category property 434 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K( 438 long categoryId, java.lang.String key) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 441 442 /** 443 * Returns the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 444 * 445 * @param categoryId the category ID 446 * @param key the key 447 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 451 long categoryId, java.lang.String key) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * 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. 456 * 457 * @param categoryId the category ID 458 * @param key the key 459 * @param retrieveFromCache whether to use the finder cache 460 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 464 long categoryId, java.lang.String key, boolean retrieveFromCache) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns all the asset category properties. 469 * 470 * @return the asset category properties 471 * @throws SystemException if a system exception occurred 472 */ 473 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll() 474 throws com.liferay.portal.kernel.exception.SystemException; 475 476 /** 477 * Returns a range of all the asset category properties. 478 * 479 * <p> 480 * 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. 481 * </p> 482 * 483 * @param start the lower bound of the range of asset category properties 484 * @param end the upper bound of the range of asset category properties (not inclusive) 485 * @return the range of asset category properties 486 * @throws SystemException if a system exception occurred 487 */ 488 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 489 int start, int end) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns an ordered range of all the asset category properties. 494 * 495 * <p> 496 * 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. 497 * </p> 498 * 499 * @param start the lower bound of the range of asset category properties 500 * @param end the upper bound of the range of asset category properties (not inclusive) 501 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 502 * @return the ordered range of asset category properties 503 * @throws SystemException if a system exception occurred 504 */ 505 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 506 int start, int end, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.kernel.exception.SystemException; 509 510 /** 511 * Removes all the asset category properties where companyId = ? from the database. 512 * 513 * @param companyId the company ID 514 * @throws SystemException if a system exception occurred 515 */ 516 public void removeByCompanyId(long companyId) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Removes all the asset category properties where categoryId = ? from the database. 521 * 522 * @param categoryId the category ID 523 * @throws SystemException if a system exception occurred 524 */ 525 public void removeByCategoryId(long categoryId) 526 throws com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Removes all the asset category properties where companyId = ? and key = ? from the database. 530 * 531 * @param companyId the company ID 532 * @param key the key 533 * @throws SystemException if a system exception occurred 534 */ 535 public void removeByC_K(long companyId, java.lang.String key) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Removes the asset category property where categoryId = ? and key = ? from the database. 540 * 541 * @param categoryId the category ID 542 * @param key the key 543 * @throws SystemException if a system exception occurred 544 */ 545 public void removeByCA_K(long categoryId, java.lang.String key) 546 throws com.liferay.portal.kernel.exception.SystemException, 547 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 548 549 /** 550 * Removes all the asset category properties from the database. 551 * 552 * @throws SystemException if a system exception occurred 553 */ 554 public void removeAll() 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns the number of asset category properties where companyId = ?. 559 * 560 * @param companyId the company ID 561 * @return the number of matching asset category properties 562 * @throws SystemException if a system exception occurred 563 */ 564 public int countByCompanyId(long companyId) 565 throws com.liferay.portal.kernel.exception.SystemException; 566 567 /** 568 * Returns the number of asset category properties where categoryId = ?. 569 * 570 * @param categoryId the category ID 571 * @return the number of matching asset category properties 572 * @throws SystemException if a system exception occurred 573 */ 574 public int countByCategoryId(long categoryId) 575 throws com.liferay.portal.kernel.exception.SystemException; 576 577 /** 578 * Returns the number of asset category properties where companyId = ? and key = ?. 579 * 580 * @param companyId the company ID 581 * @param key the key 582 * @return the number of matching asset category properties 583 * @throws SystemException if a system exception occurred 584 */ 585 public int countByC_K(long companyId, java.lang.String key) 586 throws com.liferay.portal.kernel.exception.SystemException; 587 588 /** 589 * Returns the number of asset category properties where categoryId = ? and key = ?. 590 * 591 * @param categoryId the category ID 592 * @param key the key 593 * @return the number of matching asset category properties 594 * @throws SystemException if a system exception occurred 595 */ 596 public int countByCA_K(long categoryId, java.lang.String key) 597 throws com.liferay.portal.kernel.exception.SystemException; 598 599 /** 600 * Returns the number of asset category properties. 601 * 602 * @return the number of asset category properties 603 * @throws SystemException if a system exception occurred 604 */ 605 public int countAll() 606 throws com.liferay.portal.kernel.exception.SystemException; 607 }