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