001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.asset.model.AssetCategory; 020 021 /** 022 * The persistence interface for the asset category 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 AssetCategoryPersistenceImpl 030 * @see AssetCategoryUtil 031 * @generated 032 */ 033 public interface AssetCategoryPersistence extends BasePersistence<AssetCategory> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link AssetCategoryUtil} to access the asset category persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the asset categories where uuid = ?. 042 * 043 * @param uuid the uuid 044 * @return the matching asset categories 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 048 java.lang.String uuid) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the asset categories where uuid = ?. 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.AssetCategoryModelImpl}. 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 uuid the uuid 059 * @param start the lower bound of the range of asset categories 060 * @param end the upper bound of the range of asset categories (not inclusive) 061 * @return the range of matching asset categories 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 065 java.lang.String uuid, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the asset categories where uuid = ?. 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.AssetCategoryModelImpl}. 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 uuid the uuid 076 * @param start the lower bound of the range of asset categories 077 * @param end the upper bound of the range of asset categories (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching asset categories 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid( 083 java.lang.String uuid, 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 in the ordered set where uuid = ?. 089 * 090 * @param uuid the uuid 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching asset category 093 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.asset.model.AssetCategory findByUuid_First( 097 java.lang.String uuid, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.asset.NoSuchCategoryException; 101 102 /** 103 * Returns the first asset category in the ordered set where uuid = ?. 104 * 105 * @param uuid the uuid 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.asset.model.AssetCategory fetchByUuid_First( 111 java.lang.String uuid, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last asset category in the ordered set where uuid = ?. 117 * 118 * @param uuid the uuid 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching asset category 121 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.asset.model.AssetCategory findByUuid_Last( 125 java.lang.String uuid, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.asset.NoSuchCategoryException; 129 130 /** 131 * Returns the last asset category in the ordered set where uuid = ?. 132 * 133 * @param uuid the uuid 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.asset.model.AssetCategory fetchByUuid_Last( 139 java.lang.String uuid, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the asset categories before and after the current asset category in the ordered set where uuid = ?. 145 * 146 * @param categoryId the primary key of the current asset category 147 * @param uuid the uuid 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next asset category 150 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext( 154 long categoryId, java.lang.String uuid, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.asset.NoSuchCategoryException; 158 159 /** 160 * Removes all the asset categories where uuid = ? from the database. 161 * 162 * @param uuid the uuid 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByUuid(java.lang.String uuid) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of asset categories where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @return the number of matching asset categories 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByUuid(java.lang.String uuid) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the asset category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 180 * 181 * @param uuid the uuid 182 * @param groupId the group ID 183 * @return the matching asset category 184 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.asset.model.AssetCategory findByUUID_G( 188 java.lang.String uuid, long groupId) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.asset.NoSuchCategoryException; 191 192 /** 193 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 194 * 195 * @param uuid the uuid 196 * @param groupId the group ID 197 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 201 java.lang.String uuid, long groupId) 202 throws com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 206 * 207 * @param uuid the uuid 208 * @param groupId the group ID 209 * @param retrieveFromCache whether to use the finder cache 210 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 214 java.lang.String uuid, long groupId, boolean retrieveFromCache) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Removes the asset category where uuid = ? and groupId = ? from the database. 219 * 220 * @param uuid the uuid 221 * @param groupId the group ID 222 * @return the asset category that was removed 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portlet.asset.model.AssetCategory removeByUUID_G( 226 java.lang.String uuid, long groupId) 227 throws com.liferay.portal.kernel.exception.SystemException, 228 com.liferay.portlet.asset.NoSuchCategoryException; 229 230 /** 231 * Returns the number of asset categories where uuid = ? and groupId = ?. 232 * 233 * @param uuid the uuid 234 * @param groupId the group ID 235 * @return the number of matching asset categories 236 * @throws SystemException if a system exception occurred 237 */ 238 public int countByUUID_G(java.lang.String uuid, long groupId) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns all the asset categories where uuid = ? and companyId = ?. 243 * 244 * @param uuid the uuid 245 * @param companyId the company ID 246 * @return the matching asset categories 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid_C( 250 java.lang.String uuid, long companyId) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns a range of all the asset categories where uuid = ? and companyId = ?. 255 * 256 * <p> 257 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.AssetCategoryModelImpl}. 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. 258 * </p> 259 * 260 * @param uuid the uuid 261 * @param companyId the company ID 262 * @param start the lower bound of the range of asset categories 263 * @param end the upper bound of the range of asset categories (not inclusive) 264 * @return the range of matching asset categories 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid_C( 268 java.lang.String uuid, long companyId, int start, int end) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns an ordered range of all the asset categories where uuid = ? and companyId = ?. 273 * 274 * <p> 275 * 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.AssetCategoryModelImpl}. 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. 276 * </p> 277 * 278 * @param uuid the uuid 279 * @param companyId the company ID 280 * @param start the lower bound of the range of asset categories 281 * @param end the upper bound of the range of asset categories (not inclusive) 282 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 283 * @return the ordered range of matching asset categories 284 * @throws SystemException if a system exception occurred 285 */ 286 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid_C( 287 java.lang.String uuid, long companyId, int start, int end, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns the first asset category in the ordered set where uuid = ? and companyId = ?. 293 * 294 * @param uuid the uuid 295 * @param companyId the company ID 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the first matching asset category 298 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portlet.asset.model.AssetCategory findByUuid_C_First( 302 java.lang.String uuid, long companyId, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException, 305 com.liferay.portlet.asset.NoSuchCategoryException; 306 307 /** 308 * Returns the first asset category in the ordered set where uuid = ? and companyId = ?. 309 * 310 * @param uuid the uuid 311 * @param companyId the company ID 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portlet.asset.model.AssetCategory fetchByUuid_C_First( 317 java.lang.String uuid, long companyId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Returns the last asset category in the ordered set where uuid = ? and companyId = ?. 323 * 324 * @param uuid the uuid 325 * @param companyId the company ID 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the last matching asset category 328 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 329 * @throws SystemException if a system exception occurred 330 */ 331 public com.liferay.portlet.asset.model.AssetCategory findByUuid_C_Last( 332 java.lang.String uuid, long companyId, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.kernel.exception.SystemException, 335 com.liferay.portlet.asset.NoSuchCategoryException; 336 337 /** 338 * Returns the last asset category in the ordered set where uuid = ? and companyId = ?. 339 * 340 * @param uuid the uuid 341 * @param companyId the company ID 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portlet.asset.model.AssetCategory fetchByUuid_C_Last( 347 java.lang.String uuid, long companyId, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.kernel.exception.SystemException; 350 351 /** 352 * Returns the asset categories before and after the current asset category in the ordered set where uuid = ? and companyId = ?. 353 * 354 * @param categoryId the primary key of the current asset category 355 * @param uuid the uuid 356 * @param companyId the company ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the previous, current, and next asset category 359 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.asset.model.AssetCategory[] findByUuid_C_PrevAndNext( 363 long categoryId, java.lang.String uuid, long companyId, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException, 366 com.liferay.portlet.asset.NoSuchCategoryException; 367 368 /** 369 * Removes all the asset categories where uuid = ? and companyId = ? from the database. 370 * 371 * @param uuid the uuid 372 * @param companyId the company ID 373 * @throws SystemException if a system exception occurred 374 */ 375 public void removeByUuid_C(java.lang.String uuid, long companyId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns the number of asset categories where uuid = ? and companyId = ?. 380 * 381 * @param uuid the uuid 382 * @param companyId the company ID 383 * @return the number of matching asset categories 384 * @throws SystemException if a system exception occurred 385 */ 386 public int countByUuid_C(java.lang.String uuid, long companyId) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Returns all the asset categories where groupId = ?. 391 * 392 * @param groupId the group ID 393 * @return the matching asset categories 394 * @throws SystemException if a system exception occurred 395 */ 396 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 397 long groupId) 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Returns a range of all the asset categories where groupId = ?. 402 * 403 * <p> 404 * 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.AssetCategoryModelImpl}. 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. 405 * </p> 406 * 407 * @param groupId the group ID 408 * @param start the lower bound of the range of asset categories 409 * @param end the upper bound of the range of asset categories (not inclusive) 410 * @return the range of matching asset categories 411 * @throws SystemException if a system exception occurred 412 */ 413 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 414 long groupId, int start, int end) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns an ordered range of all the asset categories where groupId = ?. 419 * 420 * <p> 421 * 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.AssetCategoryModelImpl}. 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. 422 * </p> 423 * 424 * @param groupId the group ID 425 * @param start the lower bound of the range of asset categories 426 * @param end the upper bound of the range of asset categories (not inclusive) 427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 428 * @return the ordered range of matching asset categories 429 * @throws SystemException if a system exception occurred 430 */ 431 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 432 long groupId, int start, int end, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * Returns the first asset category in the ordered set where groupId = ?. 438 * 439 * @param groupId the group ID 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the first matching asset category 442 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public com.liferay.portlet.asset.model.AssetCategory findByGroupId_First( 446 long groupId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.asset.NoSuchCategoryException; 450 451 /** 452 * Returns the first asset category in the ordered set where groupId = ?. 453 * 454 * @param groupId the group ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_First( 460 long groupId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns the last asset category in the ordered set where groupId = ?. 466 * 467 * @param groupId the group ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the last matching asset category 470 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 471 * @throws SystemException if a system exception occurred 472 */ 473 public com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last( 474 long groupId, 475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.asset.NoSuchCategoryException; 478 479 /** 480 * Returns the last asset category in the ordered set where groupId = ?. 481 * 482 * @param groupId the group ID 483 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 484 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_Last( 488 long groupId, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ?. 494 * 495 * @param categoryId the primary key of the current asset category 496 * @param groupId the group ID 497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 498 * @return the previous, current, and next asset category 499 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 500 * @throws SystemException if a system exception occurred 501 */ 502 public com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext( 503 long categoryId, long groupId, 504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 505 throws com.liferay.portal.kernel.exception.SystemException, 506 com.liferay.portlet.asset.NoSuchCategoryException; 507 508 /** 509 * Returns all the asset categories that the user has permission to view where groupId = ?. 510 * 511 * @param groupId the group ID 512 * @return the matching asset categories that the user has permission to view 513 * @throws SystemException if a system exception occurred 514 */ 515 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 516 long groupId) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns a range of all the asset categories that the user has permission to view where groupId = ?. 521 * 522 * <p> 523 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.AssetCategoryModelImpl}. 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. 524 * </p> 525 * 526 * @param groupId the group ID 527 * @param start the lower bound of the range of asset categories 528 * @param end the upper bound of the range of asset categories (not inclusive) 529 * @return the range of matching asset categories that the user has permission to view 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 533 long groupId, int start, int end) 534 throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ?. 538 * 539 * <p> 540 * 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.AssetCategoryModelImpl}. 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. 541 * </p> 542 * 543 * @param groupId the group ID 544 * @param start the lower bound of the range of asset categories 545 * @param end the upper bound of the range of asset categories (not inclusive) 546 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 547 * @return the ordered range of matching asset categories that the user has permission to view 548 * @throws SystemException if a system exception occurred 549 */ 550 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 551 long groupId, int start, int end, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.kernel.exception.SystemException; 554 555 /** 556 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ?. 557 * 558 * @param categoryId the primary key of the current asset category 559 * @param groupId the group ID 560 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 561 * @return the previous, current, and next asset category 562 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext( 566 long categoryId, long groupId, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.asset.NoSuchCategoryException; 570 571 /** 572 * Removes all the asset categories where groupId = ? from the database. 573 * 574 * @param groupId the group ID 575 * @throws SystemException if a system exception occurred 576 */ 577 public void removeByGroupId(long groupId) 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Returns the number of asset categories where groupId = ?. 582 * 583 * @param groupId the group ID 584 * @return the number of matching asset categories 585 * @throws SystemException if a system exception occurred 586 */ 587 public int countByGroupId(long groupId) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Returns the number of asset categories that the user has permission to view where groupId = ?. 592 * 593 * @param groupId the group ID 594 * @return the number of matching asset categories that the user has permission to view 595 * @throws SystemException if a system exception occurred 596 */ 597 public int filterCountByGroupId(long groupId) 598 throws com.liferay.portal.kernel.exception.SystemException; 599 600 /** 601 * Returns all the asset categories where parentCategoryId = ?. 602 * 603 * @param parentCategoryId the parent category ID 604 * @return the matching asset categories 605 * @throws SystemException if a system exception occurred 606 */ 607 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 608 long parentCategoryId) 609 throws com.liferay.portal.kernel.exception.SystemException; 610 611 /** 612 * Returns a range of all the asset categories where parentCategoryId = ?. 613 * 614 * <p> 615 * 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.AssetCategoryModelImpl}. 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. 616 * </p> 617 * 618 * @param parentCategoryId the parent category ID 619 * @param start the lower bound of the range of asset categories 620 * @param end the upper bound of the range of asset categories (not inclusive) 621 * @return the range of matching asset categories 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 625 long parentCategoryId, int start, int end) 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns an ordered range of all the asset categories where parentCategoryId = ?. 630 * 631 * <p> 632 * 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.AssetCategoryModelImpl}. 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. 633 * </p> 634 * 635 * @param parentCategoryId the parent category ID 636 * @param start the lower bound of the range of asset categories 637 * @param end the upper bound of the range of asset categories (not inclusive) 638 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 639 * @return the ordered range of matching asset categories 640 * @throws SystemException if a system exception occurred 641 */ 642 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 643 long parentCategoryId, int start, int end, 644 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 645 throws com.liferay.portal.kernel.exception.SystemException; 646 647 /** 648 * Returns the first asset category in the ordered set where parentCategoryId = ?. 649 * 650 * @param parentCategoryId the parent category ID 651 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 652 * @return the first matching asset category 653 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 654 * @throws SystemException if a system exception occurred 655 */ 656 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First( 657 long parentCategoryId, 658 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 659 throws com.liferay.portal.kernel.exception.SystemException, 660 com.liferay.portlet.asset.NoSuchCategoryException; 661 662 /** 663 * Returns the first asset category in the ordered set where parentCategoryId = ?. 664 * 665 * @param parentCategoryId the parent category ID 666 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 667 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 668 * @throws SystemException if a system exception occurred 669 */ 670 public com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_First( 671 long parentCategoryId, 672 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 673 throws com.liferay.portal.kernel.exception.SystemException; 674 675 /** 676 * Returns the last asset category in the ordered set where parentCategoryId = ?. 677 * 678 * @param parentCategoryId the parent category ID 679 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 680 * @return the last matching asset category 681 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last( 685 long parentCategoryId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException, 688 com.liferay.portlet.asset.NoSuchCategoryException; 689 690 /** 691 * Returns the last asset category in the ordered set where parentCategoryId = ?. 692 * 693 * @param parentCategoryId the parent category ID 694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 695 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 696 * @throws SystemException if a system exception occurred 697 */ 698 public com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_Last( 699 long parentCategoryId, 700 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 701 throws com.liferay.portal.kernel.exception.SystemException; 702 703 /** 704 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. 705 * 706 * @param categoryId the primary key of the current asset category 707 * @param parentCategoryId the parent category ID 708 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 709 * @return the previous, current, and next asset category 710 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 711 * @throws SystemException if a system exception occurred 712 */ 713 public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext( 714 long categoryId, long parentCategoryId, 715 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 716 throws com.liferay.portal.kernel.exception.SystemException, 717 com.liferay.portlet.asset.NoSuchCategoryException; 718 719 /** 720 * Removes all the asset categories where parentCategoryId = ? from the database. 721 * 722 * @param parentCategoryId the parent category ID 723 * @throws SystemException if a system exception occurred 724 */ 725 public void removeByParentCategoryId(long parentCategoryId) 726 throws com.liferay.portal.kernel.exception.SystemException; 727 728 /** 729 * Returns the number of asset categories where parentCategoryId = ?. 730 * 731 * @param parentCategoryId the parent category ID 732 * @return the number of matching asset categories 733 * @throws SystemException if a system exception occurred 734 */ 735 public int countByParentCategoryId(long parentCategoryId) 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns all the asset categories where vocabularyId = ?. 740 * 741 * @param vocabularyId the vocabulary ID 742 * @return the matching asset categories 743 * @throws SystemException if a system exception occurred 744 */ 745 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 746 long vocabularyId) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns a range of all the asset categories where vocabularyId = ?. 751 * 752 * <p> 753 * 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.AssetCategoryModelImpl}. 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. 754 * </p> 755 * 756 * @param vocabularyId the vocabulary ID 757 * @param start the lower bound of the range of asset categories 758 * @param end the upper bound of the range of asset categories (not inclusive) 759 * @return the range of matching asset categories 760 * @throws SystemException if a system exception occurred 761 */ 762 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 763 long vocabularyId, int start, int end) 764 throws com.liferay.portal.kernel.exception.SystemException; 765 766 /** 767 * Returns an ordered range of all the asset categories where vocabularyId = ?. 768 * 769 * <p> 770 * 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.AssetCategoryModelImpl}. 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. 771 * </p> 772 * 773 * @param vocabularyId the vocabulary ID 774 * @param start the lower bound of the range of asset categories 775 * @param end the upper bound of the range of asset categories (not inclusive) 776 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 777 * @return the ordered range of matching asset categories 778 * @throws SystemException if a system exception occurred 779 */ 780 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 781 long vocabularyId, int start, int end, 782 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 783 throws com.liferay.portal.kernel.exception.SystemException; 784 785 /** 786 * Returns the first asset category in the ordered set where vocabularyId = ?. 787 * 788 * @param vocabularyId the vocabulary ID 789 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 790 * @return the first matching asset category 791 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 792 * @throws SystemException if a system exception occurred 793 */ 794 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First( 795 long vocabularyId, 796 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 797 throws com.liferay.portal.kernel.exception.SystemException, 798 com.liferay.portlet.asset.NoSuchCategoryException; 799 800 /** 801 * Returns the first asset category in the ordered set where vocabularyId = ?. 802 * 803 * @param vocabularyId the vocabulary ID 804 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 805 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 806 * @throws SystemException if a system exception occurred 807 */ 808 public com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_First( 809 long vocabularyId, 810 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 811 throws com.liferay.portal.kernel.exception.SystemException; 812 813 /** 814 * Returns the last asset category in the ordered set where vocabularyId = ?. 815 * 816 * @param vocabularyId the vocabulary ID 817 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 818 * @return the last matching asset category 819 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 820 * @throws SystemException if a system exception occurred 821 */ 822 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last( 823 long vocabularyId, 824 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 825 throws com.liferay.portal.kernel.exception.SystemException, 826 com.liferay.portlet.asset.NoSuchCategoryException; 827 828 /** 829 * Returns the last asset category in the ordered set where vocabularyId = ?. 830 * 831 * @param vocabularyId the vocabulary ID 832 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 833 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 834 * @throws SystemException if a system exception occurred 835 */ 836 public com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_Last( 837 long vocabularyId, 838 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 839 throws com.liferay.portal.kernel.exception.SystemException; 840 841 /** 842 * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. 843 * 844 * @param categoryId the primary key of the current asset category 845 * @param vocabularyId the vocabulary ID 846 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 847 * @return the previous, current, and next asset category 848 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 849 * @throws SystemException if a system exception occurred 850 */ 851 public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext( 852 long categoryId, long vocabularyId, 853 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 854 throws com.liferay.portal.kernel.exception.SystemException, 855 com.liferay.portlet.asset.NoSuchCategoryException; 856 857 /** 858 * Removes all the asset categories where vocabularyId = ? from the database. 859 * 860 * @param vocabularyId the vocabulary ID 861 * @throws SystemException if a system exception occurred 862 */ 863 public void removeByVocabularyId(long vocabularyId) 864 throws com.liferay.portal.kernel.exception.SystemException; 865 866 /** 867 * Returns the number of asset categories where vocabularyId = ?. 868 * 869 * @param vocabularyId the vocabulary ID 870 * @return the number of matching asset categories 871 * @throws SystemException if a system exception occurred 872 */ 873 public int countByVocabularyId(long vocabularyId) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Returns all the asset categories where groupId = ? and vocabularyId = ?. 878 * 879 * @param groupId the group ID 880 * @param vocabularyId the vocabulary ID 881 * @return the matching asset categories 882 * @throws SystemException if a system exception occurred 883 */ 884 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 885 long groupId, long vocabularyId) 886 throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Returns a range of all the asset categories where groupId = ? and vocabularyId = ?. 890 * 891 * <p> 892 * 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.AssetCategoryModelImpl}. 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. 893 * </p> 894 * 895 * @param groupId the group ID 896 * @param vocabularyId the vocabulary ID 897 * @param start the lower bound of the range of asset categories 898 * @param end the upper bound of the range of asset categories (not inclusive) 899 * @return the range of matching asset categories 900 * @throws SystemException if a system exception occurred 901 */ 902 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 903 long groupId, long vocabularyId, int start, int end) 904 throws com.liferay.portal.kernel.exception.SystemException; 905 906 /** 907 * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?. 908 * 909 * <p> 910 * 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.AssetCategoryModelImpl}. 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. 911 * </p> 912 * 913 * @param groupId the group ID 914 * @param vocabularyId the vocabulary ID 915 * @param start the lower bound of the range of asset categories 916 * @param end the upper bound of the range of asset categories (not inclusive) 917 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 918 * @return the ordered range of matching asset categories 919 * @throws SystemException if a system exception occurred 920 */ 921 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 922 long groupId, long vocabularyId, int start, int end, 923 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 924 throws com.liferay.portal.kernel.exception.SystemException; 925 926 /** 927 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 928 * 929 * @param groupId the group ID 930 * @param vocabularyId the vocabulary ID 931 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 932 * @return the first matching asset category 933 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 934 * @throws SystemException if a system exception occurred 935 */ 936 public com.liferay.portlet.asset.model.AssetCategory findByG_V_First( 937 long groupId, long vocabularyId, 938 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 939 throws com.liferay.portal.kernel.exception.SystemException, 940 com.liferay.portlet.asset.NoSuchCategoryException; 941 942 /** 943 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 944 * 945 * @param groupId the group ID 946 * @param vocabularyId the vocabulary ID 947 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 948 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 949 * @throws SystemException if a system exception occurred 950 */ 951 public com.liferay.portlet.asset.model.AssetCategory fetchByG_V_First( 952 long groupId, long vocabularyId, 953 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 954 throws com.liferay.portal.kernel.exception.SystemException; 955 956 /** 957 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 958 * 959 * @param groupId the group ID 960 * @param vocabularyId the vocabulary ID 961 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 962 * @return the last matching asset category 963 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 964 * @throws SystemException if a system exception occurred 965 */ 966 public com.liferay.portlet.asset.model.AssetCategory findByG_V_Last( 967 long groupId, long vocabularyId, 968 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 969 throws com.liferay.portal.kernel.exception.SystemException, 970 com.liferay.portlet.asset.NoSuchCategoryException; 971 972 /** 973 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 974 * 975 * @param groupId the group ID 976 * @param vocabularyId the vocabulary ID 977 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 978 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 979 * @throws SystemException if a system exception occurred 980 */ 981 public com.liferay.portlet.asset.model.AssetCategory fetchByG_V_Last( 982 long groupId, long vocabularyId, 983 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 984 throws com.liferay.portal.kernel.exception.SystemException; 985 986 /** 987 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?. 988 * 989 * @param categoryId the primary key of the current asset category 990 * @param groupId the group ID 991 * @param vocabularyId the vocabulary ID 992 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 993 * @return the previous, current, and next asset category 994 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 995 * @throws SystemException if a system exception occurred 996 */ 997 public com.liferay.portlet.asset.model.AssetCategory[] findByG_V_PrevAndNext( 998 long categoryId, long groupId, long vocabularyId, 999 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1000 throws com.liferay.portal.kernel.exception.SystemException, 1001 com.liferay.portlet.asset.NoSuchCategoryException; 1002 1003 /** 1004 * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1005 * 1006 * @param groupId the group ID 1007 * @param vocabularyId the vocabulary ID 1008 * @return the matching asset categories that the user has permission to view 1009 * @throws SystemException if a system exception occurred 1010 */ 1011 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1012 long groupId, long vocabularyId) 1013 throws com.liferay.portal.kernel.exception.SystemException; 1014 1015 /** 1016 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1017 * 1018 * <p> 1019 * 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.AssetCategoryModelImpl}. 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. 1020 * </p> 1021 * 1022 * @param groupId the group ID 1023 * @param vocabularyId the vocabulary ID 1024 * @param start the lower bound of the range of asset categories 1025 * @param end the upper bound of the range of asset categories (not inclusive) 1026 * @return the range of matching asset categories that the user has permission to view 1027 * @throws SystemException if a system exception occurred 1028 */ 1029 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1030 long groupId, long vocabularyId, int start, int end) 1031 throws com.liferay.portal.kernel.exception.SystemException; 1032 1033 /** 1034 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?. 1035 * 1036 * <p> 1037 * 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.AssetCategoryModelImpl}. 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. 1038 * </p> 1039 * 1040 * @param groupId the group ID 1041 * @param vocabularyId the vocabulary ID 1042 * @param start the lower bound of the range of asset categories 1043 * @param end the upper bound of the range of asset categories (not inclusive) 1044 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1045 * @return the ordered range of matching asset categories that the user has permission to view 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1049 long groupId, long vocabularyId, int start, int end, 1050 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1051 throws com.liferay.portal.kernel.exception.SystemException; 1052 1053 /** 1054 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1055 * 1056 * @param categoryId the primary key of the current asset category 1057 * @param groupId the group ID 1058 * @param vocabularyId the vocabulary ID 1059 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1060 * @return the previous, current, and next asset category 1061 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_V_PrevAndNext( 1065 long categoryId, long groupId, long vocabularyId, 1066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1067 throws com.liferay.portal.kernel.exception.SystemException, 1068 com.liferay.portlet.asset.NoSuchCategoryException; 1069 1070 /** 1071 * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1072 * 1073 * @param groupId the group ID 1074 * @param vocabularyIds the vocabulary IDs 1075 * @return the matching asset categories that the user has permission to view 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1079 long groupId, long[] vocabularyIds) 1080 throws com.liferay.portal.kernel.exception.SystemException; 1081 1082 /** 1083 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1084 * 1085 * <p> 1086 * 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.AssetCategoryModelImpl}. 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. 1087 * </p> 1088 * 1089 * @param groupId the group ID 1090 * @param vocabularyIds the vocabulary IDs 1091 * @param start the lower bound of the range of asset categories 1092 * @param end the upper bound of the range of asset categories (not inclusive) 1093 * @return the range of matching asset categories that the user has permission to view 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1097 long groupId, long[] vocabularyIds, int start, int end) 1098 throws com.liferay.portal.kernel.exception.SystemException; 1099 1100 /** 1101 * Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1102 * 1103 * <p> 1104 * 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.AssetCategoryModelImpl}. 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. 1105 * </p> 1106 * 1107 * @param groupId the group ID 1108 * @param vocabularyIds the vocabulary IDs 1109 * @param start the lower bound of the range of asset categories 1110 * @param end the upper bound of the range of asset categories (not inclusive) 1111 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1112 * @return the ordered range of matching asset categories that the user has permission to view 1113 * @throws SystemException if a system exception occurred 1114 */ 1115 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 1116 long groupId, long[] vocabularyIds, int start, int end, 1117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1118 throws com.liferay.portal.kernel.exception.SystemException; 1119 1120 /** 1121 * Returns all the asset categories where groupId = ? and vocabularyId = any ?. 1122 * 1123 * <p> 1124 * 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.AssetCategoryModelImpl}. 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. 1125 * </p> 1126 * 1127 * @param groupId the group ID 1128 * @param vocabularyIds the vocabulary IDs 1129 * @return the matching asset categories 1130 * @throws SystemException if a system exception occurred 1131 */ 1132 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1133 long groupId, long[] vocabularyIds) 1134 throws com.liferay.portal.kernel.exception.SystemException; 1135 1136 /** 1137 * Returns a range of all the asset categories where groupId = ? and vocabularyId = any ?. 1138 * 1139 * <p> 1140 * 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.AssetCategoryModelImpl}. 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. 1141 * </p> 1142 * 1143 * @param groupId the group ID 1144 * @param vocabularyIds the vocabulary IDs 1145 * @param start the lower bound of the range of asset categories 1146 * @param end the upper bound of the range of asset categories (not inclusive) 1147 * @return the range of matching asset categories 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1151 long groupId, long[] vocabularyIds, int start, int end) 1152 throws com.liferay.portal.kernel.exception.SystemException; 1153 1154 /** 1155 * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = any ?. 1156 * 1157 * <p> 1158 * 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.AssetCategoryModelImpl}. 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. 1159 * </p> 1160 * 1161 * @param groupId the group ID 1162 * @param vocabularyIds the vocabulary IDs 1163 * @param start the lower bound of the range of asset categories 1164 * @param end the upper bound of the range of asset categories (not inclusive) 1165 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1166 * @return the ordered range of matching asset categories 1167 * @throws SystemException if a system exception occurred 1168 */ 1169 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 1170 long groupId, long[] vocabularyIds, int start, int end, 1171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1172 throws com.liferay.portal.kernel.exception.SystemException; 1173 1174 /** 1175 * Removes all the asset categories where groupId = ? and vocabularyId = ? from the database. 1176 * 1177 * @param groupId the group ID 1178 * @param vocabularyId the vocabulary ID 1179 * @throws SystemException if a system exception occurred 1180 */ 1181 public void removeByG_V(long groupId, long vocabularyId) 1182 throws com.liferay.portal.kernel.exception.SystemException; 1183 1184 /** 1185 * Returns the number of asset categories where groupId = ? and vocabularyId = ?. 1186 * 1187 * @param groupId the group ID 1188 * @param vocabularyId the vocabulary ID 1189 * @return the number of matching asset categories 1190 * @throws SystemException if a system exception occurred 1191 */ 1192 public int countByG_V(long groupId, long vocabularyId) 1193 throws com.liferay.portal.kernel.exception.SystemException; 1194 1195 /** 1196 * Returns the number of asset categories where groupId = ? and vocabularyId = any ?. 1197 * 1198 * @param groupId the group ID 1199 * @param vocabularyIds the vocabulary IDs 1200 * @return the number of matching asset categories 1201 * @throws SystemException if a system exception occurred 1202 */ 1203 public int countByG_V(long groupId, long[] vocabularyIds) 1204 throws com.liferay.portal.kernel.exception.SystemException; 1205 1206 /** 1207 * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1208 * 1209 * @param groupId the group ID 1210 * @param vocabularyId the vocabulary ID 1211 * @return the number of matching asset categories that the user has permission to view 1212 * @throws SystemException if a system exception occurred 1213 */ 1214 public int filterCountByG_V(long groupId, long vocabularyId) 1215 throws com.liferay.portal.kernel.exception.SystemException; 1216 1217 /** 1218 * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = any ?. 1219 * 1220 * @param groupId the group ID 1221 * @param vocabularyIds the vocabulary IDs 1222 * @return the number of matching asset categories that the user has permission to view 1223 * @throws SystemException if a system exception occurred 1224 */ 1225 public int filterCountByG_V(long groupId, long[] vocabularyIds) 1226 throws com.liferay.portal.kernel.exception.SystemException; 1227 1228 /** 1229 * Returns all the asset categories where parentCategoryId = ? and name = ?. 1230 * 1231 * @param parentCategoryId the parent category ID 1232 * @param name the name 1233 * @return the matching asset categories 1234 * @throws SystemException if a system exception occurred 1235 */ 1236 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1237 long parentCategoryId, java.lang.String name) 1238 throws com.liferay.portal.kernel.exception.SystemException; 1239 1240 /** 1241 * Returns a range of all the asset categories where parentCategoryId = ? and name = ?. 1242 * 1243 * <p> 1244 * 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.AssetCategoryModelImpl}. 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. 1245 * </p> 1246 * 1247 * @param parentCategoryId the parent category ID 1248 * @param name the name 1249 * @param start the lower bound of the range of asset categories 1250 * @param end the upper bound of the range of asset categories (not inclusive) 1251 * @return the range of matching asset categories 1252 * @throws SystemException if a system exception occurred 1253 */ 1254 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1255 long parentCategoryId, java.lang.String name, int start, int end) 1256 throws com.liferay.portal.kernel.exception.SystemException; 1257 1258 /** 1259 * Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?. 1260 * 1261 * <p> 1262 * 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.AssetCategoryModelImpl}. 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. 1263 * </p> 1264 * 1265 * @param parentCategoryId the parent category ID 1266 * @param name the name 1267 * @param start the lower bound of the range of asset categories 1268 * @param end the upper bound of the range of asset categories (not inclusive) 1269 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1270 * @return the ordered range of matching asset categories 1271 * @throws SystemException if a system exception occurred 1272 */ 1273 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 1274 long parentCategoryId, java.lang.String name, int start, int end, 1275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1276 throws com.liferay.portal.kernel.exception.SystemException; 1277 1278 /** 1279 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 1280 * 1281 * @param parentCategoryId the parent category ID 1282 * @param name the name 1283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1284 * @return the first matching asset category 1285 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1286 * @throws SystemException if a system exception occurred 1287 */ 1288 public com.liferay.portlet.asset.model.AssetCategory findByP_N_First( 1289 long parentCategoryId, java.lang.String name, 1290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1291 throws com.liferay.portal.kernel.exception.SystemException, 1292 com.liferay.portlet.asset.NoSuchCategoryException; 1293 1294 /** 1295 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 1296 * 1297 * @param parentCategoryId the parent category ID 1298 * @param name the name 1299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1300 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1301 * @throws SystemException if a system exception occurred 1302 */ 1303 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_First( 1304 long parentCategoryId, java.lang.String name, 1305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1306 throws com.liferay.portal.kernel.exception.SystemException; 1307 1308 /** 1309 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 1310 * 1311 * @param parentCategoryId the parent category ID 1312 * @param name the name 1313 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1314 * @return the last matching asset category 1315 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1316 * @throws SystemException if a system exception occurred 1317 */ 1318 public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last( 1319 long parentCategoryId, java.lang.String name, 1320 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1321 throws com.liferay.portal.kernel.exception.SystemException, 1322 com.liferay.portlet.asset.NoSuchCategoryException; 1323 1324 /** 1325 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 1326 * 1327 * @param parentCategoryId the parent category ID 1328 * @param name the name 1329 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1330 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1331 * @throws SystemException if a system exception occurred 1332 */ 1333 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_Last( 1334 long parentCategoryId, java.lang.String name, 1335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1336 throws com.liferay.portal.kernel.exception.SystemException; 1337 1338 /** 1339 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. 1340 * 1341 * @param categoryId the primary key of the current asset category 1342 * @param parentCategoryId the parent category ID 1343 * @param name the name 1344 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1345 * @return the previous, current, and next asset category 1346 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1347 * @throws SystemException if a system exception occurred 1348 */ 1349 public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext( 1350 long categoryId, long parentCategoryId, java.lang.String name, 1351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1352 throws com.liferay.portal.kernel.exception.SystemException, 1353 com.liferay.portlet.asset.NoSuchCategoryException; 1354 1355 /** 1356 * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. 1357 * 1358 * @param parentCategoryId the parent category ID 1359 * @param name the name 1360 * @throws SystemException if a system exception occurred 1361 */ 1362 public void removeByP_N(long parentCategoryId, java.lang.String name) 1363 throws com.liferay.portal.kernel.exception.SystemException; 1364 1365 /** 1366 * Returns the number of asset categories where parentCategoryId = ? and name = ?. 1367 * 1368 * @param parentCategoryId the parent category ID 1369 * @param name the name 1370 * @return the number of matching asset categories 1371 * @throws SystemException if a system exception occurred 1372 */ 1373 public int countByP_N(long parentCategoryId, java.lang.String name) 1374 throws com.liferay.portal.kernel.exception.SystemException; 1375 1376 /** 1377 * Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1378 * 1379 * @param parentCategoryId the parent category ID 1380 * @param vocabularyId the vocabulary ID 1381 * @return the matching asset categories 1382 * @throws SystemException if a system exception occurred 1383 */ 1384 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1385 long parentCategoryId, long vocabularyId) 1386 throws com.liferay.portal.kernel.exception.SystemException; 1387 1388 /** 1389 * Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1390 * 1391 * <p> 1392 * 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.AssetCategoryModelImpl}. 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. 1393 * </p> 1394 * 1395 * @param parentCategoryId the parent category ID 1396 * @param vocabularyId the vocabulary ID 1397 * @param start the lower bound of the range of asset categories 1398 * @param end the upper bound of the range of asset categories (not inclusive) 1399 * @return the range of matching asset categories 1400 * @throws SystemException if a system exception occurred 1401 */ 1402 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1403 long parentCategoryId, long vocabularyId, int start, int end) 1404 throws com.liferay.portal.kernel.exception.SystemException; 1405 1406 /** 1407 * Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1408 * 1409 * <p> 1410 * 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.AssetCategoryModelImpl}. 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. 1411 * </p> 1412 * 1413 * @param parentCategoryId the parent category ID 1414 * @param vocabularyId the vocabulary ID 1415 * @param start the lower bound of the range of asset categories 1416 * @param end the upper bound of the range of asset categories (not inclusive) 1417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1418 * @return the ordered range of matching asset categories 1419 * @throws SystemException if a system exception occurred 1420 */ 1421 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1422 long parentCategoryId, long vocabularyId, int start, int end, 1423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1424 throws com.liferay.portal.kernel.exception.SystemException; 1425 1426 /** 1427 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1428 * 1429 * @param parentCategoryId the parent category ID 1430 * @param vocabularyId the vocabulary ID 1431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1432 * @return the first matching asset category 1433 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1434 * @throws SystemException if a system exception occurred 1435 */ 1436 public com.liferay.portlet.asset.model.AssetCategory findByP_V_First( 1437 long parentCategoryId, long vocabularyId, 1438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1439 throws com.liferay.portal.kernel.exception.SystemException, 1440 com.liferay.portlet.asset.NoSuchCategoryException; 1441 1442 /** 1443 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1444 * 1445 * @param parentCategoryId the parent category ID 1446 * @param vocabularyId the vocabulary ID 1447 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1448 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1449 * @throws SystemException if a system exception occurred 1450 */ 1451 public com.liferay.portlet.asset.model.AssetCategory fetchByP_V_First( 1452 long parentCategoryId, long vocabularyId, 1453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1454 throws com.liferay.portal.kernel.exception.SystemException; 1455 1456 /** 1457 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1458 * 1459 * @param parentCategoryId the parent category ID 1460 * @param vocabularyId the vocabulary ID 1461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1462 * @return the last matching asset category 1463 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1464 * @throws SystemException if a system exception occurred 1465 */ 1466 public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last( 1467 long parentCategoryId, long vocabularyId, 1468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1469 throws com.liferay.portal.kernel.exception.SystemException, 1470 com.liferay.portlet.asset.NoSuchCategoryException; 1471 1472 /** 1473 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1474 * 1475 * @param parentCategoryId the parent category ID 1476 * @param vocabularyId the vocabulary ID 1477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1478 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1479 * @throws SystemException if a system exception occurred 1480 */ 1481 public com.liferay.portlet.asset.model.AssetCategory fetchByP_V_Last( 1482 long parentCategoryId, long vocabularyId, 1483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1484 throws com.liferay.portal.kernel.exception.SystemException; 1485 1486 /** 1487 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1488 * 1489 * @param categoryId the primary key of the current asset category 1490 * @param parentCategoryId the parent category ID 1491 * @param vocabularyId the vocabulary ID 1492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1493 * @return the previous, current, and next asset category 1494 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1495 * @throws SystemException if a system exception occurred 1496 */ 1497 public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext( 1498 long categoryId, long parentCategoryId, long vocabularyId, 1499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1500 throws com.liferay.portal.kernel.exception.SystemException, 1501 com.liferay.portlet.asset.NoSuchCategoryException; 1502 1503 /** 1504 * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. 1505 * 1506 * @param parentCategoryId the parent category ID 1507 * @param vocabularyId the vocabulary ID 1508 * @throws SystemException if a system exception occurred 1509 */ 1510 public void removeByP_V(long parentCategoryId, long vocabularyId) 1511 throws com.liferay.portal.kernel.exception.SystemException; 1512 1513 /** 1514 * Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?. 1515 * 1516 * @param parentCategoryId the parent category ID 1517 * @param vocabularyId the vocabulary ID 1518 * @return the number of matching asset categories 1519 * @throws SystemException if a system exception occurred 1520 */ 1521 public int countByP_V(long parentCategoryId, long vocabularyId) 1522 throws com.liferay.portal.kernel.exception.SystemException; 1523 1524 /** 1525 * Returns all the asset categories where name = ? and vocabularyId = ?. 1526 * 1527 * @param name the name 1528 * @param vocabularyId the vocabulary ID 1529 * @return the matching asset categories 1530 * @throws SystemException if a system exception occurred 1531 */ 1532 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1533 java.lang.String name, long vocabularyId) 1534 throws com.liferay.portal.kernel.exception.SystemException; 1535 1536 /** 1537 * Returns a range of all the asset categories where name = ? and vocabularyId = ?. 1538 * 1539 * <p> 1540 * 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.AssetCategoryModelImpl}. 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. 1541 * </p> 1542 * 1543 * @param name the name 1544 * @param vocabularyId the vocabulary ID 1545 * @param start the lower bound of the range of asset categories 1546 * @param end the upper bound of the range of asset categories (not inclusive) 1547 * @return the range of matching asset categories 1548 * @throws SystemException if a system exception occurred 1549 */ 1550 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1551 java.lang.String name, long vocabularyId, int start, int end) 1552 throws com.liferay.portal.kernel.exception.SystemException; 1553 1554 /** 1555 * Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?. 1556 * 1557 * <p> 1558 * 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.AssetCategoryModelImpl}. 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. 1559 * </p> 1560 * 1561 * @param name the name 1562 * @param vocabularyId the vocabulary ID 1563 * @param start the lower bound of the range of asset categories 1564 * @param end the upper bound of the range of asset categories (not inclusive) 1565 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1566 * @return the ordered range of matching asset categories 1567 * @throws SystemException if a system exception occurred 1568 */ 1569 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1570 java.lang.String name, long vocabularyId, int start, int end, 1571 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1572 throws com.liferay.portal.kernel.exception.SystemException; 1573 1574 /** 1575 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1576 * 1577 * @param name the name 1578 * @param vocabularyId the vocabulary ID 1579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1580 * @return the first matching asset category 1581 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1582 * @throws SystemException if a system exception occurred 1583 */ 1584 public com.liferay.portlet.asset.model.AssetCategory findByN_V_First( 1585 java.lang.String name, long vocabularyId, 1586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1587 throws com.liferay.portal.kernel.exception.SystemException, 1588 com.liferay.portlet.asset.NoSuchCategoryException; 1589 1590 /** 1591 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1592 * 1593 * @param name the name 1594 * @param vocabularyId the vocabulary ID 1595 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1596 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1597 * @throws SystemException if a system exception occurred 1598 */ 1599 public com.liferay.portlet.asset.model.AssetCategory fetchByN_V_First( 1600 java.lang.String name, long vocabularyId, 1601 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1602 throws com.liferay.portal.kernel.exception.SystemException; 1603 1604 /** 1605 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1606 * 1607 * @param name the name 1608 * @param vocabularyId the vocabulary ID 1609 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1610 * @return the last matching asset category 1611 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1612 * @throws SystemException if a system exception occurred 1613 */ 1614 public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last( 1615 java.lang.String name, long vocabularyId, 1616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1617 throws com.liferay.portal.kernel.exception.SystemException, 1618 com.liferay.portlet.asset.NoSuchCategoryException; 1619 1620 /** 1621 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1622 * 1623 * @param name the name 1624 * @param vocabularyId the vocabulary ID 1625 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1626 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1627 * @throws SystemException if a system exception occurred 1628 */ 1629 public com.liferay.portlet.asset.model.AssetCategory fetchByN_V_Last( 1630 java.lang.String name, long vocabularyId, 1631 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1632 throws com.liferay.portal.kernel.exception.SystemException; 1633 1634 /** 1635 * Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. 1636 * 1637 * @param categoryId the primary key of the current asset category 1638 * @param name the name 1639 * @param vocabularyId the vocabulary ID 1640 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1641 * @return the previous, current, and next asset category 1642 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1643 * @throws SystemException if a system exception occurred 1644 */ 1645 public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext( 1646 long categoryId, java.lang.String name, long vocabularyId, 1647 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1648 throws com.liferay.portal.kernel.exception.SystemException, 1649 com.liferay.portlet.asset.NoSuchCategoryException; 1650 1651 /** 1652 * Removes all the asset categories where name = ? and vocabularyId = ? from the database. 1653 * 1654 * @param name the name 1655 * @param vocabularyId the vocabulary ID 1656 * @throws SystemException if a system exception occurred 1657 */ 1658 public void removeByN_V(java.lang.String name, long vocabularyId) 1659 throws com.liferay.portal.kernel.exception.SystemException; 1660 1661 /** 1662 * Returns the number of asset categories where name = ? and vocabularyId = ?. 1663 * 1664 * @param name the name 1665 * @param vocabularyId the vocabulary ID 1666 * @return the number of matching asset categories 1667 * @throws SystemException if a system exception occurred 1668 */ 1669 public int countByN_V(java.lang.String name, long vocabularyId) 1670 throws com.liferay.portal.kernel.exception.SystemException; 1671 1672 /** 1673 * Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 1674 * 1675 * @param groupId the group ID 1676 * @param name the name 1677 * @param vocabularyId the vocabulary ID 1678 * @return the matching asset categories 1679 * @throws SystemException if a system exception occurred 1680 */ 1681 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1682 long groupId, java.lang.String name, long vocabularyId) 1683 throws com.liferay.portal.kernel.exception.SystemException; 1684 1685 /** 1686 * Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 1687 * 1688 * <p> 1689 * 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.AssetCategoryModelImpl}. 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. 1690 * </p> 1691 * 1692 * @param groupId the group ID 1693 * @param name the name 1694 * @param vocabularyId the vocabulary ID 1695 * @param start the lower bound of the range of asset categories 1696 * @param end the upper bound of the range of asset categories (not inclusive) 1697 * @return the range of matching asset categories 1698 * @throws SystemException if a system exception occurred 1699 */ 1700 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1701 long groupId, java.lang.String name, long vocabularyId, int start, 1702 int end) throws com.liferay.portal.kernel.exception.SystemException; 1703 1704 /** 1705 * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 1706 * 1707 * <p> 1708 * 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.AssetCategoryModelImpl}. 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. 1709 * </p> 1710 * 1711 * @param groupId the group ID 1712 * @param name the name 1713 * @param vocabularyId the vocabulary ID 1714 * @param start the lower bound of the range of asset categories 1715 * @param end the upper bound of the range of asset categories (not inclusive) 1716 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1717 * @return the ordered range of matching asset categories 1718 * @throws SystemException if a system exception occurred 1719 */ 1720 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1721 long groupId, java.lang.String name, long vocabularyId, int start, 1722 int end, 1723 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1724 throws com.liferay.portal.kernel.exception.SystemException; 1725 1726 /** 1727 * Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 1728 * 1729 * @param groupId the group ID 1730 * @param name the name 1731 * @param vocabularyId the vocabulary ID 1732 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1733 * @return the first matching asset category 1734 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1735 * @throws SystemException if a system exception occurred 1736 */ 1737 public com.liferay.portlet.asset.model.AssetCategory findByG_LikeN_V_First( 1738 long groupId, java.lang.String name, long vocabularyId, 1739 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1740 throws com.liferay.portal.kernel.exception.SystemException, 1741 com.liferay.portlet.asset.NoSuchCategoryException; 1742 1743 /** 1744 * Returns the first asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 1745 * 1746 * @param groupId the group ID 1747 * @param name the name 1748 * @param vocabularyId the vocabulary ID 1749 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1750 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1751 * @throws SystemException if a system exception occurred 1752 */ 1753 public com.liferay.portlet.asset.model.AssetCategory fetchByG_LikeN_V_First( 1754 long groupId, java.lang.String name, long vocabularyId, 1755 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1756 throws com.liferay.portal.kernel.exception.SystemException; 1757 1758 /** 1759 * Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 1760 * 1761 * @param groupId the group ID 1762 * @param name the name 1763 * @param vocabularyId the vocabulary ID 1764 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1765 * @return the last matching asset category 1766 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1767 * @throws SystemException if a system exception occurred 1768 */ 1769 public com.liferay.portlet.asset.model.AssetCategory findByG_LikeN_V_Last( 1770 long groupId, java.lang.String name, long vocabularyId, 1771 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1772 throws com.liferay.portal.kernel.exception.SystemException, 1773 com.liferay.portlet.asset.NoSuchCategoryException; 1774 1775 /** 1776 * Returns the last asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 1777 * 1778 * @param groupId the group ID 1779 * @param name the name 1780 * @param vocabularyId the vocabulary ID 1781 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1782 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1783 * @throws SystemException if a system exception occurred 1784 */ 1785 public com.liferay.portlet.asset.model.AssetCategory fetchByG_LikeN_V_Last( 1786 long groupId, java.lang.String name, long vocabularyId, 1787 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1788 throws com.liferay.portal.kernel.exception.SystemException; 1789 1790 /** 1791 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and name LIKE ? and vocabularyId = ?. 1792 * 1793 * @param categoryId the primary key of the current asset category 1794 * @param groupId the group ID 1795 * @param name the name 1796 * @param vocabularyId the vocabulary ID 1797 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1798 * @return the previous, current, and next asset category 1799 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1800 * @throws SystemException if a system exception occurred 1801 */ 1802 public com.liferay.portlet.asset.model.AssetCategory[] findByG_LikeN_V_PrevAndNext( 1803 long categoryId, long groupId, java.lang.String name, 1804 long vocabularyId, 1805 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1806 throws com.liferay.portal.kernel.exception.SystemException, 1807 com.liferay.portlet.asset.NoSuchCategoryException; 1808 1809 /** 1810 * Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 1811 * 1812 * @param groupId the group ID 1813 * @param name the name 1814 * @param vocabularyId the vocabulary ID 1815 * @return the matching asset categories that the user has permission to view 1816 * @throws SystemException if a system exception occurred 1817 */ 1818 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 1819 long groupId, java.lang.String name, long vocabularyId) 1820 throws com.liferay.portal.kernel.exception.SystemException; 1821 1822 /** 1823 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 1824 * 1825 * <p> 1826 * 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.AssetCategoryModelImpl}. 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. 1827 * </p> 1828 * 1829 * @param groupId the group ID 1830 * @param name the name 1831 * @param vocabularyId the vocabulary ID 1832 * @param start the lower bound of the range of asset categories 1833 * @param end the upper bound of the range of asset categories (not inclusive) 1834 * @return the range of matching asset categories that the user has permission to view 1835 * @throws SystemException if a system exception occurred 1836 */ 1837 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 1838 long groupId, java.lang.String name, long vocabularyId, int start, 1839 int end) throws com.liferay.portal.kernel.exception.SystemException; 1840 1841 /** 1842 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and name LIKE ? and vocabularyId = ?. 1843 * 1844 * <p> 1845 * 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.AssetCategoryModelImpl}. 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. 1846 * </p> 1847 * 1848 * @param groupId the group ID 1849 * @param name the name 1850 * @param vocabularyId the vocabulary ID 1851 * @param start the lower bound of the range of asset categories 1852 * @param end the upper bound of the range of asset categories (not inclusive) 1853 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1854 * @return the ordered range of matching asset categories that the user has permission to view 1855 * @throws SystemException if a system exception occurred 1856 */ 1857 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 1858 long groupId, java.lang.String name, long vocabularyId, int start, 1859 int end, 1860 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1861 throws com.liferay.portal.kernel.exception.SystemException; 1862 1863 /** 1864 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 1865 * 1866 * @param categoryId the primary key of the current asset category 1867 * @param groupId the group ID 1868 * @param name the name 1869 * @param vocabularyId the vocabulary ID 1870 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1871 * @return the previous, current, and next asset category 1872 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1873 * @throws SystemException if a system exception occurred 1874 */ 1875 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_LikeN_V_PrevAndNext( 1876 long categoryId, long groupId, java.lang.String name, 1877 long vocabularyId, 1878 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1879 throws com.liferay.portal.kernel.exception.SystemException, 1880 com.liferay.portlet.asset.NoSuchCategoryException; 1881 1882 /** 1883 * Returns all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 1884 * 1885 * @param groupId the group ID 1886 * @param name the name 1887 * @param vocabularyIds the vocabulary IDs 1888 * @return the matching asset categories that the user has permission to view 1889 * @throws SystemException if a system exception occurred 1890 */ 1891 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 1892 long groupId, java.lang.String name, long[] vocabularyIds) 1893 throws com.liferay.portal.kernel.exception.SystemException; 1894 1895 /** 1896 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 1897 * 1898 * <p> 1899 * 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.AssetCategoryModelImpl}. 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. 1900 * </p> 1901 * 1902 * @param groupId the group ID 1903 * @param name the name 1904 * @param vocabularyIds the vocabulary IDs 1905 * @param start the lower bound of the range of asset categories 1906 * @param end the upper bound of the range of asset categories (not inclusive) 1907 * @return the range of matching asset categories that the user has permission to view 1908 * @throws SystemException if a system exception occurred 1909 */ 1910 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 1911 long groupId, java.lang.String name, long[] vocabularyIds, int start, 1912 int end) throws com.liferay.portal.kernel.exception.SystemException; 1913 1914 /** 1915 * Returns an ordered range of all the asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 1916 * 1917 * <p> 1918 * 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.AssetCategoryModelImpl}. 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. 1919 * </p> 1920 * 1921 * @param groupId the group ID 1922 * @param name the name 1923 * @param vocabularyIds the vocabulary IDs 1924 * @param start the lower bound of the range of asset categories 1925 * @param end the upper bound of the range of asset categories (not inclusive) 1926 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1927 * @return the ordered range of matching asset categories that the user has permission to view 1928 * @throws SystemException if a system exception occurred 1929 */ 1930 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_LikeN_V( 1931 long groupId, java.lang.String name, long[] vocabularyIds, int start, 1932 int end, 1933 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1934 throws com.liferay.portal.kernel.exception.SystemException; 1935 1936 /** 1937 * Returns all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 1938 * 1939 * <p> 1940 * 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.AssetCategoryModelImpl}. 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. 1941 * </p> 1942 * 1943 * @param groupId the group ID 1944 * @param name the name 1945 * @param vocabularyIds the vocabulary IDs 1946 * @return the matching asset categories 1947 * @throws SystemException if a system exception occurred 1948 */ 1949 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1950 long groupId, java.lang.String name, long[] vocabularyIds) 1951 throws com.liferay.portal.kernel.exception.SystemException; 1952 1953 /** 1954 * Returns a range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 1955 * 1956 * <p> 1957 * 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.AssetCategoryModelImpl}. 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. 1958 * </p> 1959 * 1960 * @param groupId the group ID 1961 * @param name the name 1962 * @param vocabularyIds the vocabulary IDs 1963 * @param start the lower bound of the range of asset categories 1964 * @param end the upper bound of the range of asset categories (not inclusive) 1965 * @return the range of matching asset categories 1966 * @throws SystemException if a system exception occurred 1967 */ 1968 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1969 long groupId, java.lang.String name, long[] vocabularyIds, int start, 1970 int end) throws com.liferay.portal.kernel.exception.SystemException; 1971 1972 /** 1973 * Returns an ordered range of all the asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 1974 * 1975 * <p> 1976 * 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.AssetCategoryModelImpl}. 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. 1977 * </p> 1978 * 1979 * @param groupId the group ID 1980 * @param name the name 1981 * @param vocabularyIds the vocabulary IDs 1982 * @param start the lower bound of the range of asset categories 1983 * @param end the upper bound of the range of asset categories (not inclusive) 1984 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1985 * @return the ordered range of matching asset categories 1986 * @throws SystemException if a system exception occurred 1987 */ 1988 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_LikeN_V( 1989 long groupId, java.lang.String name, long[] vocabularyIds, int start, 1990 int end, 1991 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1992 throws com.liferay.portal.kernel.exception.SystemException; 1993 1994 /** 1995 * Removes all the asset categories where groupId = ? and name LIKE ? and vocabularyId = ? from the database. 1996 * 1997 * @param groupId the group ID 1998 * @param name the name 1999 * @param vocabularyId the vocabulary ID 2000 * @throws SystemException if a system exception occurred 2001 */ 2002 public void removeByG_LikeN_V(long groupId, java.lang.String name, 2003 long vocabularyId) 2004 throws com.liferay.portal.kernel.exception.SystemException; 2005 2006 /** 2007 * Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = ?. 2008 * 2009 * @param groupId the group ID 2010 * @param name the name 2011 * @param vocabularyId the vocabulary ID 2012 * @return the number of matching asset categories 2013 * @throws SystemException if a system exception occurred 2014 */ 2015 public int countByG_LikeN_V(long groupId, java.lang.String name, 2016 long vocabularyId) 2017 throws com.liferay.portal.kernel.exception.SystemException; 2018 2019 /** 2020 * Returns the number of asset categories where groupId = ? and name LIKE ? and vocabularyId = any ?. 2021 * 2022 * @param groupId the group ID 2023 * @param name the name 2024 * @param vocabularyIds the vocabulary IDs 2025 * @return the number of matching asset categories 2026 * @throws SystemException if a system exception occurred 2027 */ 2028 public int countByG_LikeN_V(long groupId, java.lang.String name, 2029 long[] vocabularyIds) 2030 throws com.liferay.portal.kernel.exception.SystemException; 2031 2032 /** 2033 * Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = ?. 2034 * 2035 * @param groupId the group ID 2036 * @param name the name 2037 * @param vocabularyId the vocabulary ID 2038 * @return the number of matching asset categories that the user has permission to view 2039 * @throws SystemException if a system exception occurred 2040 */ 2041 public int filterCountByG_LikeN_V(long groupId, java.lang.String name, 2042 long vocabularyId) 2043 throws com.liferay.portal.kernel.exception.SystemException; 2044 2045 /** 2046 * Returns the number of asset categories that the user has permission to view where groupId = ? and name LIKE ? and vocabularyId = any ?. 2047 * 2048 * @param groupId the group ID 2049 * @param name the name 2050 * @param vocabularyIds the vocabulary IDs 2051 * @return the number of matching asset categories that the user has permission to view 2052 * @throws SystemException if a system exception occurred 2053 */ 2054 public int filterCountByG_LikeN_V(long groupId, java.lang.String name, 2055 long[] vocabularyIds) 2056 throws com.liferay.portal.kernel.exception.SystemException; 2057 2058 /** 2059 * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 2060 * 2061 * @param parentCategoryId the parent category ID 2062 * @param name the name 2063 * @param vocabularyId the vocabulary ID 2064 * @return the matching asset category 2065 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2066 * @throws SystemException if a system exception occurred 2067 */ 2068 public com.liferay.portlet.asset.model.AssetCategory findByP_N_V( 2069 long parentCategoryId, java.lang.String name, long vocabularyId) 2070 throws com.liferay.portal.kernel.exception.SystemException, 2071 com.liferay.portlet.asset.NoSuchCategoryException; 2072 2073 /** 2074 * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 2075 * 2076 * @param parentCategoryId the parent category ID 2077 * @param name the name 2078 * @param vocabularyId the vocabulary ID 2079 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 2080 * @throws SystemException if a system exception occurred 2081 */ 2082 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 2083 long parentCategoryId, java.lang.String name, long vocabularyId) 2084 throws com.liferay.portal.kernel.exception.SystemException; 2085 2086 /** 2087 * Returns the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 2088 * 2089 * @param parentCategoryId the parent category ID 2090 * @param name the name 2091 * @param vocabularyId the vocabulary ID 2092 * @param retrieveFromCache whether to use the finder cache 2093 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 2094 * @throws SystemException if a system exception occurred 2095 */ 2096 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 2097 long parentCategoryId, java.lang.String name, long vocabularyId, 2098 boolean retrieveFromCache) 2099 throws com.liferay.portal.kernel.exception.SystemException; 2100 2101 /** 2102 * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 2103 * 2104 * @param parentCategoryId the parent category ID 2105 * @param name the name 2106 * @param vocabularyId the vocabulary ID 2107 * @return the asset category that was removed 2108 * @throws SystemException if a system exception occurred 2109 */ 2110 public com.liferay.portlet.asset.model.AssetCategory removeByP_N_V( 2111 long parentCategoryId, java.lang.String name, long vocabularyId) 2112 throws com.liferay.portal.kernel.exception.SystemException, 2113 com.liferay.portlet.asset.NoSuchCategoryException; 2114 2115 /** 2116 * Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. 2117 * 2118 * @param parentCategoryId the parent category ID 2119 * @param name the name 2120 * @param vocabularyId the vocabulary ID 2121 * @return the number of matching asset categories 2122 * @throws SystemException if a system exception occurred 2123 */ 2124 public int countByP_N_V(long parentCategoryId, java.lang.String name, 2125 long vocabularyId) 2126 throws com.liferay.portal.kernel.exception.SystemException; 2127 2128 /** 2129 * Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2130 * 2131 * @param groupId the group ID 2132 * @param parentCategoryId the parent category ID 2133 * @param name the name 2134 * @param vocabularyId the vocabulary ID 2135 * @return the matching asset categories 2136 * @throws SystemException if a system exception occurred 2137 */ 2138 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N_V( 2139 long groupId, long parentCategoryId, java.lang.String name, 2140 long vocabularyId) 2141 throws com.liferay.portal.kernel.exception.SystemException; 2142 2143 /** 2144 * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2145 * 2146 * <p> 2147 * 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.AssetCategoryModelImpl}. 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. 2148 * </p> 2149 * 2150 * @param groupId the group ID 2151 * @param parentCategoryId the parent category ID 2152 * @param name the name 2153 * @param vocabularyId the vocabulary ID 2154 * @param start the lower bound of the range of asset categories 2155 * @param end the upper bound of the range of asset categories (not inclusive) 2156 * @return the range of matching asset categories 2157 * @throws SystemException if a system exception occurred 2158 */ 2159 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N_V( 2160 long groupId, long parentCategoryId, java.lang.String name, 2161 long vocabularyId, int start, int end) 2162 throws com.liferay.portal.kernel.exception.SystemException; 2163 2164 /** 2165 * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2166 * 2167 * <p> 2168 * 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.AssetCategoryModelImpl}. 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. 2169 * </p> 2170 * 2171 * @param groupId the group ID 2172 * @param parentCategoryId the parent category ID 2173 * @param name the name 2174 * @param vocabularyId the vocabulary ID 2175 * @param start the lower bound of the range of asset categories 2176 * @param end the upper bound of the range of asset categories (not inclusive) 2177 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2178 * @return the ordered range of matching asset categories 2179 * @throws SystemException if a system exception occurred 2180 */ 2181 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N_V( 2182 long groupId, long parentCategoryId, java.lang.String name, 2183 long vocabularyId, int start, int end, 2184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2185 throws com.liferay.portal.kernel.exception.SystemException; 2186 2187 /** 2188 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2189 * 2190 * @param groupId the group ID 2191 * @param parentCategoryId the parent category ID 2192 * @param name the name 2193 * @param vocabularyId the vocabulary ID 2194 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2195 * @return the first matching asset category 2196 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2197 * @throws SystemException if a system exception occurred 2198 */ 2199 public com.liferay.portlet.asset.model.AssetCategory findByG_P_N_V_First( 2200 long groupId, long parentCategoryId, java.lang.String name, 2201 long vocabularyId, 2202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2203 throws com.liferay.portal.kernel.exception.SystemException, 2204 com.liferay.portlet.asset.NoSuchCategoryException; 2205 2206 /** 2207 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2208 * 2209 * @param groupId the group ID 2210 * @param parentCategoryId the parent category ID 2211 * @param name the name 2212 * @param vocabularyId the vocabulary ID 2213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2214 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 2215 * @throws SystemException if a system exception occurred 2216 */ 2217 public com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_V_First( 2218 long groupId, long parentCategoryId, java.lang.String name, 2219 long vocabularyId, 2220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2221 throws com.liferay.portal.kernel.exception.SystemException; 2222 2223 /** 2224 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2225 * 2226 * @param groupId the group ID 2227 * @param parentCategoryId the parent category ID 2228 * @param name the name 2229 * @param vocabularyId the vocabulary ID 2230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2231 * @return the last matching asset category 2232 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 2233 * @throws SystemException if a system exception occurred 2234 */ 2235 public com.liferay.portlet.asset.model.AssetCategory findByG_P_N_V_Last( 2236 long groupId, long parentCategoryId, java.lang.String name, 2237 long vocabularyId, 2238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2239 throws com.liferay.portal.kernel.exception.SystemException, 2240 com.liferay.portlet.asset.NoSuchCategoryException; 2241 2242 /** 2243 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2244 * 2245 * @param groupId the group ID 2246 * @param parentCategoryId the parent category ID 2247 * @param name the name 2248 * @param vocabularyId the vocabulary ID 2249 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2250 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 2251 * @throws SystemException if a system exception occurred 2252 */ 2253 public com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_V_Last( 2254 long groupId, long parentCategoryId, java.lang.String name, 2255 long vocabularyId, 2256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2257 throws com.liferay.portal.kernel.exception.SystemException; 2258 2259 /** 2260 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2261 * 2262 * @param categoryId the primary key of the current asset category 2263 * @param groupId the group ID 2264 * @param parentCategoryId the parent category ID 2265 * @param name the name 2266 * @param vocabularyId the vocabulary ID 2267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2268 * @return the previous, current, and next asset category 2269 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2270 * @throws SystemException if a system exception occurred 2271 */ 2272 public com.liferay.portlet.asset.model.AssetCategory[] findByG_P_N_V_PrevAndNext( 2273 long categoryId, long groupId, long parentCategoryId, 2274 java.lang.String name, long vocabularyId, 2275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2276 throws com.liferay.portal.kernel.exception.SystemException, 2277 com.liferay.portlet.asset.NoSuchCategoryException; 2278 2279 /** 2280 * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2281 * 2282 * @param groupId the group ID 2283 * @param parentCategoryId the parent category ID 2284 * @param name the name 2285 * @param vocabularyId the vocabulary ID 2286 * @return the matching asset categories that the user has permission to view 2287 * @throws SystemException if a system exception occurred 2288 */ 2289 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N_V( 2290 long groupId, long parentCategoryId, java.lang.String name, 2291 long vocabularyId) 2292 throws com.liferay.portal.kernel.exception.SystemException; 2293 2294 /** 2295 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2296 * 2297 * <p> 2298 * 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.AssetCategoryModelImpl}. 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. 2299 * </p> 2300 * 2301 * @param groupId the group ID 2302 * @param parentCategoryId the parent category ID 2303 * @param name the name 2304 * @param vocabularyId the vocabulary ID 2305 * @param start the lower bound of the range of asset categories 2306 * @param end the upper bound of the range of asset categories (not inclusive) 2307 * @return the range of matching asset categories that the user has permission to view 2308 * @throws SystemException if a system exception occurred 2309 */ 2310 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N_V( 2311 long groupId, long parentCategoryId, java.lang.String name, 2312 long vocabularyId, int start, int end) 2313 throws com.liferay.portal.kernel.exception.SystemException; 2314 2315 /** 2316 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2317 * 2318 * <p> 2319 * 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.AssetCategoryModelImpl}. 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. 2320 * </p> 2321 * 2322 * @param groupId the group ID 2323 * @param parentCategoryId the parent category ID 2324 * @param name the name 2325 * @param vocabularyId the vocabulary ID 2326 * @param start the lower bound of the range of asset categories 2327 * @param end the upper bound of the range of asset categories (not inclusive) 2328 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2329 * @return the ordered range of matching asset categories that the user has permission to view 2330 * @throws SystemException if a system exception occurred 2331 */ 2332 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N_V( 2333 long groupId, long parentCategoryId, java.lang.String name, 2334 long vocabularyId, int start, int end, 2335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2336 throws com.liferay.portal.kernel.exception.SystemException; 2337 2338 /** 2339 * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2340 * 2341 * @param categoryId the primary key of the current asset category 2342 * @param groupId the group ID 2343 * @param parentCategoryId the parent category ID 2344 * @param name the name 2345 * @param vocabularyId the vocabulary ID 2346 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2347 * @return the previous, current, and next asset category 2348 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2349 * @throws SystemException if a system exception occurred 2350 */ 2351 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_P_N_V_PrevAndNext( 2352 long categoryId, long groupId, long parentCategoryId, 2353 java.lang.String name, long vocabularyId, 2354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2355 throws com.liferay.portal.kernel.exception.SystemException, 2356 com.liferay.portlet.asset.NoSuchCategoryException; 2357 2358 /** 2359 * Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 2360 * 2361 * @param groupId the group ID 2362 * @param parentCategoryId the parent category ID 2363 * @param name the name 2364 * @param vocabularyId the vocabulary ID 2365 * @throws SystemException if a system exception occurred 2366 */ 2367 public void removeByG_P_N_V(long groupId, long parentCategoryId, 2368 java.lang.String name, long vocabularyId) 2369 throws com.liferay.portal.kernel.exception.SystemException; 2370 2371 /** 2372 * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2373 * 2374 * @param groupId the group ID 2375 * @param parentCategoryId the parent category ID 2376 * @param name the name 2377 * @param vocabularyId the vocabulary ID 2378 * @return the number of matching asset categories 2379 * @throws SystemException if a system exception occurred 2380 */ 2381 public int countByG_P_N_V(long groupId, long parentCategoryId, 2382 java.lang.String name, long vocabularyId) 2383 throws com.liferay.portal.kernel.exception.SystemException; 2384 2385 /** 2386 * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ? and vocabularyId = ?. 2387 * 2388 * @param groupId the group ID 2389 * @param parentCategoryId the parent category ID 2390 * @param name the name 2391 * @param vocabularyId the vocabulary ID 2392 * @return the number of matching asset categories that the user has permission to view 2393 * @throws SystemException if a system exception occurred 2394 */ 2395 public int filterCountByG_P_N_V(long groupId, long parentCategoryId, 2396 java.lang.String name, long vocabularyId) 2397 throws com.liferay.portal.kernel.exception.SystemException; 2398 2399 /** 2400 * Caches the asset category in the entity cache if it is enabled. 2401 * 2402 * @param assetCategory the asset category 2403 */ 2404 public void cacheResult( 2405 com.liferay.portlet.asset.model.AssetCategory assetCategory); 2406 2407 /** 2408 * Caches the asset categories in the entity cache if it is enabled. 2409 * 2410 * @param assetCategories the asset categories 2411 */ 2412 public void cacheResult( 2413 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories); 2414 2415 /** 2416 * Creates a new asset category with the primary key. Does not add the asset category to the database. 2417 * 2418 * @param categoryId the primary key for the new asset category 2419 * @return the new asset category 2420 */ 2421 public com.liferay.portlet.asset.model.AssetCategory create(long categoryId); 2422 2423 /** 2424 * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners. 2425 * 2426 * @param categoryId the primary key of the asset category 2427 * @return the asset category that was removed 2428 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2429 * @throws SystemException if a system exception occurred 2430 */ 2431 public com.liferay.portlet.asset.model.AssetCategory remove(long categoryId) 2432 throws com.liferay.portal.kernel.exception.SystemException, 2433 com.liferay.portlet.asset.NoSuchCategoryException; 2434 2435 public com.liferay.portlet.asset.model.AssetCategory updateImpl( 2436 com.liferay.portlet.asset.model.AssetCategory assetCategory) 2437 throws com.liferay.portal.kernel.exception.SystemException; 2438 2439 /** 2440 * Returns the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 2441 * 2442 * @param categoryId the primary key of the asset category 2443 * @return the asset category 2444 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 2445 * @throws SystemException if a system exception occurred 2446 */ 2447 public com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey( 2448 long categoryId) 2449 throws com.liferay.portal.kernel.exception.SystemException, 2450 com.liferay.portlet.asset.NoSuchCategoryException; 2451 2452 /** 2453 * Returns the asset category with the primary key or returns <code>null</code> if it could not be found. 2454 * 2455 * @param categoryId the primary key of the asset category 2456 * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found 2457 * @throws SystemException if a system exception occurred 2458 */ 2459 public com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey( 2460 long categoryId) 2461 throws com.liferay.portal.kernel.exception.SystemException; 2462 2463 /** 2464 * Returns all the asset categories. 2465 * 2466 * @return the asset categories 2467 * @throws SystemException if a system exception occurred 2468 */ 2469 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll() 2470 throws com.liferay.portal.kernel.exception.SystemException; 2471 2472 /** 2473 * Returns a range of all the asset categories. 2474 * 2475 * <p> 2476 * 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.AssetCategoryModelImpl}. 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. 2477 * </p> 2478 * 2479 * @param start the lower bound of the range of asset categories 2480 * @param end the upper bound of the range of asset categories (not inclusive) 2481 * @return the range of asset categories 2482 * @throws SystemException if a system exception occurred 2483 */ 2484 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 2485 int start, int end) 2486 throws com.liferay.portal.kernel.exception.SystemException; 2487 2488 /** 2489 * Returns an ordered range of all the asset categories. 2490 * 2491 * <p> 2492 * 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.AssetCategoryModelImpl}. 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. 2493 * </p> 2494 * 2495 * @param start the lower bound of the range of asset categories 2496 * @param end the upper bound of the range of asset categories (not inclusive) 2497 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2498 * @return the ordered range of asset categories 2499 * @throws SystemException if a system exception occurred 2500 */ 2501 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 2502 int start, int end, 2503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2504 throws com.liferay.portal.kernel.exception.SystemException; 2505 2506 /** 2507 * Removes all the asset categories from the database. 2508 * 2509 * @throws SystemException if a system exception occurred 2510 */ 2511 public void removeAll() 2512 throws com.liferay.portal.kernel.exception.SystemException; 2513 2514 /** 2515 * Returns the number of asset categories. 2516 * 2517 * @return the number of asset categories 2518 * @throws SystemException if a system exception occurred 2519 */ 2520 public int countAll() 2521 throws com.liferay.portal.kernel.exception.SystemException; 2522 2523 /** 2524 * Returns all the asset entries associated with the asset category. 2525 * 2526 * @param pk the primary key of the asset category 2527 * @return the asset entries associated with the asset category 2528 * @throws SystemException if a system exception occurred 2529 */ 2530 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 2531 long pk) throws com.liferay.portal.kernel.exception.SystemException; 2532 2533 /** 2534 * Returns a range of all the asset entries associated with the asset category. 2535 * 2536 * <p> 2537 * 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.AssetCategoryModelImpl}. 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. 2538 * </p> 2539 * 2540 * @param pk the primary key of the asset category 2541 * @param start the lower bound of the range of asset categories 2542 * @param end the upper bound of the range of asset categories (not inclusive) 2543 * @return the range of asset entries associated with the asset category 2544 * @throws SystemException if a system exception occurred 2545 */ 2546 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 2547 long pk, int start, int end) 2548 throws com.liferay.portal.kernel.exception.SystemException; 2549 2550 /** 2551 * Returns an ordered range of all the asset entries associated with the asset category. 2552 * 2553 * <p> 2554 * 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.AssetCategoryModelImpl}. 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. 2555 * </p> 2556 * 2557 * @param pk the primary key of the asset category 2558 * @param start the lower bound of the range of asset categories 2559 * @param end the upper bound of the range of asset categories (not inclusive) 2560 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2561 * @return the ordered range of asset entries associated with the asset category 2562 * @throws SystemException if a system exception occurred 2563 */ 2564 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 2565 long pk, int start, int end, 2566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2567 throws com.liferay.portal.kernel.exception.SystemException; 2568 2569 /** 2570 * Returns the number of asset entries associated with the asset category. 2571 * 2572 * @param pk the primary key of the asset category 2573 * @return the number of asset entries associated with the asset category 2574 * @throws SystemException if a system exception occurred 2575 */ 2576 public int getAssetEntriesSize(long pk) 2577 throws com.liferay.portal.kernel.exception.SystemException; 2578 2579 /** 2580 * Returns <code>true</code> if the asset entry is associated with the asset category. 2581 * 2582 * @param pk the primary key of the asset category 2583 * @param assetEntryPK the primary key of the asset entry 2584 * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise 2585 * @throws SystemException if a system exception occurred 2586 */ 2587 public boolean containsAssetEntry(long pk, long assetEntryPK) 2588 throws com.liferay.portal.kernel.exception.SystemException; 2589 2590 /** 2591 * Returns <code>true</code> if the asset category has any asset entries associated with it. 2592 * 2593 * @param pk the primary key of the asset category to check for associations with asset entries 2594 * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise 2595 * @throws SystemException if a system exception occurred 2596 */ 2597 public boolean containsAssetEntries(long pk) 2598 throws com.liferay.portal.kernel.exception.SystemException; 2599 2600 /** 2601 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2602 * 2603 * @param pk the primary key of the asset category 2604 * @param assetEntryPK the primary key of the asset entry 2605 * @throws SystemException if a system exception occurred 2606 */ 2607 public void addAssetEntry(long pk, long assetEntryPK) 2608 throws com.liferay.portal.kernel.exception.SystemException; 2609 2610 /** 2611 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2612 * 2613 * @param pk the primary key of the asset category 2614 * @param assetEntry the asset entry 2615 * @throws SystemException if a system exception occurred 2616 */ 2617 public void addAssetEntry(long pk, 2618 com.liferay.portlet.asset.model.AssetEntry assetEntry) 2619 throws com.liferay.portal.kernel.exception.SystemException; 2620 2621 /** 2622 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2623 * 2624 * @param pk the primary key of the asset category 2625 * @param assetEntryPKs the primary keys of the asset entries 2626 * @throws SystemException if a system exception occurred 2627 */ 2628 public void addAssetEntries(long pk, long[] assetEntryPKs) 2629 throws com.liferay.portal.kernel.exception.SystemException; 2630 2631 /** 2632 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2633 * 2634 * @param pk the primary key of the asset category 2635 * @param assetEntries the asset entries 2636 * @throws SystemException if a system exception occurred 2637 */ 2638 public void addAssetEntries(long pk, 2639 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2640 throws com.liferay.portal.kernel.exception.SystemException; 2641 2642 /** 2643 * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2644 * 2645 * @param pk the primary key of the asset category to clear the associated asset entries from 2646 * @throws SystemException if a system exception occurred 2647 */ 2648 public void clearAssetEntries(long pk) 2649 throws com.liferay.portal.kernel.exception.SystemException; 2650 2651 /** 2652 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2653 * 2654 * @param pk the primary key of the asset category 2655 * @param assetEntryPK the primary key of the asset entry 2656 * @throws SystemException if a system exception occurred 2657 */ 2658 public void removeAssetEntry(long pk, long assetEntryPK) 2659 throws com.liferay.portal.kernel.exception.SystemException; 2660 2661 /** 2662 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2663 * 2664 * @param pk the primary key of the asset category 2665 * @param assetEntry the asset entry 2666 * @throws SystemException if a system exception occurred 2667 */ 2668 public void removeAssetEntry(long pk, 2669 com.liferay.portlet.asset.model.AssetEntry assetEntry) 2670 throws com.liferay.portal.kernel.exception.SystemException; 2671 2672 /** 2673 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2674 * 2675 * @param pk the primary key of the asset category 2676 * @param assetEntryPKs the primary keys of the asset entries 2677 * @throws SystemException if a system exception occurred 2678 */ 2679 public void removeAssetEntries(long pk, long[] assetEntryPKs) 2680 throws com.liferay.portal.kernel.exception.SystemException; 2681 2682 /** 2683 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2684 * 2685 * @param pk the primary key of the asset category 2686 * @param assetEntries the asset entries 2687 * @throws SystemException if a system exception occurred 2688 */ 2689 public void removeAssetEntries(long pk, 2690 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2691 throws com.liferay.portal.kernel.exception.SystemException; 2692 2693 /** 2694 * Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2695 * 2696 * @param pk the primary key of the asset category 2697 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category 2698 * @throws SystemException if a system exception occurred 2699 */ 2700 public void setAssetEntries(long pk, long[] assetEntryPKs) 2701 throws com.liferay.portal.kernel.exception.SystemException; 2702 2703 /** 2704 * Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2705 * 2706 * @param pk the primary key of the asset category 2707 * @param assetEntries the asset entries to be associated with the asset category 2708 * @throws SystemException if a system exception occurred 2709 */ 2710 public void setAssetEntries(long pk, 2711 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2712 throws com.liferay.portal.kernel.exception.SystemException; 2713 2714 /** 2715 * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. 2716 * 2717 * <p> 2718 * Only call this method if the tree has become stale through operations other than normal CRUD. Under normal circumstances the tree is automatically rebuilt whenver necessary. 2719 * </p> 2720 * 2721 * @param groupId the ID of the scope 2722 * @param force whether to force the rebuild even if the tree is not stale 2723 */ 2724 public void rebuildTree(long groupId, boolean force) 2725 throws com.liferay.portal.kernel.exception.SystemException; 2726 2727 public void setRebuildTreeEnabled(boolean rebuildTreeEnabled); 2728 }