001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.asset.model.AssetCategoryProperty; 021 022 /** 023 * The persistence interface for the asset category property service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see AssetCategoryPropertyPersistenceImpl 031 * @see AssetCategoryPropertyUtil 032 * @generated 033 */ 034 public interface AssetCategoryPropertyPersistence extends BasePersistence<AssetCategoryProperty> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Caches the asset category property in the entity cache if it is enabled. 043 * 044 * @param assetCategoryProperty the asset category property to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty); 048 049 /** 050 * Caches the asset category properties in the entity cache if it is enabled. 051 * 052 * @param assetCategoryProperties the asset category properties to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties); 056 057 /** 058 * Creates a new asset category property with the primary key. Does not add the asset category property to the database. 059 * 060 * @param categoryPropertyId the primary key for the new asset category property 061 * @return the new asset category property 062 */ 063 public com.liferay.portlet.asset.model.AssetCategoryProperty create( 064 long categoryPropertyId); 065 066 /** 067 * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners. 068 * 069 * @param categoryPropertyId the primary key of the asset category property to remove 070 * @return the asset category property that was removed 071 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.asset.model.AssetCategoryProperty remove( 075 long categoryPropertyId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 078 079 public com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl( 080 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty, 081 boolean merge) 082 throws com.liferay.portal.kernel.exception.SystemException; 083 084 /** 085 * Finds the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 086 * 087 * @param categoryPropertyId the primary key of the asset category property to find 088 * @return the asset category property 089 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 090 * @throws SystemException if a system exception occurred 091 */ 092 public com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey( 093 long categoryPropertyId) 094 throws com.liferay.portal.kernel.exception.SystemException, 095 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 096 097 /** 098 * Finds the asset category property with the primary key or returns <code>null</code> if it could not be found. 099 * 100 * @param categoryPropertyId the primary key of the asset category property to find 101 * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found 102 * @throws SystemException if a system exception occurred 103 */ 104 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey( 105 long categoryPropertyId) 106 throws com.liferay.portal.kernel.exception.SystemException; 107 108 /** 109 * Finds all the asset category properties where companyId = ?. 110 * 111 * @param companyId the company ID to search with 112 * @return the matching asset category properties 113 * @throws SystemException if a system exception occurred 114 */ 115 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 116 long companyId) 117 throws com.liferay.portal.kernel.exception.SystemException; 118 119 /** 120 * Finds a range of all the asset category properties where companyId = ?. 121 * 122 * <p> 123 * 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. 124 * </p> 125 * 126 * @param companyId the company ID to search with 127 * @param start the lower bound of the range of asset category properties to return 128 * @param end the upper bound of the range of asset category properties to return (not inclusive) 129 * @return the range of matching asset category properties 130 * @throws SystemException if a system exception occurred 131 */ 132 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 133 long companyId, int start, int end) 134 throws com.liferay.portal.kernel.exception.SystemException; 135 136 /** 137 * Finds an ordered range of all the asset category properties where companyId = ?. 138 * 139 * <p> 140 * 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. 141 * </p> 142 * 143 * @param companyId the company ID to search with 144 * @param start the lower bound of the range of asset category properties to return 145 * @param end the upper bound of the range of asset category properties to return (not inclusive) 146 * @param orderByComparator the comparator to order the results by 147 * @return the ordered range of matching asset category properties 148 * @throws SystemException if a system exception occurred 149 */ 150 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 151 long companyId, int start, int end, 152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 153 throws com.liferay.portal.kernel.exception.SystemException; 154 155 /** 156 * Finds the first asset category property in the ordered set where companyId = ?. 157 * 158 * <p> 159 * 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. 160 * </p> 161 * 162 * @param companyId the company ID to search with 163 * @param orderByComparator the comparator to order the set by 164 * @return the first matching asset category property 165 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First( 169 long companyId, 170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 171 throws com.liferay.portal.kernel.exception.SystemException, 172 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 173 174 /** 175 * Finds the last asset category property in the ordered set where companyId = ?. 176 * 177 * <p> 178 * 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. 179 * </p> 180 * 181 * @param companyId the company ID to search with 182 * @param orderByComparator the comparator to order the set by 183 * @return the last matching asset category property 184 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last( 188 long companyId, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.kernel.exception.SystemException, 191 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 192 193 /** 194 * Finds the asset category properties before and after the current asset category property in the ordered set where companyId = ?. 195 * 196 * <p> 197 * 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. 198 * </p> 199 * 200 * @param categoryPropertyId the primary key of the current asset category property 201 * @param companyId the company ID to search with 202 * @param orderByComparator the comparator to order the set by 203 * @return the previous, current, and next asset category property 204 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext( 208 long categoryPropertyId, long companyId, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.kernel.exception.SystemException, 211 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 212 213 /** 214 * Finds all the asset category properties where categoryId = ?. 215 * 216 * @param categoryId the category ID to search with 217 * @return the matching asset category properties 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 221 long categoryId) 222 throws com.liferay.portal.kernel.exception.SystemException; 223 224 /** 225 * Finds a range of all the asset category properties where categoryId = ?. 226 * 227 * <p> 228 * 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. 229 * </p> 230 * 231 * @param categoryId the category ID to search with 232 * @param start the lower bound of the range of asset category properties to return 233 * @param end the upper bound of the range of asset category properties to return (not inclusive) 234 * @return the range of matching asset category properties 235 * @throws SystemException if a system exception occurred 236 */ 237 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 238 long categoryId, int start, int end) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Finds an ordered range of all the asset category properties where categoryId = ?. 243 * 244 * <p> 245 * 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. 246 * </p> 247 * 248 * @param categoryId the category ID to search with 249 * @param start the lower bound of the range of asset category properties to return 250 * @param end the upper bound of the range of asset category properties to return (not inclusive) 251 * @param orderByComparator the comparator to order the results by 252 * @return the ordered range of matching asset category properties 253 * @throws SystemException if a system exception occurred 254 */ 255 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 256 long categoryId, int start, int end, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException; 259 260 /** 261 * Finds the first asset category property in the ordered set where categoryId = ?. 262 * 263 * <p> 264 * 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. 265 * </p> 266 * 267 * @param categoryId the category ID to search with 268 * @param orderByComparator the comparator to order the set by 269 * @return the first matching asset category property 270 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First( 274 long categoryId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException, 277 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 278 279 /** 280 * Finds the last asset category property in the ordered set where categoryId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param categoryId the category ID to search with 287 * @param orderByComparator the comparator to order the set by 288 * @return the last matching asset category property 289 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 290 * @throws SystemException if a system exception occurred 291 */ 292 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last( 293 long categoryId, 294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 295 throws com.liferay.portal.kernel.exception.SystemException, 296 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 297 298 /** 299 * Finds the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param categoryPropertyId the primary key of the current asset category property 306 * @param categoryId the category ID to search with 307 * @param orderByComparator the comparator to order the set by 308 * @return the previous, current, and next asset category property 309 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext( 313 long categoryPropertyId, long categoryId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.kernel.exception.SystemException, 316 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 317 318 /** 319 * Finds all the asset category properties where companyId = ? and key = ?. 320 * 321 * @param companyId the company ID to search with 322 * @param key the key to search with 323 * @return the matching asset category properties 324 * @throws SystemException if a system exception occurred 325 */ 326 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 327 long companyId, java.lang.String key) 328 throws com.liferay.portal.kernel.exception.SystemException; 329 330 /** 331 * Finds a range of all the asset category properties where companyId = ? and key = ?. 332 * 333 * <p> 334 * 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. 335 * </p> 336 * 337 * @param companyId the company ID to search with 338 * @param key the key to search with 339 * @param start the lower bound of the range of asset category properties to return 340 * @param end the upper bound of the range of asset category properties to return (not inclusive) 341 * @return the range of matching asset category properties 342 * @throws SystemException if a system exception occurred 343 */ 344 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 345 long companyId, java.lang.String key, int start, int end) 346 throws com.liferay.portal.kernel.exception.SystemException; 347 348 /** 349 * Finds an ordered range of all the asset category properties where companyId = ? and key = ?. 350 * 351 * <p> 352 * 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. 353 * </p> 354 * 355 * @param companyId the company ID to search with 356 * @param key the key to search with 357 * @param start the lower bound of the range of asset category properties to return 358 * @param end the upper bound of the range of asset category properties to return (not inclusive) 359 * @param orderByComparator the comparator to order the results by 360 * @return the ordered range of matching asset category properties 361 * @throws SystemException if a system exception occurred 362 */ 363 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 364 long companyId, java.lang.String key, int start, int end, 365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Finds the first asset category property in the ordered set where companyId = ? and key = ?. 370 * 371 * <p> 372 * 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. 373 * </p> 374 * 375 * @param companyId the company ID to search with 376 * @param key the key to search with 377 * @param orderByComparator the comparator to order the set by 378 * @return the first matching asset category property 379 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 380 * @throws SystemException if a system exception occurred 381 */ 382 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First( 383 long companyId, java.lang.String key, 384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 385 throws com.liferay.portal.kernel.exception.SystemException, 386 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 387 388 /** 389 * Finds the last asset category property in the ordered set where companyId = ? and key = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param companyId the company ID to search with 396 * @param key the key to search with 397 * @param orderByComparator the comparator to order the set by 398 * @return the last matching asset category property 399 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 400 * @throws SystemException if a system exception occurred 401 */ 402 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last( 403 long companyId, java.lang.String key, 404 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 405 throws com.liferay.portal.kernel.exception.SystemException, 406 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 407 408 /** 409 * Finds the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. 410 * 411 * <p> 412 * 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. 413 * </p> 414 * 415 * @param categoryPropertyId the primary key of the current asset category property 416 * @param companyId the company ID to search with 417 * @param key the key to search with 418 * @param orderByComparator the comparator to order the set by 419 * @return the previous, current, and next asset category property 420 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 421 * @throws SystemException if a system exception occurred 422 */ 423 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext( 424 long categoryPropertyId, long companyId, java.lang.String key, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException, 427 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 428 429 /** 430 * Finds the asset category property where categoryId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 431 * 432 * @param categoryId the category ID to search with 433 * @param key the key to search with 434 * @return the matching asset category property 435 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K( 439 long categoryId, java.lang.String key) 440 throws com.liferay.portal.kernel.exception.SystemException, 441 com.liferay.portlet.asset.NoSuchCategoryPropertyException; 442 443 /** 444 * Finds the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 445 * 446 * @param categoryId the category ID to search with 447 * @param key the key to search with 448 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 449 * @throws SystemException if a system exception occurred 450 */ 451 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 452 long categoryId, java.lang.String key) 453 throws com.liferay.portal.kernel.exception.SystemException; 454 455 /** 456 * Finds the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 457 * 458 * @param categoryId the category ID to search with 459 * @param key the key to search with 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 * Finds 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 * Finds 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 to return 484 * @param end the upper bound of the range of asset category properties to return (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 * Finds 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 to return 500 * @param end the upper bound of the range of asset category properties to return (not inclusive) 501 * @param orderByComparator the comparator to order the results by 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 to search with 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 to search with 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 to search with 532 * @param key the key to search with 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 to search with 542 * @param key the key to search with 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 * Counts all the asset category properties where companyId = ?. 559 * 560 * @param companyId the company ID to search with 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 * Counts all the asset category properties where categoryId = ?. 569 * 570 * @param categoryId the category ID to search with 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 * Counts all the asset category properties where companyId = ? and key = ?. 579 * 580 * @param companyId the company ID to search with 581 * @param key the key to search with 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 * Counts all the asset category properties where categoryId = ? and key = ?. 590 * 591 * @param categoryId the category ID to search with 592 * @param key the key to search with 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 * Counts all the 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 608 public AssetCategoryProperty remove( 609 AssetCategoryProperty assetCategoryProperty) throws SystemException; 610 }