001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.asset.model.AssetVocabulary; 020 021 /** 022 * The persistence interface for the asset vocabulary service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see AssetVocabularyPersistenceImpl 030 * @see AssetVocabularyUtil 031 * @generated 032 */ 033 public interface AssetVocabularyPersistence extends BasePersistence<AssetVocabulary> { 034 /** 035 * Caches the asset vocabulary in the entity cache if it is enabled. 036 * 037 * @param assetVocabulary the asset vocabulary to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary); 041 042 /** 043 * Caches the asset vocabularies in the entity cache if it is enabled. 044 * 045 * @param assetVocabularies the asset vocabularies to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies); 049 050 /** 051 * Creates a new asset vocabulary with the primary key. 052 * 053 * @param vocabularyId the primary key for the new asset vocabulary 054 * @return the new asset vocabulary 055 */ 056 public com.liferay.portlet.asset.model.AssetVocabulary create( 057 long vocabularyId); 058 059 /** 060 * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param vocabularyId the primary key of the asset vocabulary to remove 063 * @return the asset vocabulary that was removed 064 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.asset.model.AssetVocabulary remove( 068 long vocabularyId) 069 throws com.liferay.portal.kernel.exception.SystemException, 070 com.liferay.portlet.asset.NoSuchVocabularyException; 071 072 public com.liferay.portlet.asset.model.AssetVocabulary updateImpl( 073 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary, 074 boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Finds the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 079 * 080 * @param vocabularyId the primary key of the asset vocabulary to find 081 * @return the asset vocabulary 082 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey( 086 long vocabularyId) 087 throws com.liferay.portal.kernel.exception.SystemException, 088 com.liferay.portlet.asset.NoSuchVocabularyException; 089 090 /** 091 * Finds the asset vocabulary with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param vocabularyId the primary key of the asset vocabulary to find 094 * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey( 098 long vocabularyId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Finds all the asset vocabularies where uuid = ?. 103 * 104 * @param uuid the uuid to search with 105 * @return the matching asset vocabularies 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 109 java.lang.String uuid) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Finds a range of all the asset vocabularies where uuid = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param uuid the uuid to search with 120 * @param start the lower bound of the range of asset vocabularies to return 121 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 122 * @return the range of matching asset vocabularies 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 126 java.lang.String uuid, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Finds an ordered range of all the asset vocabularies where uuid = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param uuid the uuid to search with 137 * @param start the lower bound of the range of asset vocabularies to return 138 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 139 * @param orderByComparator the comparator to order the results by 140 * @return the ordered range of matching asset vocabularies 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 144 java.lang.String uuid, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Finds the first asset vocabulary in the ordered set where uuid = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param uuid the uuid to search with 156 * @param orderByComparator the comparator to order the set by 157 * @return the first matching asset vocabulary 158 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First( 162 java.lang.String uuid, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.asset.NoSuchVocabularyException; 166 167 /** 168 * Finds the last asset vocabulary in the ordered set where uuid = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param uuid the uuid to search with 175 * @param orderByComparator the comparator to order the set by 176 * @return the last matching asset vocabulary 177 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last( 181 java.lang.String uuid, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.asset.NoSuchVocabularyException; 185 186 /** 187 * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param vocabularyId the primary key of the current asset vocabulary 194 * @param uuid the uuid to search with 195 * @param orderByComparator the comparator to order the set by 196 * @return the previous, current, and next asset vocabulary 197 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext( 201 long vocabularyId, java.lang.String uuid, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.kernel.exception.SystemException, 204 com.liferay.portlet.asset.NoSuchVocabularyException; 205 206 /** 207 * Finds the asset vocabulary where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 208 * 209 * @param uuid the uuid to search with 210 * @param groupId the group id to search with 211 * @return the matching asset vocabulary 212 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 213 * @throws SystemException if a system exception occurred 214 */ 215 public com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G( 216 java.lang.String uuid, long groupId) 217 throws com.liferay.portal.kernel.exception.SystemException, 218 com.liferay.portlet.asset.NoSuchVocabularyException; 219 220 /** 221 * Finds the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 222 * 223 * @param uuid the uuid to search with 224 * @param groupId the group id to search with 225 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 226 * @throws SystemException if a system exception occurred 227 */ 228 public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G( 229 java.lang.String uuid, long groupId) 230 throws com.liferay.portal.kernel.exception.SystemException; 231 232 /** 233 * Finds the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 234 * 235 * @param uuid the uuid to search with 236 * @param groupId the group id to search with 237 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 238 * @throws SystemException if a system exception occurred 239 */ 240 public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G( 241 java.lang.String uuid, long groupId, boolean retrieveFromCache) 242 throws com.liferay.portal.kernel.exception.SystemException; 243 244 /** 245 * Finds all the asset vocabularies where groupId = ?. 246 * 247 * @param groupId the group id to search with 248 * @return the matching asset vocabularies 249 * @throws SystemException if a system exception occurred 250 */ 251 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId( 252 long groupId) 253 throws com.liferay.portal.kernel.exception.SystemException; 254 255 /** 256 * Finds a range of all the asset vocabularies where groupId = ?. 257 * 258 * <p> 259 * 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. 260 * </p> 261 * 262 * @param groupId the group id to search with 263 * @param start the lower bound of the range of asset vocabularies to return 264 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 265 * @return the range of matching asset vocabularies 266 * @throws SystemException if a system exception occurred 267 */ 268 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId( 269 long groupId, int start, int end) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Finds an ordered range of all the asset vocabularies where groupId = ?. 274 * 275 * <p> 276 * 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. 277 * </p> 278 * 279 * @param groupId the group id to search with 280 * @param start the lower bound of the range of asset vocabularies to return 281 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 282 * @param orderByComparator the comparator to order the results by 283 * @return the ordered range of matching asset vocabularies 284 * @throws SystemException if a system exception occurred 285 */ 286 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId( 287 long groupId, int start, int end, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Finds the first asset vocabulary in the ordered set where groupId = ?. 293 * 294 * <p> 295 * 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. 296 * </p> 297 * 298 * @param groupId the group id to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the first matching asset vocabulary 301 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First( 305 long groupId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.asset.NoSuchVocabularyException; 309 310 /** 311 * Finds the last asset vocabulary in the ordered set where groupId = ?. 312 * 313 * <p> 314 * 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. 315 * </p> 316 * 317 * @param groupId the group id to search with 318 * @param orderByComparator the comparator to order the set by 319 * @return the last matching asset vocabulary 320 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last( 324 long groupId, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.asset.NoSuchVocabularyException; 328 329 /** 330 * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = ?. 331 * 332 * <p> 333 * 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. 334 * </p> 335 * 336 * @param vocabularyId the primary key of the current asset vocabulary 337 * @param groupId the group id to search with 338 * @param orderByComparator the comparator to order the set by 339 * @return the previous, current, and next asset vocabulary 340 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 341 * @throws SystemException if a system exception occurred 342 */ 343 public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext( 344 long vocabularyId, long groupId, 345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 346 throws com.liferay.portal.kernel.exception.SystemException, 347 com.liferay.portlet.asset.NoSuchVocabularyException; 348 349 /** 350 * Filters by the user's permissions and finds all the asset vocabularies where groupId = ?. 351 * 352 * @param groupId the group id to search with 353 * @return the matching asset vocabularies that the user has permission to view 354 * @throws SystemException if a system exception occurred 355 */ 356 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId( 357 long groupId) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Filters by the user's permissions and finds a range of all the asset vocabularies where groupId = ?. 362 * 363 * <p> 364 * 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. 365 * </p> 366 * 367 * @param groupId the group id to search with 368 * @param start the lower bound of the range of asset vocabularies to return 369 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 370 * @return the range of matching asset vocabularies that the user has permission to view 371 * @throws SystemException if a system exception occurred 372 */ 373 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId( 374 long groupId, int start, int end) 375 throws com.liferay.portal.kernel.exception.SystemException; 376 377 /** 378 * Filters by the user's permissions and finds an ordered range of all the asset vocabularies where groupId = ?. 379 * 380 * <p> 381 * 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. 382 * </p> 383 * 384 * @param groupId the group id to search with 385 * @param start the lower bound of the range of asset vocabularies to return 386 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 387 * @param orderByComparator the comparator to order the results by 388 * @return the ordered range of matching asset vocabularies that the user has permission to view 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId( 392 long groupId, int start, int end, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Finds all the asset vocabularies where companyId = ?. 398 * 399 * @param companyId the company id to search with 400 * @return the matching asset vocabularies 401 * @throws SystemException if a system exception occurred 402 */ 403 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 404 long companyId) 405 throws com.liferay.portal.kernel.exception.SystemException; 406 407 /** 408 * Finds a range of all the asset vocabularies where companyId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param companyId the company id to search with 415 * @param start the lower bound of the range of asset vocabularies to return 416 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 417 * @return the range of matching asset vocabularies 418 * @throws SystemException if a system exception occurred 419 */ 420 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 421 long companyId, int start, int end) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Finds an ordered range of all the asset vocabularies where companyId = ?. 426 * 427 * <p> 428 * 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. 429 * </p> 430 * 431 * @param companyId the company id to search with 432 * @param start the lower bound of the range of asset vocabularies to return 433 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 434 * @param orderByComparator the comparator to order the results by 435 * @return the ordered range of matching asset vocabularies 436 * @throws SystemException if a system exception occurred 437 */ 438 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 439 long companyId, int start, int end, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Finds the first asset vocabulary in the ordered set where companyId = ?. 445 * 446 * <p> 447 * 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. 448 * </p> 449 * 450 * @param companyId the company id to search with 451 * @param orderByComparator the comparator to order the set by 452 * @return the first matching asset vocabulary 453 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 454 * @throws SystemException if a system exception occurred 455 */ 456 public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First( 457 long companyId, 458 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 459 throws com.liferay.portal.kernel.exception.SystemException, 460 com.liferay.portlet.asset.NoSuchVocabularyException; 461 462 /** 463 * Finds the last asset vocabulary in the ordered set where companyId = ?. 464 * 465 * <p> 466 * 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. 467 * </p> 468 * 469 * @param companyId the company id to search with 470 * @param orderByComparator the comparator to order the set by 471 * @return the last matching asset vocabulary 472 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last( 476 long companyId, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.kernel.exception.SystemException, 479 com.liferay.portlet.asset.NoSuchVocabularyException; 480 481 /** 482 * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = ?. 483 * 484 * <p> 485 * 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. 486 * </p> 487 * 488 * @param vocabularyId the primary key of the current asset vocabulary 489 * @param companyId the company id to search with 490 * @param orderByComparator the comparator to order the set by 491 * @return the previous, current, and next asset vocabulary 492 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext( 496 long vocabularyId, long companyId, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException, 499 com.liferay.portlet.asset.NoSuchVocabularyException; 500 501 /** 502 * Finds the asset vocabulary where groupId = ? and name = ? or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 503 * 504 * @param groupId the group id to search with 505 * @param name the name to search with 506 * @return the matching asset vocabulary 507 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public com.liferay.portlet.asset.model.AssetVocabulary findByG_N( 511 long groupId, java.lang.String name) 512 throws com.liferay.portal.kernel.exception.SystemException, 513 com.liferay.portlet.asset.NoSuchVocabularyException; 514 515 /** 516 * Finds the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 517 * 518 * @param groupId the group id to search with 519 * @param name the name to search with 520 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 521 * @throws SystemException if a system exception occurred 522 */ 523 public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N( 524 long groupId, java.lang.String name) 525 throws com.liferay.portal.kernel.exception.SystemException; 526 527 /** 528 * Finds the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 529 * 530 * @param groupId the group id to search with 531 * @param name the name to search with 532 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 533 * @throws SystemException if a system exception occurred 534 */ 535 public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N( 536 long groupId, java.lang.String name, boolean retrieveFromCache) 537 throws com.liferay.portal.kernel.exception.SystemException; 538 539 /** 540 * Finds all the asset vocabularies. 541 * 542 * @return the asset vocabularies 543 * @throws SystemException if a system exception occurred 544 */ 545 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll() 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Finds a range of all the asset vocabularies. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param start the lower bound of the range of asset vocabularies to return 556 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 557 * @return the range of asset vocabularies 558 * @throws SystemException if a system exception occurred 559 */ 560 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll( 561 int start, int end) 562 throws com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Finds an ordered range of all the asset vocabularies. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param start the lower bound of the range of asset vocabularies to return 572 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 573 * @param orderByComparator the comparator to order the results by 574 * @return the ordered range of asset vocabularies 575 * @throws SystemException if a system exception occurred 576 */ 577 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll( 578 int start, int end, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException; 581 582 /** 583 * Removes all the asset vocabularies where uuid = ? from the database. 584 * 585 * @param uuid the uuid to search with 586 * @throws SystemException if a system exception occurred 587 */ 588 public void removeByUuid(java.lang.String uuid) 589 throws com.liferay.portal.kernel.exception.SystemException; 590 591 /** 592 * Removes the asset vocabulary where uuid = ? and groupId = ? from the database. 593 * 594 * @param uuid the uuid to search with 595 * @param groupId the group id to search with 596 * @throws SystemException if a system exception occurred 597 */ 598 public void removeByUUID_G(java.lang.String uuid, long groupId) 599 throws com.liferay.portal.kernel.exception.SystemException, 600 com.liferay.portlet.asset.NoSuchVocabularyException; 601 602 /** 603 * Removes all the asset vocabularies where groupId = ? from the database. 604 * 605 * @param groupId the group id to search with 606 * @throws SystemException if a system exception occurred 607 */ 608 public void removeByGroupId(long groupId) 609 throws com.liferay.portal.kernel.exception.SystemException; 610 611 /** 612 * Removes all the asset vocabularies where companyId = ? from the database. 613 * 614 * @param companyId the company id to search with 615 * @throws SystemException if a system exception occurred 616 */ 617 public void removeByCompanyId(long companyId) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Removes the asset vocabulary where groupId = ? and name = ? from the database. 622 * 623 * @param groupId the group id to search with 624 * @param name the name to search with 625 * @throws SystemException if a system exception occurred 626 */ 627 public void removeByG_N(long groupId, java.lang.String name) 628 throws com.liferay.portal.kernel.exception.SystemException, 629 com.liferay.portlet.asset.NoSuchVocabularyException; 630 631 /** 632 * Removes all the asset vocabularies from the database. 633 * 634 * @throws SystemException if a system exception occurred 635 */ 636 public void removeAll() 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Counts all the asset vocabularies where uuid = ?. 641 * 642 * @param uuid the uuid to search with 643 * @return the number of matching asset vocabularies 644 * @throws SystemException if a system exception occurred 645 */ 646 public int countByUuid(java.lang.String uuid) 647 throws com.liferay.portal.kernel.exception.SystemException; 648 649 /** 650 * Counts all the asset vocabularies where uuid = ? and groupId = ?. 651 * 652 * @param uuid the uuid to search with 653 * @param groupId the group id to search with 654 * @return the number of matching asset vocabularies 655 * @throws SystemException if a system exception occurred 656 */ 657 public int countByUUID_G(java.lang.String uuid, long groupId) 658 throws com.liferay.portal.kernel.exception.SystemException; 659 660 /** 661 * Counts all the asset vocabularies where groupId = ?. 662 * 663 * @param groupId the group id to search with 664 * @return the number of matching asset vocabularies 665 * @throws SystemException if a system exception occurred 666 */ 667 public int countByGroupId(long groupId) 668 throws com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * Filters by the user's permissions and counts all the asset vocabularies where groupId = ?. 672 * 673 * @param groupId the group id to search with 674 * @return the number of matching asset vocabularies that the user has permission to view 675 * @throws SystemException if a system exception occurred 676 */ 677 public int filterCountByGroupId(long groupId) 678 throws com.liferay.portal.kernel.exception.SystemException; 679 680 /** 681 * Counts all the asset vocabularies where companyId = ?. 682 * 683 * @param companyId the company id to search with 684 * @return the number of matching asset vocabularies 685 * @throws SystemException if a system exception occurred 686 */ 687 public int countByCompanyId(long companyId) 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Counts all the asset vocabularies where groupId = ? and name = ?. 692 * 693 * @param groupId the group id to search with 694 * @param name the name to search with 695 * @return the number of matching asset vocabularies 696 * @throws SystemException if a system exception occurred 697 */ 698 public int countByG_N(long groupId, java.lang.String name) 699 throws com.liferay.portal.kernel.exception.SystemException; 700 701 /** 702 * Filters by the user's permissions and counts all the asset vocabularies where groupId = ? and name = ?. 703 * 704 * @param groupId the group id to search with 705 * @param name the name to search with 706 * @return the number of matching asset vocabularies that the user has permission to view 707 * @throws SystemException if a system exception occurred 708 */ 709 public int filterCountByG_N(long groupId, java.lang.String name) 710 throws com.liferay.portal.kernel.exception.SystemException; 711 712 /** 713 * Counts all the asset vocabularies. 714 * 715 * @return the number of asset vocabularies 716 * @throws SystemException if a system exception occurred 717 */ 718 public int countAll() 719 throws com.liferay.portal.kernel.exception.SystemException; 720 }