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