001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.asset.model.AssetCategoryProperty; 022 023 /** 024 * The persistence interface for the asset category property service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see AssetCategoryPropertyPersistenceImpl 032 * @see AssetCategoryPropertyUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface AssetCategoryPropertyPersistence extends BasePersistence<AssetCategoryProperty> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * 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. 041 */ 042 043 /** 044 * Returns all the asset category properties where companyId = ?. 045 * 046 * @param companyId the company ID 047 * @return the matching asset category properties 048 */ 049 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 050 long companyId); 051 052 /** 053 * Returns a range of all the asset category properties where companyId = ?. 054 * 055 * <p> 056 * 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. 057 * </p> 058 * 059 * @param companyId the company ID 060 * @param start the lower bound of the range of asset category properties 061 * @param end the upper bound of the range of asset category properties (not inclusive) 062 * @return the range of matching asset category properties 063 */ 064 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 065 long companyId, int start, int end); 066 067 /** 068 * Returns an ordered range of all the asset category properties where companyId = ?. 069 * 070 * <p> 071 * 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. 072 * </p> 073 * 074 * @param companyId the company ID 075 * @param start the lower bound of the range of asset category properties 076 * @param end the upper bound of the range of asset category properties (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching asset category properties 079 */ 080 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId( 081 long companyId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 083 084 /** 085 * Returns the first asset category property in the ordered set where companyId = ?. 086 * 087 * @param companyId the company ID 088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 089 * @return the first matching asset category property 090 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 091 */ 092 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First( 093 long companyId, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 095 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 096 097 /** 098 * Returns the first asset category property in the ordered set where companyId = ?. 099 * 100 * @param companyId the company ID 101 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 102 * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found 103 */ 104 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_First( 105 long companyId, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 107 108 /** 109 * Returns the last asset category property in the ordered set where companyId = ?. 110 * 111 * @param companyId the company ID 112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 113 * @return the last matching asset category property 114 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 115 */ 116 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last( 117 long companyId, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 119 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 120 121 /** 122 * Returns the last asset category property in the ordered set where companyId = ?. 123 * 124 * @param companyId the company ID 125 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 126 * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found 127 */ 128 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_Last( 129 long companyId, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 131 132 /** 133 * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?. 134 * 135 * @param categoryPropertyId the primary key of the current asset category property 136 * @param companyId the company ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the previous, current, and next asset category property 139 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 140 */ 141 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext( 142 long categoryPropertyId, long companyId, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 144 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 145 146 /** 147 * Removes all the asset category properties where companyId = ? from the database. 148 * 149 * @param companyId the company ID 150 */ 151 public void removeByCompanyId(long companyId); 152 153 /** 154 * Returns the number of asset category properties where companyId = ?. 155 * 156 * @param companyId the company ID 157 * @return the number of matching asset category properties 158 */ 159 public int countByCompanyId(long companyId); 160 161 /** 162 * Returns all the asset category properties where categoryId = ?. 163 * 164 * @param categoryId the category ID 165 * @return the matching asset category properties 166 */ 167 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 168 long categoryId); 169 170 /** 171 * Returns a range of all the asset category properties where categoryId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param categoryId the category ID 178 * @param start the lower bound of the range of asset category properties 179 * @param end the upper bound of the range of asset category properties (not inclusive) 180 * @return the range of matching asset category properties 181 */ 182 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 183 long categoryId, int start, int end); 184 185 /** 186 * Returns an ordered range of all the asset category properties where categoryId = ?. 187 * 188 * <p> 189 * 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. 190 * </p> 191 * 192 * @param categoryId the category ID 193 * @param start the lower bound of the range of asset category properties 194 * @param end the upper bound of the range of asset category properties (not inclusive) 195 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 196 * @return the ordered range of matching asset category properties 197 */ 198 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId( 199 long categoryId, int start, int end, 200 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 201 202 /** 203 * Returns the first asset category property in the ordered set where categoryId = ?. 204 * 205 * @param categoryId the category ID 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the first matching asset category property 208 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 209 */ 210 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First( 211 long categoryId, 212 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 213 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 214 215 /** 216 * Returns the first asset category property in the ordered set where categoryId = ?. 217 * 218 * @param categoryId the category ID 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found 221 */ 222 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_First( 223 long categoryId, 224 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 225 226 /** 227 * Returns the last asset category property in the ordered set where categoryId = ?. 228 * 229 * @param categoryId the category ID 230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 231 * @return the last matching asset category property 232 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 233 */ 234 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last( 235 long categoryId, 236 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 237 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 238 239 /** 240 * Returns the last asset category property in the ordered set where categoryId = ?. 241 * 242 * @param categoryId the category ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found 245 */ 246 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_Last( 247 long categoryId, 248 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 249 250 /** 251 * Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. 252 * 253 * @param categoryPropertyId the primary key of the current asset category property 254 * @param categoryId the category ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the previous, current, and next asset category property 257 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 258 */ 259 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext( 260 long categoryPropertyId, long categoryId, 261 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 262 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 263 264 /** 265 * Removes all the asset category properties where categoryId = ? from the database. 266 * 267 * @param categoryId the category ID 268 */ 269 public void removeByCategoryId(long categoryId); 270 271 /** 272 * Returns the number of asset category properties where categoryId = ?. 273 * 274 * @param categoryId the category ID 275 * @return the number of matching asset category properties 276 */ 277 public int countByCategoryId(long categoryId); 278 279 /** 280 * Returns all the asset category properties where companyId = ? and key = ?. 281 * 282 * @param companyId the company ID 283 * @param key the key 284 * @return the matching asset category properties 285 */ 286 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 287 long companyId, java.lang.String key); 288 289 /** 290 * Returns a range of all the asset category properties where companyId = ? and key = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param companyId the company ID 297 * @param key the key 298 * @param start the lower bound of the range of asset category properties 299 * @param end the upper bound of the range of asset category properties (not inclusive) 300 * @return the range of matching asset category properties 301 */ 302 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 303 long companyId, java.lang.String key, int start, int end); 304 305 /** 306 * Returns an ordered range of all the asset category properties where companyId = ? and key = ?. 307 * 308 * <p> 309 * 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. 310 * </p> 311 * 312 * @param companyId the company ID 313 * @param key the key 314 * @param start the lower bound of the range of asset category properties 315 * @param end the upper bound of the range of asset category properties (not inclusive) 316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 317 * @return the ordered range of matching asset category properties 318 */ 319 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K( 320 long companyId, java.lang.String key, int start, int end, 321 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 322 323 /** 324 * Returns the first asset category property in the ordered set where companyId = ? and key = ?. 325 * 326 * @param companyId the company ID 327 * @param key the key 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the first matching asset category property 330 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 331 */ 332 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First( 333 long companyId, java.lang.String key, 334 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 335 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 336 337 /** 338 * Returns the first asset category property in the ordered set where companyId = ? and key = ?. 339 * 340 * @param companyId the company ID 341 * @param key the key 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found 344 */ 345 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_First( 346 long companyId, java.lang.String key, 347 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 348 349 /** 350 * Returns the last asset category property in the ordered set where companyId = ? and key = ?. 351 * 352 * @param companyId the company ID 353 * @param key the key 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the last matching asset category property 356 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 357 */ 358 public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last( 359 long companyId, java.lang.String key, 360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 361 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 362 363 /** 364 * Returns the last asset category property in the ordered set where companyId = ? and key = ?. 365 * 366 * @param companyId the company ID 367 * @param key the key 368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 369 * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found 370 */ 371 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_Last( 372 long companyId, java.lang.String key, 373 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 374 375 /** 376 * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. 377 * 378 * @param categoryPropertyId the primary key of the current asset category property 379 * @param companyId the company ID 380 * @param key the key 381 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 382 * @return the previous, current, and next asset category property 383 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 384 */ 385 public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext( 386 long categoryPropertyId, long companyId, java.lang.String key, 387 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator) 388 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 389 390 /** 391 * Removes all the asset category properties where companyId = ? and key = ? from the database. 392 * 393 * @param companyId the company ID 394 * @param key the key 395 */ 396 public void removeByC_K(long companyId, java.lang.String key); 397 398 /** 399 * Returns the number of asset category properties where companyId = ? and key = ?. 400 * 401 * @param companyId the company ID 402 * @param key the key 403 * @return the number of matching asset category properties 404 */ 405 public int countByC_K(long companyId, java.lang.String key); 406 407 /** 408 * Returns the asset category property where categoryId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 409 * 410 * @param categoryId the category ID 411 * @param key the key 412 * @return the matching asset category property 413 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found 414 */ 415 public com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K( 416 long categoryId, java.lang.String key) 417 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 418 419 /** 420 * Returns the asset category property where categoryId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 421 * 422 * @param categoryId the category ID 423 * @param key the key 424 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 425 */ 426 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 427 long categoryId, java.lang.String key); 428 429 /** 430 * 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. 431 * 432 * @param categoryId the category ID 433 * @param key the key 434 * @param retrieveFromCache whether to use the finder cache 435 * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found 436 */ 437 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K( 438 long categoryId, java.lang.String key, boolean retrieveFromCache); 439 440 /** 441 * Removes the asset category property where categoryId = ? and key = ? from the database. 442 * 443 * @param categoryId the category ID 444 * @param key the key 445 * @return the asset category property that was removed 446 */ 447 public com.liferay.portlet.asset.model.AssetCategoryProperty removeByCA_K( 448 long categoryId, java.lang.String key) 449 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 450 451 /** 452 * Returns the number of asset category properties where categoryId = ? and key = ?. 453 * 454 * @param categoryId the category ID 455 * @param key the key 456 * @return the number of matching asset category properties 457 */ 458 public int countByCA_K(long categoryId, java.lang.String key); 459 460 /** 461 * Caches the asset category property in the entity cache if it is enabled. 462 * 463 * @param assetCategoryProperty the asset category property 464 */ 465 public void cacheResult( 466 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty); 467 468 /** 469 * Caches the asset category properties in the entity cache if it is enabled. 470 * 471 * @param assetCategoryProperties the asset category properties 472 */ 473 public void cacheResult( 474 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties); 475 476 /** 477 * Creates a new asset category property with the primary key. Does not add the asset category property to the database. 478 * 479 * @param categoryPropertyId the primary key for the new asset category property 480 * @return the new asset category property 481 */ 482 public com.liferay.portlet.asset.model.AssetCategoryProperty create( 483 long categoryPropertyId); 484 485 /** 486 * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners. 487 * 488 * @param categoryPropertyId the primary key of the asset category property 489 * @return the asset category property that was removed 490 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 491 */ 492 public com.liferay.portlet.asset.model.AssetCategoryProperty remove( 493 long categoryPropertyId) 494 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 495 496 public com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl( 497 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty); 498 499 /** 500 * Returns the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found. 501 * 502 * @param categoryPropertyId the primary key of the asset category property 503 * @return the asset category property 504 * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found 505 */ 506 public com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey( 507 long categoryPropertyId) 508 throws com.liferay.portlet.asset.NoSuchCategoryPropertyException; 509 510 /** 511 * Returns the asset category property with the primary key or returns <code>null</code> if it could not be found. 512 * 513 * @param categoryPropertyId the primary key of the asset category property 514 * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found 515 */ 516 public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey( 517 long categoryPropertyId); 518 519 @Override 520 public java.util.Map<java.io.Serializable, com.liferay.portlet.asset.model.AssetCategoryProperty> fetchByPrimaryKeys( 521 java.util.Set<java.io.Serializable> primaryKeys); 522 523 /** 524 * Returns all the asset category properties. 525 * 526 * @return the asset category properties 527 */ 528 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(); 529 530 /** 531 * Returns a range of all the asset category properties. 532 * 533 * <p> 534 * 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. 535 * </p> 536 * 537 * @param start the lower bound of the range of asset category properties 538 * @param end the upper bound of the range of asset category properties (not inclusive) 539 * @return the range of asset category properties 540 */ 541 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 542 int start, int end); 543 544 /** 545 * Returns an ordered range of all the asset category properties. 546 * 547 * <p> 548 * 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. 549 * </p> 550 * 551 * @param start the lower bound of the range of asset category properties 552 * @param end the upper bound of the range of asset category properties (not inclusive) 553 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 554 * @return the ordered range of asset category properties 555 */ 556 public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll( 557 int start, int end, 558 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategoryProperty> orderByComparator); 559 560 /** 561 * Removes all the asset category properties from the database. 562 */ 563 public void removeAll(); 564 565 /** 566 * Returns the number of asset category properties. 567 * 568 * @return the number of asset category properties 569 */ 570 public int countAll(); 571 }